@prismicio/client 7.21.0-alpha.1 → 7.21.0-alpha.2

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 (480) hide show
  1. package/dist/index.cjs +3880 -92
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +4424 -0
  4. package/dist/index.d.mts +4424 -0
  5. package/dist/index.d.ts +4349 -128
  6. package/dist/index.mjs +3837 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/dist/richtext/index.cjs +244 -0
  9. package/dist/richtext/index.cjs.map +1 -0
  10. package/dist/richtext/index.d.cts +78 -0
  11. package/dist/richtext/index.d.mts +78 -0
  12. package/dist/richtext/index.d.ts +78 -7
  13. package/dist/richtext/index.mjs +237 -0
  14. package/dist/richtext/index.mjs.map +1 -0
  15. package/dist/shared/client.TSGr56lO.d.cts +899 -0
  16. package/dist/shared/client.TSGr56lO.d.mts +899 -0
  17. package/dist/shared/client.TSGr56lO.d.ts +899 -0
  18. package/package.json +19 -42
  19. package/src/buildQueryURL.ts +29 -21
  20. package/src/createClient.ts +11 -8
  21. package/src/getRepositoryEndpoint.ts +9 -2
  22. package/src/helpers/asDate.ts +11 -4
  23. package/src/helpers/asHTML.ts +34 -26
  24. package/src/helpers/asImagePixelDensitySrcSet.ts +16 -15
  25. package/src/helpers/asImageSrc.ts +11 -10
  26. package/src/helpers/asImageWidthSrcSet.ts +18 -17
  27. package/src/helpers/asLink.ts +33 -32
  28. package/src/helpers/asLinkAttrs.ts +6 -9
  29. package/src/helpers/asText.ts +20 -10
  30. package/src/helpers/isFilled.ts +15 -14
  31. package/src/helpers/mapSliceZone.ts +10 -10
  32. package/src/index.ts +2 -2
  33. package/src/isRepositoryEndpoint.ts +2 -2
  34. package/src/richtext/asText.ts +5 -5
  35. package/src/richtext/serialize.ts +8 -8
  36. package/src/richtext/types.ts +6 -6
  37. package/src/types/migration/Asset.ts +10 -2
  38. package/src/types/model/types.ts +0 -2
  39. package/dist/Client.cjs +0 -1274
  40. package/dist/Client.cjs.map +0 -1
  41. package/dist/Client.d.ts +0 -981
  42. package/dist/Client.js +0 -1274
  43. package/dist/Client.js.map +0 -1
  44. package/dist/Migration.cjs +0 -315
  45. package/dist/Migration.cjs.map +0 -1
  46. package/dist/Migration.d.ts +0 -213
  47. package/dist/Migration.js +0 -315
  48. package/dist/Migration.js.map +0 -1
  49. package/dist/WriteClient.cjs +0 -560
  50. package/dist/WriteClient.cjs.map +0 -1
  51. package/dist/WriteClient.d.ts +0 -281
  52. package/dist/WriteClient.js +0 -560
  53. package/dist/WriteClient.js.map +0 -1
  54. package/dist/buildQueryURL.cjs +0 -66
  55. package/dist/buildQueryURL.cjs.map +0 -1
  56. package/dist/buildQueryURL.d.ts +0 -209
  57. package/dist/buildQueryURL.js +0 -66
  58. package/dist/buildQueryURL.js.map +0 -1
  59. package/dist/cookie.cjs +0 -5
  60. package/dist/cookie.cjs.map +0 -1
  61. package/dist/cookie.d.ts +0 -5
  62. package/dist/cookie.js +0 -5
  63. package/dist/cookie.js.map +0 -1
  64. package/dist/createClient.cjs +0 -6
  65. package/dist/createClient.cjs.map +0 -1
  66. package/dist/createClient.d.ts +0 -32
  67. package/dist/createClient.js +0 -6
  68. package/dist/createClient.js.map +0 -1
  69. package/dist/createMigration.cjs +0 -6
  70. package/dist/createMigration.cjs.map +0 -1
  71. package/dist/createMigration.d.ts +0 -24
  72. package/dist/createMigration.js +0 -6
  73. package/dist/createMigration.js.map +0 -1
  74. package/dist/createWriteClient.cjs +0 -6
  75. package/dist/createWriteClient.cjs.map +0 -1
  76. package/dist/createWriteClient.d.ts +0 -32
  77. package/dist/createWriteClient.js +0 -6
  78. package/dist/createWriteClient.js.map +0 -1
  79. package/dist/errors/ForbiddenError.cjs +0 -7
  80. package/dist/errors/ForbiddenError.cjs.map +0 -1
  81. package/dist/errors/ForbiddenError.d.ts +0 -11
  82. package/dist/errors/ForbiddenError.js +0 -7
  83. package/dist/errors/ForbiddenError.js.map +0 -1
  84. package/dist/errors/InvalidDataError.cjs +0 -7
  85. package/dist/errors/InvalidDataError.cjs.map +0 -1
  86. package/dist/errors/InvalidDataError.d.ts +0 -3
  87. package/dist/errors/InvalidDataError.js +0 -7
  88. package/dist/errors/InvalidDataError.js.map +0 -1
  89. package/dist/errors/NotFoundError.cjs +0 -7
  90. package/dist/errors/NotFoundError.cjs.map +0 -1
  91. package/dist/errors/NotFoundError.d.ts +0 -3
  92. package/dist/errors/NotFoundError.js +0 -7
  93. package/dist/errors/NotFoundError.js.map +0 -1
  94. package/dist/errors/ParsingError.cjs +0 -7
  95. package/dist/errors/ParsingError.cjs.map +0 -1
  96. package/dist/errors/ParsingError.d.ts +0 -14
  97. package/dist/errors/ParsingError.js +0 -7
  98. package/dist/errors/ParsingError.js.map +0 -1
  99. package/dist/errors/PreviewTokenExpired.cjs +0 -7
  100. package/dist/errors/PreviewTokenExpired.cjs.map +0 -1
  101. package/dist/errors/PreviewTokenExpired.d.ts +0 -8
  102. package/dist/errors/PreviewTokenExpired.js +0 -7
  103. package/dist/errors/PreviewTokenExpired.js.map +0 -1
  104. package/dist/errors/PrismicError.cjs +0 -16
  105. package/dist/errors/PrismicError.cjs.map +0 -1
  106. package/dist/errors/PrismicError.d.ts +0 -5
  107. package/dist/errors/PrismicError.js +0 -16
  108. package/dist/errors/PrismicError.js.map +0 -1
  109. package/dist/errors/RefExpiredError.cjs +0 -7
  110. package/dist/errors/RefExpiredError.cjs.map +0 -1
  111. package/dist/errors/RefExpiredError.d.ts +0 -8
  112. package/dist/errors/RefExpiredError.js +0 -7
  113. package/dist/errors/RefExpiredError.js.map +0 -1
  114. package/dist/errors/RefNotFoundError.cjs +0 -7
  115. package/dist/errors/RefNotFoundError.cjs.map +0 -1
  116. package/dist/errors/RefNotFoundError.d.ts +0 -8
  117. package/dist/errors/RefNotFoundError.js +0 -7
  118. package/dist/errors/RefNotFoundError.js.map +0 -1
  119. package/dist/errors/RepositoryNotFoundError.cjs +0 -7
  120. package/dist/errors/RepositoryNotFoundError.cjs.map +0 -1
  121. package/dist/errors/RepositoryNotFoundError.d.ts +0 -3
  122. package/dist/errors/RepositoryNotFoundError.js +0 -7
  123. package/dist/errors/RepositoryNotFoundError.js.map +0 -1
  124. package/dist/filter.cjs +0 -247
  125. package/dist/filter.cjs.map +0 -1
  126. package/dist/filter.d.ts +0 -209
  127. package/dist/filter.js +0 -247
  128. package/dist/filter.js.map +0 -1
  129. package/dist/getGraphQLEndpoint.cjs +0 -13
  130. package/dist/getGraphQLEndpoint.cjs.map +0 -1
  131. package/dist/getGraphQLEndpoint.d.ts +0 -10
  132. package/dist/getGraphQLEndpoint.js +0 -13
  133. package/dist/getGraphQLEndpoint.js.map +0 -1
  134. package/dist/getRepositoryEndpoint.cjs +0 -13
  135. package/dist/getRepositoryEndpoint.cjs.map +0 -1
  136. package/dist/getRepositoryEndpoint.d.ts +0 -12
  137. package/dist/getRepositoryEndpoint.js +0 -13
  138. package/dist/getRepositoryEndpoint.js.map +0 -1
  139. package/dist/getRepositoryName.cjs +0 -17
  140. package/dist/getRepositoryName.cjs.map +0 -1
  141. package/dist/getRepositoryName.d.ts +0 -12
  142. package/dist/getRepositoryName.js +0 -17
  143. package/dist/getRepositoryName.js.map +0 -1
  144. package/dist/getToolbarSrc.cjs +0 -13
  145. package/dist/getToolbarSrc.cjs.map +0 -1
  146. package/dist/getToolbarSrc.d.ts +0 -34
  147. package/dist/getToolbarSrc.js +0 -13
  148. package/dist/getToolbarSrc.js.map +0 -1
  149. package/dist/helpers/asDate.cjs +0 -14
  150. package/dist/helpers/asDate.cjs.map +0 -1
  151. package/dist/helpers/asDate.d.ts +0 -17
  152. package/dist/helpers/asDate.js +0 -14
  153. package/dist/helpers/asDate.js.map +0 -1
  154. package/dist/helpers/asHTML.cjs +0 -86
  155. package/dist/helpers/asHTML.cjs.map +0 -1
  156. package/dist/helpers/asHTML.d.ts +0 -141
  157. package/dist/helpers/asHTML.js +0 -86
  158. package/dist/helpers/asHTML.js.map +0 -1
  159. package/dist/helpers/asImagePixelDensitySrcSet.cjs +0 -21
  160. package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +0 -1
  161. package/dist/helpers/asImagePixelDensitySrcSet.d.ts +0 -53
  162. package/dist/helpers/asImagePixelDensitySrcSet.js +0 -21
  163. package/dist/helpers/asImagePixelDensitySrcSet.js.map +0 -1
  164. package/dist/helpers/asImageSrc.cjs +0 -13
  165. package/dist/helpers/asImageSrc.cjs.map +0 -1
  166. package/dist/helpers/asImageSrc.d.ts +0 -28
  167. package/dist/helpers/asImageSrc.js +0 -13
  168. package/dist/helpers/asImageSrc.js.map +0 -1
  169. package/dist/helpers/asImageWidthSrcSet.cjs +0 -45
  170. package/dist/helpers/asImageWidthSrcSet.cjs.map +0 -1
  171. package/dist/helpers/asImageWidthSrcSet.d.ts +0 -61
  172. package/dist/helpers/asImageWidthSrcSet.js +0 -45
  173. package/dist/helpers/asImageWidthSrcSet.js.map +0 -1
  174. package/dist/helpers/asLink.cjs +0 -47
  175. package/dist/helpers/asLink.cjs.map +0 -1
  176. package/dist/helpers/asLink.d.ts +0 -77
  177. package/dist/helpers/asLink.js +0 -47
  178. package/dist/helpers/asLink.js.map +0 -1
  179. package/dist/helpers/asLinkAttrs.cjs +0 -28
  180. package/dist/helpers/asLinkAttrs.cjs.map +0 -1
  181. package/dist/helpers/asLinkAttrs.d.ts +0 -50
  182. package/dist/helpers/asLinkAttrs.js +0 -28
  183. package/dist/helpers/asLinkAttrs.js.map +0 -1
  184. package/dist/helpers/asText.cjs +0 -21
  185. package/dist/helpers/asText.cjs.map +0 -1
  186. package/dist/helpers/asText.d.ts +0 -47
  187. package/dist/helpers/asText.js +0 -21
  188. package/dist/helpers/asText.js.map +0 -1
  189. package/dist/helpers/documentToLinkField.cjs +0 -27
  190. package/dist/helpers/documentToLinkField.cjs.map +0 -1
  191. package/dist/helpers/documentToLinkField.d.ts +0 -17
  192. package/dist/helpers/documentToLinkField.js +0 -27
  193. package/dist/helpers/documentToLinkField.js.map +0 -1
  194. package/dist/helpers/isFilled.cjs +0 -77
  195. package/dist/helpers/isFilled.cjs.map +0 -1
  196. package/dist/helpers/isFilled.d.ts +0 -190
  197. package/dist/helpers/isFilled.js +0 -77
  198. package/dist/helpers/isFilled.js.map +0 -1
  199. package/dist/helpers/mapSliceZone.cjs +0 -42
  200. package/dist/helpers/mapSliceZone.cjs.map +0 -1
  201. package/dist/helpers/mapSliceZone.d.ts +0 -136
  202. package/dist/helpers/mapSliceZone.js +0 -42
  203. package/dist/helpers/mapSliceZone.js.map +0 -1
  204. package/dist/index.js +0 -97
  205. package/dist/index.js.map +0 -1
  206. package/dist/isRepositoryEndpoint.cjs +0 -12
  207. package/dist/isRepositoryEndpoint.cjs.map +0 -1
  208. package/dist/isRepositoryEndpoint.d.ts +0 -10
  209. package/dist/isRepositoryEndpoint.js +0 -12
  210. package/dist/isRepositoryEndpoint.js.map +0 -1
  211. package/dist/isRepositoryName.cjs +0 -7
  212. package/dist/isRepositoryName.cjs.map +0 -1
  213. package/dist/isRepositoryName.d.ts +0 -9
  214. package/dist/isRepositoryName.js +0 -7
  215. package/dist/isRepositoryName.js.map +0 -1
  216. package/dist/lib/appendFilters.cjs +0 -11
  217. package/dist/lib/appendFilters.cjs.map +0 -1
  218. package/dist/lib/appendFilters.d.ts +0 -18
  219. package/dist/lib/appendFilters.js +0 -11
  220. package/dist/lib/appendFilters.js.map +0 -1
  221. package/dist/lib/castArray.cjs +0 -7
  222. package/dist/lib/castArray.cjs.map +0 -1
  223. package/dist/lib/castArray.d.ts +0 -12
  224. package/dist/lib/castArray.js +0 -7
  225. package/dist/lib/castArray.js.map +0 -1
  226. package/dist/lib/castThunk.cjs +0 -7
  227. package/dist/lib/castThunk.cjs.map +0 -1
  228. package/dist/lib/castThunk.d.ts +0 -11
  229. package/dist/lib/castThunk.js +0 -7
  230. package/dist/lib/castThunk.js.map +0 -1
  231. package/dist/lib/devMsg.cjs +0 -8
  232. package/dist/lib/devMsg.cjs.map +0 -1
  233. package/dist/lib/devMsg.d.ts +0 -16
  234. package/dist/lib/devMsg.js +0 -8
  235. package/dist/lib/devMsg.js.map +0 -1
  236. package/dist/lib/escapeHTML.cjs +0 -43
  237. package/dist/lib/escapeHTML.cjs.map +0 -1
  238. package/dist/lib/escapeHTML.d.ts +0 -1
  239. package/dist/lib/escapeHTML.js +0 -43
  240. package/dist/lib/escapeHTML.js.map +0 -1
  241. package/dist/lib/everyTagFilter.cjs +0 -9
  242. package/dist/lib/everyTagFilter.cjs.map +0 -1
  243. package/dist/lib/everyTagFilter.d.ts +0 -9
  244. package/dist/lib/everyTagFilter.js +0 -9
  245. package/dist/lib/everyTagFilter.js.map +0 -1
  246. package/dist/lib/findMasterRef.cjs +0 -8
  247. package/dist/lib/findMasterRef.cjs.map +0 -1
  248. package/dist/lib/findMasterRef.d.ts +0 -11
  249. package/dist/lib/findMasterRef.js +0 -8
  250. package/dist/lib/findMasterRef.js.map +0 -1
  251. package/dist/lib/findRef.cjs +0 -12
  252. package/dist/lib/findRef.cjs.map +0 -1
  253. package/dist/lib/findRef.d.ts +0 -14
  254. package/dist/lib/findRef.js +0 -12
  255. package/dist/lib/findRef.js.map +0 -1
  256. package/dist/lib/findRefByID.cjs +0 -8
  257. package/dist/lib/findRefByID.cjs.map +0 -1
  258. package/dist/lib/findRefByID.d.ts +0 -12
  259. package/dist/lib/findRefByID.js +0 -8
  260. package/dist/lib/findRefByID.js.map +0 -1
  261. package/dist/lib/findRefByLabel.cjs +0 -8
  262. package/dist/lib/findRefByLabel.cjs.map +0 -1
  263. package/dist/lib/findRefByLabel.d.ts +0 -12
  264. package/dist/lib/findRefByLabel.js +0 -8
  265. package/dist/lib/findRefByLabel.js.map +0 -1
  266. package/dist/lib/getOptionalLinkProperties.cjs +0 -14
  267. package/dist/lib/getOptionalLinkProperties.cjs.map +0 -1
  268. package/dist/lib/getOptionalLinkProperties.d.ts +0 -12
  269. package/dist/lib/getOptionalLinkProperties.js +0 -14
  270. package/dist/lib/getOptionalLinkProperties.js.map +0 -1
  271. package/dist/lib/getPreviewCookie.cjs +0 -21
  272. package/dist/lib/getPreviewCookie.cjs.map +0 -1
  273. package/dist/lib/getPreviewCookie.d.ts +0 -9
  274. package/dist/lib/getPreviewCookie.js +0 -21
  275. package/dist/lib/getPreviewCookie.js.map +0 -1
  276. package/dist/lib/isInternalURL.cjs +0 -9
  277. package/dist/lib/isInternalURL.cjs.map +0 -1
  278. package/dist/lib/isInternalURL.d.ts +0 -8
  279. package/dist/lib/isInternalURL.js +0 -9
  280. package/dist/lib/isInternalURL.js.map +0 -1
  281. package/dist/lib/isMigrationValue.cjs +0 -24
  282. package/dist/lib/isMigrationValue.cjs.map +0 -1
  283. package/dist/lib/isMigrationValue.d.ts +0 -71
  284. package/dist/lib/isMigrationValue.js +0 -24
  285. package/dist/lib/isMigrationValue.js.map +0 -1
  286. package/dist/lib/isValue.cjs +0 -53
  287. package/dist/lib/isValue.cjs.map +0 -1
  288. package/dist/lib/isValue.d.ts +0 -78
  289. package/dist/lib/isValue.js +0 -53
  290. package/dist/lib/isValue.js.map +0 -1
  291. package/dist/lib/minifyGraphQLQuery.cjs +0 -7
  292. package/dist/lib/minifyGraphQLQuery.cjs.map +0 -1
  293. package/dist/lib/minifyGraphQLQuery.d.ts +0 -8
  294. package/dist/lib/minifyGraphQLQuery.js +0 -7
  295. package/dist/lib/minifyGraphQLQuery.js.map +0 -1
  296. package/dist/lib/pLimit.cjs +0 -49
  297. package/dist/lib/pLimit.cjs.map +0 -1
  298. package/dist/lib/pLimit.d.ts +0 -22
  299. package/dist/lib/pLimit.js +0 -49
  300. package/dist/lib/pLimit.js.map +0 -1
  301. package/dist/lib/request.cjs +0 -43
  302. package/dist/lib/request.cjs.map +0 -1
  303. package/dist/lib/request.d.ts +0 -73
  304. package/dist/lib/request.js +0 -43
  305. package/dist/lib/request.js.map +0 -1
  306. package/dist/lib/resolveMigrationDocumentData.cjs +0 -134
  307. package/dist/lib/resolveMigrationDocumentData.cjs.map +0 -1
  308. package/dist/lib/resolveMigrationDocumentData.d.ts +0 -54
  309. package/dist/lib/resolveMigrationDocumentData.js +0 -134
  310. package/dist/lib/resolveMigrationDocumentData.js.map +0 -1
  311. package/dist/lib/serializerHelpers.cjs +0 -113
  312. package/dist/lib/serializerHelpers.cjs.map +0 -1
  313. package/dist/lib/serializerHelpers.d.ts +0 -9
  314. package/dist/lib/serializerHelpers.js +0 -113
  315. package/dist/lib/serializerHelpers.js.map +0 -1
  316. package/dist/lib/someTagsFilter.cjs +0 -9
  317. package/dist/lib/someTagsFilter.cjs.map +0 -1
  318. package/dist/lib/someTagsFilter.d.ts +0 -9
  319. package/dist/lib/someTagsFilter.js +0 -9
  320. package/dist/lib/someTagsFilter.js.map +0 -1
  321. package/dist/lib/throttledLog.cjs +0 -17
  322. package/dist/lib/throttledLog.cjs.map +0 -1
  323. package/dist/lib/throttledLog.d.ts +0 -15
  324. package/dist/lib/throttledLog.js +0 -17
  325. package/dist/lib/throttledLog.js.map +0 -1
  326. package/dist/lib/typeFilter.cjs +0 -8
  327. package/dist/lib/typeFilter.cjs.map +0 -1
  328. package/dist/lib/typeFilter.d.ts +0 -8
  329. package/dist/lib/typeFilter.js +0 -8
  330. package/dist/lib/typeFilter.js.map +0 -1
  331. package/dist/lib/validateAssetMetadata.cjs +0 -28
  332. package/dist/lib/validateAssetMetadata.cjs.map +0 -1
  333. package/dist/lib/validateAssetMetadata.d.ts +0 -10
  334. package/dist/lib/validateAssetMetadata.js +0 -28
  335. package/dist/lib/validateAssetMetadata.js.map +0 -1
  336. package/dist/package.json.cjs +0 -7
  337. package/dist/package.json.cjs.map +0 -1
  338. package/dist/package.json.js +0 -7
  339. package/dist/package.json.js.map +0 -1
  340. package/dist/richtext/asText.cjs +0 -13
  341. package/dist/richtext/asText.cjs.map +0 -1
  342. package/dist/richtext/asText.d.ts +0 -12
  343. package/dist/richtext/asText.js +0 -13
  344. package/dist/richtext/asText.js.map +0 -1
  345. package/dist/richtext/asTree.cjs +0 -123
  346. package/dist/richtext/asTree.cjs.map +0 -1
  347. package/dist/richtext/asTree.d.ts +0 -14
  348. package/dist/richtext/asTree.js +0 -123
  349. package/dist/richtext/asTree.js.map +0 -1
  350. package/dist/richtext/composeSerializers.cjs +0 -17
  351. package/dist/richtext/composeSerializers.cjs.map +0 -1
  352. package/dist/richtext/composeSerializers.d.ts +0 -16
  353. package/dist/richtext/composeSerializers.js +0 -17
  354. package/dist/richtext/composeSerializers.js.map +0 -1
  355. package/dist/richtext/serialize.cjs +0 -19
  356. package/dist/richtext/serialize.cjs.map +0 -1
  357. package/dist/richtext/serialize.d.ts +0 -19
  358. package/dist/richtext/serialize.js +0 -19
  359. package/dist/richtext/serialize.js.map +0 -1
  360. package/dist/richtext/types.cjs +0 -11
  361. package/dist/richtext/types.cjs.map +0 -1
  362. package/dist/richtext/types.d.ts +0 -71
  363. package/dist/richtext/types.js +0 -11
  364. package/dist/richtext/types.js.map +0 -1
  365. package/dist/richtext/wrapMapSerializer.cjs +0 -24
  366. package/dist/richtext/wrapMapSerializer.cjs.map +0 -1
  367. package/dist/richtext/wrapMapSerializer.d.ts +0 -15
  368. package/dist/richtext/wrapMapSerializer.js +0 -24
  369. package/dist/richtext/wrapMapSerializer.js.map +0 -1
  370. package/dist/richtext.cjs +0 -15
  371. package/dist/richtext.cjs.map +0 -1
  372. package/dist/richtext.js +0 -15
  373. package/dist/richtext.js.map +0 -1
  374. package/dist/types/api/asset/asset.d.ts +0 -177
  375. package/dist/types/api/asset/tag.d.ts +0 -53
  376. package/dist/types/api/integration.d.ts +0 -28
  377. package/dist/types/api/migration/document.d.ts +0 -60
  378. package/dist/types/api/query.d.ts +0 -43
  379. package/dist/types/api/ref.d.ts +0 -32
  380. package/dist/types/api/release.d.ts +0 -11
  381. package/dist/types/api/repository.d.ts +0 -109
  382. package/dist/types/api/tags.d.ts +0 -9
  383. package/dist/types/migration/Asset.cjs +0 -33
  384. package/dist/types/migration/Asset.cjs.map +0 -1
  385. package/dist/types/migration/Asset.d.ts +0 -108
  386. package/dist/types/migration/Asset.js +0 -33
  387. package/dist/types/migration/Asset.js.map +0 -1
  388. package/dist/types/migration/ContentRelationship.d.ts +0 -16
  389. package/dist/types/migration/Document.cjs +0 -47
  390. package/dist/types/migration/Document.cjs.map +0 -1
  391. package/dist/types/migration/Document.d.ts +0 -94
  392. package/dist/types/migration/Document.js +0 -47
  393. package/dist/types/migration/Document.js.map +0 -1
  394. package/dist/types/migration/Link.d.ts +0 -19
  395. package/dist/types/model/boolean.d.ts +0 -15
  396. package/dist/types/model/color.d.ts +0 -13
  397. package/dist/types/model/contentRelationship.d.ts +0 -52
  398. package/dist/types/model/customType.d.ts +0 -48
  399. package/dist/types/model/date.d.ts +0 -14
  400. package/dist/types/model/embed.d.ts +0 -13
  401. package/dist/types/model/geoPoint.d.ts +0 -12
  402. package/dist/types/model/group.d.ts +0 -23
  403. package/dist/types/model/image.d.ts +0 -31
  404. package/dist/types/model/integration.d.ts +0 -14
  405. package/dist/types/model/keyText.d.ts +0 -13
  406. package/dist/types/model/link.cjs +0 -9
  407. package/dist/types/model/link.cjs.map +0 -1
  408. package/dist/types/model/link.d.ts +0 -28
  409. package/dist/types/model/link.js +0 -9
  410. package/dist/types/model/link.js.map +0 -1
  411. package/dist/types/model/linkToMedia.d.ts +0 -17
  412. package/dist/types/model/number.d.ts +0 -15
  413. package/dist/types/model/range.d.ts +0 -14
  414. package/dist/types/model/richText.d.ts +0 -37
  415. package/dist/types/model/select.d.ts +0 -18
  416. package/dist/types/model/separator.d.ts +0 -10
  417. package/dist/types/model/sharedSlice.d.ts +0 -16
  418. package/dist/types/model/sharedSliceVariation.d.ts +0 -19
  419. package/dist/types/model/slice.cjs +0 -8
  420. package/dist/types/model/slice.cjs.map +0 -1
  421. package/dist/types/model/slice.d.ts +0 -33
  422. package/dist/types/model/slice.js +0 -8
  423. package/dist/types/model/slice.js.map +0 -1
  424. package/dist/types/model/sliceZone.cjs +0 -8
  425. package/dist/types/model/sliceZone.cjs.map +0 -1
  426. package/dist/types/model/sliceZone.d.ts +0 -41
  427. package/dist/types/model/sliceZone.js +0 -8
  428. package/dist/types/model/sliceZone.js.map +0 -1
  429. package/dist/types/model/table.d.ts +0 -12
  430. package/dist/types/model/timestamp.d.ts +0 -14
  431. package/dist/types/model/title.d.ts +0 -7
  432. package/dist/types/model/types.cjs +0 -39
  433. package/dist/types/model/types.cjs.map +0 -1
  434. package/dist/types/model/types.d.ts +0 -77
  435. package/dist/types/model/types.js +0 -39
  436. package/dist/types/model/types.js.map +0 -1
  437. package/dist/types/model/uid.d.ts +0 -13
  438. package/dist/types/value/boolean.d.ts +0 -6
  439. package/dist/types/value/color.d.ts +0 -9
  440. package/dist/types/value/contentRelationship.d.ts +0 -31
  441. package/dist/types/value/date.d.ts +0 -9
  442. package/dist/types/value/document.d.ts +0 -114
  443. package/dist/types/value/embed.cjs +0 -10
  444. package/dist/types/value/embed.cjs.map +0 -1
  445. package/dist/types/value/embed.d.ts +0 -168
  446. package/dist/types/value/embed.js +0 -10
  447. package/dist/types/value/embed.js.map +0 -1
  448. package/dist/types/value/geoPoint.d.ts +0 -12
  449. package/dist/types/value/group.d.ts +0 -13
  450. package/dist/types/value/image.d.ts +0 -47
  451. package/dist/types/value/integration.d.ts +0 -16
  452. package/dist/types/value/keyText.d.ts +0 -9
  453. package/dist/types/value/link.cjs +0 -10
  454. package/dist/types/value/link.cjs.map +0 -1
  455. package/dist/types/value/link.d.ts +0 -68
  456. package/dist/types/value/link.js +0 -10
  457. package/dist/types/value/link.js.map +0 -1
  458. package/dist/types/value/linkToMedia.d.ts +0 -28
  459. package/dist/types/value/number.d.ts +0 -9
  460. package/dist/types/value/richText.cjs +0 -25
  461. package/dist/types/value/richText.cjs.map +0 -1
  462. package/dist/types/value/richText.d.ts +0 -215
  463. package/dist/types/value/richText.js +0 -25
  464. package/dist/types/value/richText.js.map +0 -1
  465. package/dist/types/value/select.d.ts +0 -10
  466. package/dist/types/value/sharedSlice.d.ts +0 -11
  467. package/dist/types/value/sharedSliceVariation.d.ts +0 -10
  468. package/dist/types/value/slice.d.ts +0 -13
  469. package/dist/types/value/sliceZone.d.ts +0 -12
  470. package/dist/types/value/table.d.ts +0 -91
  471. package/dist/types/value/timestamp.d.ts +0 -8
  472. package/dist/types/value/title.d.ts +0 -12
  473. package/dist/types/value/types.d.ts +0 -58
  474. package/dist/types/webhook/apiUpdate.d.ts +0 -52
  475. package/dist/types/webhook/testTrigger.d.ts +0 -9
  476. package/dist/types/webhook/types.cjs +0 -8
  477. package/dist/types/webhook/types.cjs.map +0 -1
  478. package/dist/types/webhook/types.d.ts +0 -18
  479. package/dist/types/webhook/types.js +0 -8
  480. package/dist/types/webhook/types.js.map +0 -1
@@ -1,114 +0,0 @@
1
- import type { AnyRegularField } from "./types";
2
- import type { GroupField } from "./group";
3
- import type { SliceZone } from "./sliceZone";
4
- import type { TimestampField } from "./timestamp";
5
- /**
6
- * Document metadata for a translation of a Prismic document.
7
- */
8
- export interface AlternateLanguage<TypeEnum = string, LangEnum = string> {
9
- id: string;
10
- uid?: string;
11
- type: TypeEnum;
12
- lang: LangEnum;
13
- }
14
- /**
15
- * Metadata for Prismic document
16
- */
17
- export interface PrismicDocumentHeader<TypeEnum = string, LangEnum = string> {
18
- /**
19
- * The unique identifier for the document. Guaranteed to be unique among all
20
- * documents in the Prismic repository.
21
- */
22
- id: string;
23
- /**
24
- * The unique identifier for the document. Guaranteed to be unique among all
25
- * Prismic documents of the same type.
26
- */
27
- uid: string | null;
28
- /**
29
- * Url that refers to document.
30
- */
31
- url: string | null;
32
- /**
33
- * Type of the document.
34
- */
35
- type: TypeEnum;
36
- /**
37
- * Href for document.
38
- */
39
- href: string;
40
- /**
41
- * Tags associated with document.
42
- */
43
- tags: string[];
44
- /**
45
- * The timestamp at which the document was first published.
46
- */
47
- first_publication_date: TimestampField<"filled">;
48
- /**
49
- * The timestamp at which the document was last published.
50
- */
51
- last_publication_date: TimestampField<"filled">;
52
- /**
53
- * Slugs associated with document.
54
- *
55
- * @deprecated Slugs are a deprecated feature used before the UID field was
56
- * introduced. Migrate to the UID field. For more details, see
57
- * https://community.prismic.io/t/what-are-slugs/6493
58
- */
59
- slugs: string[];
60
- /**
61
- * Documents that are related to this document.
62
- */
63
- linked_documents: unknown[];
64
- /**
65
- * Language of document.
66
- */
67
- lang: LangEnum;
68
- /**
69
- * Array to access alternate language versions for document.
70
- */
71
- alternate_languages: AlternateLanguage<TypeEnum, LangEnum>[];
72
- }
73
- /**
74
- * A Prismic document served through REST API v2.
75
- *
76
- * @see More details on custom types: {@link https://prismic.io/docs/custom-types}
77
- */
78
- export interface PrismicDocument<DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> = Record<string, any>, TypeEnum = string, LangEnum = string> extends PrismicDocumentHeader<TypeEnum, LangEnum> {
79
- /**
80
- * Data contained in the document.
81
- */
82
- data: DataInterface;
83
- }
84
- /**
85
- * A Prismic document served through REST API v2. Does not contain a UID (a
86
- * unique identifier).
87
- *
88
- * @see More details on custom types: {@link https://prismic.io/docs/custom-types}
89
- * @see More details on the UID field: {@link https://prismic.io/docs/uid}
90
- */
91
- export interface PrismicDocumentWithoutUID<DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> = Record<string, any>, TypeEnum = string, LangEnum = string> extends PrismicDocument<DataInterface, TypeEnum, LangEnum> {
92
- /**
93
- * This document does not have a UID field. This property will always be
94
- * `null`.
95
- *
96
- * The unique identifier for the document. Guaranteed to be unique among all
97
- * Prismic documents of the same type.
98
- */
99
- uid: null;
100
- }
101
- /**
102
- * A Prismic document served through REST API v2. Contains a UID (a unique
103
- * identifier).
104
- *
105
- * @see More details on custom types: {@link https://prismic.io/docs/custom-types}
106
- * @see More details on the UID field: {@link https://prismic.io/docs/uid}
107
- */
108
- export interface PrismicDocumentWithUID<DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> = Record<string, any>, TypeEnum = string, LangEnum = string> extends PrismicDocument<DataInterface, TypeEnum, LangEnum> {
109
- /**
110
- * The unique identifier for the document. Guaranteed to be unique among all
111
- * Prismic documents of the same type.
112
- */
113
- uid: string;
114
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const OEmbedType = {
4
- Photo: "photo",
5
- Video: "video",
6
- Link: "link",
7
- Rich: "rich"
8
- };
9
- exports.OEmbedType = OEmbedType;
10
- //# sourceMappingURL=embed.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embed.cjs","sources":["../../../../src/types/value/embed.ts"],"sourcesContent":["import type { EmptyObjectField, FieldState } from \"./types\"\n\n/**\n * oEmbed 1.0 possible types.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport const OEmbedType = {\n\tPhoto: \"photo\",\n\tVideo: \"video\",\n\tLink: \"link\",\n\tRich: \"rich\",\n} as const\n\n/**\n * oEmbed response base fields. Those are every mandatory fields an oEmbed\n * response must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\ntype OEmbedBase<TType extends (typeof OEmbedType)[keyof typeof OEmbedType]> = {\n\t/**\n\t * oEmbed resource type.\n\t */\n\ttype: TType\n\n\t/**\n\t * oEmbed version number, this must be \"1.0\".\n\t */\n\tversion: string\n}\n\n/**\n * oEmbed response extra fields. Those are every non-mandatory and unknown\n * fields an oEmbed response can feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type OEmbedExtra = {\n\t/**\n\t * oEmbed text title, describing the resource.\n\t */\n\ttitle?: string | null\n\n\t/**\n\t * oEmbed resource author/owner name.\n\t */\n\tauthor_name?: string | null\n\n\t/**\n\t * oEmbed resource author/owner URL.\n\t */\n\tauthor_url?: string | null\n\n\t/**\n\t * oEmbed resource provider name.\n\t */\n\tprovider_name?: string | null\n\n\t/**\n\t * oEmbed resource provider URL.\n\t */\n\tprovider_url?: string | null\n\n\t/**\n\t * oEmbed suggested cache lifetime for the resource, in seconds.\n\t */\n\tcache_age?: number | null\n\n\t/**\n\t * oEmbed resource thumbnail URL.\n\t */\n\tthumbnail_url?: string | null\n\n\t/**\n\t * oEmbed resource thumbnail width.\n\t */\n\tthumbnail_width?: number | null\n\n\t/**\n\t * oEmbed resource thumbnail height.\n\t */\n\tthumbnail_height?: number | null\n\n\t/**\n\t * Providers may optionally include any parameters not specified in this\n\t * document (so long as they use the same key-value format) and consumers may\n\t * choose to ignore these. Consumers must ignore parameters they do not\n\t * understand.\n\t *\n\t * @see oEmbed specification: {@link https://oembed.com}\n\t */\n\t[key: string]: unknown | null\n}\n\n/**\n * oEmbed photo type. Those are every mandatory fields an oEmbed photo response\n * must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type PhotoOEmbed = OEmbedBase<typeof OEmbedType.Photo> & {\n\t/**\n\t * oEmbed source URL of the image.\n\t */\n\turl: string\n\n\t/**\n\t * oEmbed width in pixels of the image.\n\t */\n\twidth: number\n\n\t/**\n\t * oEmbed height in pixels of the image.\n\t */\n\theight: number\n}\n\n/**\n * oEmbed video type. Those are every mandatory fields an oEmbed video response\n * must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type VideoOEmbed = OEmbedBase<typeof OEmbedType.Video> & {\n\t/**\n\t * oEmbed HTML required to embed a video player.\n\t */\n\thtml: string\n\n\t/**\n\t * oEmbed width in pixels required to display the HTML.\n\t */\n\twidth: number\n\n\t/**\n\t * oEmbed height in pixels required to display the HTML.\n\t */\n\theight: number\n}\n\n/**\n * oEmbed link type. Those are every mandatory fields an oEmbed link response\n * must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type LinkOEmbed = OEmbedBase<typeof OEmbedType.Link>\n\n/**\n * oEmbed rich type. Those are every mandatory fields an oEmbed rich response\n * must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type RichOEmbed = OEmbedBase<typeof OEmbedType.Rich> & {\n\t/**\n\t * oEmbed HTML required to display the resource.\n\t */\n\thtml: string\n\n\t/**\n\t * oEmbed width in pixels required to display the HTML.\n\t */\n\twidth: number\n\n\t/**\n\t * oEmbed height in pixels required to display the HTML.\n\t */\n\theight: number\n}\n\n/**\n * Any of the possible types of oEmbed response. Those contains only mandatory\n * fields their respective oEmbed response type must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type AnyOEmbed = PhotoOEmbed | VideoOEmbed | LinkOEmbed | RichOEmbed\n\n/**\n * An embed field.\n *\n * @typeParam Data - Data provided by the URL's oEmbed provider.\n * @typeParam State - State of the field which determines its shape.\n *\n * @see More details: {@link https://prismic.io/docs/embed}\n */\nexport type EmbedField<\n\tData extends AnyOEmbed = AnyOEmbed & OEmbedExtra,\n\tState extends FieldState = FieldState,\n> = State extends \"empty\"\n\t? EmptyObjectField\n\t: Data & {\n\t\t\tembed_url: string\n\t\t\thtml: string | null\n\t\t}\n"],"names":[],"mappings":";;AAOO,MAAM,aAAa;AAAA,EACzB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;;;"}
@@ -1,168 +0,0 @@
1
- import type { EmptyObjectField, FieldState } from "./types";
2
- /**
3
- * oEmbed 1.0 possible types.
4
- *
5
- * @see oEmbed specification: {@link https://oembed.com}
6
- */
7
- export declare const OEmbedType: {
8
- readonly Photo: "photo";
9
- readonly Video: "video";
10
- readonly Link: "link";
11
- readonly Rich: "rich";
12
- };
13
- /**
14
- * oEmbed response base fields. Those are every mandatory fields an oEmbed
15
- * response must feature.
16
- *
17
- * @see oEmbed specification: {@link https://oembed.com}
18
- */
19
- type OEmbedBase<TType extends (typeof OEmbedType)[keyof typeof OEmbedType]> = {
20
- /**
21
- * oEmbed resource type.
22
- */
23
- type: TType;
24
- /**
25
- * oEmbed version number, this must be "1.0".
26
- */
27
- version: string;
28
- };
29
- /**
30
- * oEmbed response extra fields. Those are every non-mandatory and unknown
31
- * fields an oEmbed response can feature.
32
- *
33
- * @see oEmbed specification: {@link https://oembed.com}
34
- */
35
- export type OEmbedExtra = {
36
- /**
37
- * oEmbed text title, describing the resource.
38
- */
39
- title?: string | null;
40
- /**
41
- * oEmbed resource author/owner name.
42
- */
43
- author_name?: string | null;
44
- /**
45
- * oEmbed resource author/owner URL.
46
- */
47
- author_url?: string | null;
48
- /**
49
- * oEmbed resource provider name.
50
- */
51
- provider_name?: string | null;
52
- /**
53
- * oEmbed resource provider URL.
54
- */
55
- provider_url?: string | null;
56
- /**
57
- * oEmbed suggested cache lifetime for the resource, in seconds.
58
- */
59
- cache_age?: number | null;
60
- /**
61
- * oEmbed resource thumbnail URL.
62
- */
63
- thumbnail_url?: string | null;
64
- /**
65
- * oEmbed resource thumbnail width.
66
- */
67
- thumbnail_width?: number | null;
68
- /**
69
- * oEmbed resource thumbnail height.
70
- */
71
- thumbnail_height?: number | null;
72
- /**
73
- * Providers may optionally include any parameters not specified in this
74
- * document (so long as they use the same key-value format) and consumers may
75
- * choose to ignore these. Consumers must ignore parameters they do not
76
- * understand.
77
- *
78
- * @see oEmbed specification: {@link https://oembed.com}
79
- */
80
- [key: string]: unknown | null;
81
- };
82
- /**
83
- * oEmbed photo type. Those are every mandatory fields an oEmbed photo response
84
- * must feature.
85
- *
86
- * @see oEmbed specification: {@link https://oembed.com}
87
- */
88
- export type PhotoOEmbed = OEmbedBase<typeof OEmbedType.Photo> & {
89
- /**
90
- * oEmbed source URL of the image.
91
- */
92
- url: string;
93
- /**
94
- * oEmbed width in pixels of the image.
95
- */
96
- width: number;
97
- /**
98
- * oEmbed height in pixels of the image.
99
- */
100
- height: number;
101
- };
102
- /**
103
- * oEmbed video type. Those are every mandatory fields an oEmbed video response
104
- * must feature.
105
- *
106
- * @see oEmbed specification: {@link https://oembed.com}
107
- */
108
- export type VideoOEmbed = OEmbedBase<typeof OEmbedType.Video> & {
109
- /**
110
- * oEmbed HTML required to embed a video player.
111
- */
112
- html: string;
113
- /**
114
- * oEmbed width in pixels required to display the HTML.
115
- */
116
- width: number;
117
- /**
118
- * oEmbed height in pixels required to display the HTML.
119
- */
120
- height: number;
121
- };
122
- /**
123
- * oEmbed link type. Those are every mandatory fields an oEmbed link response
124
- * must feature.
125
- *
126
- * @see oEmbed specification: {@link https://oembed.com}
127
- */
128
- export type LinkOEmbed = OEmbedBase<typeof OEmbedType.Link>;
129
- /**
130
- * oEmbed rich type. Those are every mandatory fields an oEmbed rich response
131
- * must feature.
132
- *
133
- * @see oEmbed specification: {@link https://oembed.com}
134
- */
135
- export type RichOEmbed = OEmbedBase<typeof OEmbedType.Rich> & {
136
- /**
137
- * oEmbed HTML required to display the resource.
138
- */
139
- html: string;
140
- /**
141
- * oEmbed width in pixels required to display the HTML.
142
- */
143
- width: number;
144
- /**
145
- * oEmbed height in pixels required to display the HTML.
146
- */
147
- height: number;
148
- };
149
- /**
150
- * Any of the possible types of oEmbed response. Those contains only mandatory
151
- * fields their respective oEmbed response type must feature.
152
- *
153
- * @see oEmbed specification: {@link https://oembed.com}
154
- */
155
- export type AnyOEmbed = PhotoOEmbed | VideoOEmbed | LinkOEmbed | RichOEmbed;
156
- /**
157
- * An embed field.
158
- *
159
- * @typeParam Data - Data provided by the URL's oEmbed provider.
160
- * @typeParam State - State of the field which determines its shape.
161
- *
162
- * @see More details: {@link https://prismic.io/docs/embed}
163
- */
164
- export type EmbedField<Data extends AnyOEmbed = AnyOEmbed & OEmbedExtra, State extends FieldState = FieldState> = State extends "empty" ? EmptyObjectField : Data & {
165
- embed_url: string;
166
- html: string | null;
167
- };
168
- export {};
@@ -1,10 +0,0 @@
1
- const OEmbedType = {
2
- Photo: "photo",
3
- Video: "video",
4
- Link: "link",
5
- Rich: "rich"
6
- };
7
- export {
8
- OEmbedType
9
- };
10
- //# sourceMappingURL=embed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embed.js","sources":["../../../../src/types/value/embed.ts"],"sourcesContent":["import type { EmptyObjectField, FieldState } from \"./types\"\n\n/**\n * oEmbed 1.0 possible types.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport const OEmbedType = {\n\tPhoto: \"photo\",\n\tVideo: \"video\",\n\tLink: \"link\",\n\tRich: \"rich\",\n} as const\n\n/**\n * oEmbed response base fields. Those are every mandatory fields an oEmbed\n * response must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\ntype OEmbedBase<TType extends (typeof OEmbedType)[keyof typeof OEmbedType]> = {\n\t/**\n\t * oEmbed resource type.\n\t */\n\ttype: TType\n\n\t/**\n\t * oEmbed version number, this must be \"1.0\".\n\t */\n\tversion: string\n}\n\n/**\n * oEmbed response extra fields. Those are every non-mandatory and unknown\n * fields an oEmbed response can feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type OEmbedExtra = {\n\t/**\n\t * oEmbed text title, describing the resource.\n\t */\n\ttitle?: string | null\n\n\t/**\n\t * oEmbed resource author/owner name.\n\t */\n\tauthor_name?: string | null\n\n\t/**\n\t * oEmbed resource author/owner URL.\n\t */\n\tauthor_url?: string | null\n\n\t/**\n\t * oEmbed resource provider name.\n\t */\n\tprovider_name?: string | null\n\n\t/**\n\t * oEmbed resource provider URL.\n\t */\n\tprovider_url?: string | null\n\n\t/**\n\t * oEmbed suggested cache lifetime for the resource, in seconds.\n\t */\n\tcache_age?: number | null\n\n\t/**\n\t * oEmbed resource thumbnail URL.\n\t */\n\tthumbnail_url?: string | null\n\n\t/**\n\t * oEmbed resource thumbnail width.\n\t */\n\tthumbnail_width?: number | null\n\n\t/**\n\t * oEmbed resource thumbnail height.\n\t */\n\tthumbnail_height?: number | null\n\n\t/**\n\t * Providers may optionally include any parameters not specified in this\n\t * document (so long as they use the same key-value format) and consumers may\n\t * choose to ignore these. Consumers must ignore parameters they do not\n\t * understand.\n\t *\n\t * @see oEmbed specification: {@link https://oembed.com}\n\t */\n\t[key: string]: unknown | null\n}\n\n/**\n * oEmbed photo type. Those are every mandatory fields an oEmbed photo response\n * must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type PhotoOEmbed = OEmbedBase<typeof OEmbedType.Photo> & {\n\t/**\n\t * oEmbed source URL of the image.\n\t */\n\turl: string\n\n\t/**\n\t * oEmbed width in pixels of the image.\n\t */\n\twidth: number\n\n\t/**\n\t * oEmbed height in pixels of the image.\n\t */\n\theight: number\n}\n\n/**\n * oEmbed video type. Those are every mandatory fields an oEmbed video response\n * must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type VideoOEmbed = OEmbedBase<typeof OEmbedType.Video> & {\n\t/**\n\t * oEmbed HTML required to embed a video player.\n\t */\n\thtml: string\n\n\t/**\n\t * oEmbed width in pixels required to display the HTML.\n\t */\n\twidth: number\n\n\t/**\n\t * oEmbed height in pixels required to display the HTML.\n\t */\n\theight: number\n}\n\n/**\n * oEmbed link type. Those are every mandatory fields an oEmbed link response\n * must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type LinkOEmbed = OEmbedBase<typeof OEmbedType.Link>\n\n/**\n * oEmbed rich type. Those are every mandatory fields an oEmbed rich response\n * must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type RichOEmbed = OEmbedBase<typeof OEmbedType.Rich> & {\n\t/**\n\t * oEmbed HTML required to display the resource.\n\t */\n\thtml: string\n\n\t/**\n\t * oEmbed width in pixels required to display the HTML.\n\t */\n\twidth: number\n\n\t/**\n\t * oEmbed height in pixels required to display the HTML.\n\t */\n\theight: number\n}\n\n/**\n * Any of the possible types of oEmbed response. Those contains only mandatory\n * fields their respective oEmbed response type must feature.\n *\n * @see oEmbed specification: {@link https://oembed.com}\n */\nexport type AnyOEmbed = PhotoOEmbed | VideoOEmbed | LinkOEmbed | RichOEmbed\n\n/**\n * An embed field.\n *\n * @typeParam Data - Data provided by the URL's oEmbed provider.\n * @typeParam State - State of the field which determines its shape.\n *\n * @see More details: {@link https://prismic.io/docs/embed}\n */\nexport type EmbedField<\n\tData extends AnyOEmbed = AnyOEmbed & OEmbedExtra,\n\tState extends FieldState = FieldState,\n> = State extends \"empty\"\n\t? EmptyObjectField\n\t: Data & {\n\t\t\tembed_url: string\n\t\t\thtml: string | null\n\t\t}\n"],"names":[],"mappings":"AAOO,MAAM,aAAa;AAAA,EACzB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;;"}
@@ -1,12 +0,0 @@
1
- import type { EmptyObjectField, FieldState } from "./types";
2
- /**
3
- * A geopoint field.
4
- *
5
- * @typeParam State - State of the field which determines its shape.
6
- *
7
- * @see More details: {@link https://prismic.io/docs/geopoint}
8
- */
9
- export type GeoPointField<State extends FieldState = FieldState> = State extends "empty" ? EmptyObjectField : {
10
- latitude: number;
11
- longitude: number;
12
- };
@@ -1,13 +0,0 @@
1
- import type { AnyRegularField, FieldState } from "./types";
2
- /**
3
- * A group field.
4
- *
5
- * More details: {@link https://prismic.io/docs/group}
6
- */
7
- export type GroupField<Fields extends Record<string, AnyRegularField | NestedGroupField> = Record<string, AnyRegularField | NestedGroupField>, State extends FieldState = FieldState> = State extends "empty" ? [] : [Fields, ...Fields[]];
8
- /**
9
- * A nested group field.
10
- *
11
- * More details: {@link https://prismic.io/docs/group}
12
- */
13
- export type NestedGroupField<Fields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>, State extends FieldState = FieldState> = GroupField<Fields, State>;
@@ -1,47 +0,0 @@
1
- import type { FieldState, Simplify } from "./types";
2
- /**
3
- * An individual image within an image field. The base image and each thumbnail
4
- * uses this type.
5
- *
6
- * @typeParam State - State of the field which determines its shape.
7
- *
8
- * @see {@link ImageField} for a full image field type.
9
- */
10
- export type ImageFieldImage<State extends FieldState = FieldState> = State extends "empty" ? EmptyImageFieldImage : FilledImageFieldImage;
11
- export interface FilledImageFieldImage {
12
- id: string;
13
- url: string;
14
- dimensions: {
15
- width: number;
16
- height: number;
17
- };
18
- edit: {
19
- x: number;
20
- y: number;
21
- zoom: number;
22
- background: string;
23
- };
24
- alt: string | null;
25
- copyright: string | null;
26
- }
27
- export interface EmptyImageFieldImage {
28
- id?: null;
29
- url?: null;
30
- dimensions?: null;
31
- edit?: null;
32
- alt?: null;
33
- copyright?: null;
34
- }
35
- /**
36
- * An image field.
37
- *
38
- * **Note**: Passing `null` to the `ThumbnailNames` parameter is deprecated and
39
- * will be removed in a future version. Use `never` instead.
40
- *
41
- * @typeParam ThumbnailNames - Names of thumbnails. If the field does not
42
- * contain thumbnails, `never` can be used to "disable" thumbnail fields.
43
- * @typeParam State - State of the field which determines its shape.
44
- *
45
- * @see Image field documentation: {@link https://prismic.io/docs/image}
46
- */
47
- export type ImageField<ThumbnailNames extends string | null = never, State extends FieldState = FieldState> = Simplify<State extends "filled" ? ImageFieldImage<State> & Record<Extract<ThumbnailNames, string>, ImageFieldImage<State>> : ImageFieldImage<State> & Record<Extract<ThumbnailNames, string>, ImageFieldImage<State>>>;
@@ -1,16 +0,0 @@
1
- import type { FieldState } from "./types";
2
- /**
3
- * An integration field.
4
- *
5
- * @typeParam Data - Data from the integrated API.
6
- * @typeParam State - State of the field which determines its shape.
7
- *
8
- * @see More details: {@link https://prismic.io/docs/fields/integration}
9
- */
10
- export type IntegrationField<Data extends IntegrationFieldData = IntegrationFieldData, State extends FieldState = FieldState> = State extends "empty" ? null : Data;
11
- /**
12
- * Data from an integration field.
13
- *
14
- * @see More details: {@link https://prismic.io/docs/fields/integration}
15
- */
16
- export type IntegrationFieldData = Record<string | number, unknown>;
@@ -1,9 +0,0 @@
1
- import type { FieldState } from "./types";
2
- /**
3
- * A key text field
4
- *
5
- * @typeParam State - State of the field which determines its shape.
6
- *
7
- * @see More details: {@link https://prismic.io/docs/key-text}
8
- */
9
- export type KeyTextField<State extends FieldState = FieldState> = State extends "empty" ? null | "" : string;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const LinkType = {
4
- Any: "Any",
5
- Document: "Document",
6
- Media: "Media",
7
- Web: "Web"
8
- };
9
- exports.LinkType = LinkType;
10
- //# sourceMappingURL=link.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.cjs","sources":["../../../../src/types/value/link.ts"],"sourcesContent":["import type { AnyRegularField, FieldState } from \"./types\"\n\nimport type { FilledContentRelationshipField } from \"./contentRelationship\"\nimport type { GroupField } from \"./group\"\nimport type { FilledLinkToMediaField } from \"./linkToMedia\"\nimport type { SliceZone } from \"./sliceZone\"\n\n/**\n * Link types\n */\nexport const LinkType = {\n\tAny: \"Any\",\n\tDocument: \"Document\",\n\tMedia: \"Media\",\n\tWeb: \"Web\",\n} as const\n\n/**\n * A link field.\n *\n * @typeParam TypeEnum - Type API ID of the document.\n * @typeParam LangEnum - Language API ID of the document.\n * @typeParam DataInterface - Data fields for the document (filled via the\n * `fetchLinks` or `graphQuery` query parameter).\n * @typeParam State - State of the field which determines its shape.\n * @typeParam Variant - Variants of the link.\n */\nexport type LinkField<\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends\n\t\t| Record<string, AnyRegularField | GroupField | SliceZone>\n\t\t| unknown = unknown,\n\tState extends FieldState = FieldState,\n\tVariant = string,\n> = State extends \"empty\"\n\t? EmptyLinkField<typeof LinkType.Any, Variant>\n\t: FilledLinkField<TypeEnum, LangEnum, DataInterface, Variant>\n\n/**\n * A link field that is filled.\n *\n * @typeParam TypeEnum - Type API ID of the document.\n * @typeParam LangEnum - Language API ID of the document.\n * @typeParam DataInterface - Data fields for the document (filled via the\n * `fetchLinks` or `graphQuery` query parameter).\n * @typeParam Variant - Variants of the link.\n */\nexport type FilledLinkField<\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends\n\t\t| Record<string, AnyRegularField | GroupField | SliceZone>\n\t\t| unknown = unknown,\n\tVariant = string,\n> =\n\t| (FilledContentRelationshipField<TypeEnum, LangEnum, DataInterface> &\n\t\t\tOptionalLinkProperties<Variant>)\n\t| FilledLinkToMediaField<Variant>\n\t| FilledLinkToWebField<Variant>\n\n/**\n * A link field that is not filled.\n *\n * @typeParam _Unused - THIS PARAMETER IS NOT USED. If you are passing a type,\n * **please remove it**.\n * @typeParam Variant - Variants of the link.\n */\nexport type EmptyLinkField<\n\t_Unused extends\n\t\t(typeof LinkType)[keyof typeof LinkType] = typeof LinkType.Any,\n\tVariant = string,\n> = {\n\tlink_type: \"Any\"\n} & OptionalLinkProperties<Variant>\n\n/**\n * A link field pointing to a relative or absolute URL.\n *\n * @typeParam Variant - Variants of the link.\n */\nexport type FilledLinkToWebField<Variant = string> = {\n\tlink_type: \"Web\"\n\turl: string\n\ttarget?: string\n} & OptionalLinkProperties<Variant>\n\n/**\n * Optional properties available to link fields. It is used to augment existing\n * link-like fields (like content relationship fields) with field-specific\n * properties.\n *\n * @typeParam Variant - Variants of the link.\n *\n * @internal\n */\n// Remember to update the `getOptionalLinkProperties()` function when updating\n// this type. The function should check for every property.\nexport type OptionalLinkProperties<Variant = string> = {\n\ttext?: string\n\tvariant?: Variant\n}\n"],"names":[],"mappings":";;AAUO,MAAM,WAAW;AAAA,EACvB,KAAK;AAAA,EACL,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;;"}
@@ -1,68 +0,0 @@
1
- import type { AnyRegularField, FieldState } from "./types";
2
- import type { FilledContentRelationshipField } from "./contentRelationship";
3
- import type { GroupField } from "./group";
4
- import type { FilledLinkToMediaField } from "./linkToMedia";
5
- import type { SliceZone } from "./sliceZone";
6
- /**
7
- * Link types
8
- */
9
- export declare const LinkType: {
10
- readonly Any: "Any";
11
- readonly Document: "Document";
12
- readonly Media: "Media";
13
- readonly Web: "Web";
14
- };
15
- /**
16
- * A link field.
17
- *
18
- * @typeParam TypeEnum - Type API ID of the document.
19
- * @typeParam LangEnum - Language API ID of the document.
20
- * @typeParam DataInterface - Data fields for the document (filled via the
21
- * `fetchLinks` or `graphQuery` query parameter).
22
- * @typeParam State - State of the field which determines its shape.
23
- * @typeParam Variant - Variants of the link.
24
- */
25
- export type LinkField<TypeEnum = string, LangEnum = string, DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown = unknown, State extends FieldState = FieldState, Variant = string> = State extends "empty" ? EmptyLinkField<typeof LinkType.Any, Variant> : FilledLinkField<TypeEnum, LangEnum, DataInterface, Variant>;
26
- /**
27
- * A link field that is filled.
28
- *
29
- * @typeParam TypeEnum - Type API ID of the document.
30
- * @typeParam LangEnum - Language API ID of the document.
31
- * @typeParam DataInterface - Data fields for the document (filled via the
32
- * `fetchLinks` or `graphQuery` query parameter).
33
- * @typeParam Variant - Variants of the link.
34
- */
35
- export type FilledLinkField<TypeEnum = string, LangEnum = string, DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown = unknown, Variant = string> = (FilledContentRelationshipField<TypeEnum, LangEnum, DataInterface> & OptionalLinkProperties<Variant>) | FilledLinkToMediaField<Variant> | FilledLinkToWebField<Variant>;
36
- /**
37
- * A link field that is not filled.
38
- *
39
- * @typeParam _Unused - THIS PARAMETER IS NOT USED. If you are passing a type,
40
- * **please remove it**.
41
- * @typeParam Variant - Variants of the link.
42
- */
43
- export type EmptyLinkField<_Unused extends (typeof LinkType)[keyof typeof LinkType] = typeof LinkType.Any, Variant = string> = {
44
- link_type: "Any";
45
- } & OptionalLinkProperties<Variant>;
46
- /**
47
- * A link field pointing to a relative or absolute URL.
48
- *
49
- * @typeParam Variant - Variants of the link.
50
- */
51
- export type FilledLinkToWebField<Variant = string> = {
52
- link_type: "Web";
53
- url: string;
54
- target?: string;
55
- } & OptionalLinkProperties<Variant>;
56
- /**
57
- * Optional properties available to link fields. It is used to augment existing
58
- * link-like fields (like content relationship fields) with field-specific
59
- * properties.
60
- *
61
- * @typeParam Variant - Variants of the link.
62
- *
63
- * @internal
64
- */
65
- export type OptionalLinkProperties<Variant = string> = {
66
- text?: string;
67
- variant?: Variant;
68
- };
@@ -1,10 +0,0 @@
1
- const LinkType = {
2
- Any: "Any",
3
- Document: "Document",
4
- Media: "Media",
5
- Web: "Web"
6
- };
7
- export {
8
- LinkType
9
- };
10
- //# sourceMappingURL=link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.js","sources":["../../../../src/types/value/link.ts"],"sourcesContent":["import type { AnyRegularField, FieldState } from \"./types\"\n\nimport type { FilledContentRelationshipField } from \"./contentRelationship\"\nimport type { GroupField } from \"./group\"\nimport type { FilledLinkToMediaField } from \"./linkToMedia\"\nimport type { SliceZone } from \"./sliceZone\"\n\n/**\n * Link types\n */\nexport const LinkType = {\n\tAny: \"Any\",\n\tDocument: \"Document\",\n\tMedia: \"Media\",\n\tWeb: \"Web\",\n} as const\n\n/**\n * A link field.\n *\n * @typeParam TypeEnum - Type API ID of the document.\n * @typeParam LangEnum - Language API ID of the document.\n * @typeParam DataInterface - Data fields for the document (filled via the\n * `fetchLinks` or `graphQuery` query parameter).\n * @typeParam State - State of the field which determines its shape.\n * @typeParam Variant - Variants of the link.\n */\nexport type LinkField<\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends\n\t\t| Record<string, AnyRegularField | GroupField | SliceZone>\n\t\t| unknown = unknown,\n\tState extends FieldState = FieldState,\n\tVariant = string,\n> = State extends \"empty\"\n\t? EmptyLinkField<typeof LinkType.Any, Variant>\n\t: FilledLinkField<TypeEnum, LangEnum, DataInterface, Variant>\n\n/**\n * A link field that is filled.\n *\n * @typeParam TypeEnum - Type API ID of the document.\n * @typeParam LangEnum - Language API ID of the document.\n * @typeParam DataInterface - Data fields for the document (filled via the\n * `fetchLinks` or `graphQuery` query parameter).\n * @typeParam Variant - Variants of the link.\n */\nexport type FilledLinkField<\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends\n\t\t| Record<string, AnyRegularField | GroupField | SliceZone>\n\t\t| unknown = unknown,\n\tVariant = string,\n> =\n\t| (FilledContentRelationshipField<TypeEnum, LangEnum, DataInterface> &\n\t\t\tOptionalLinkProperties<Variant>)\n\t| FilledLinkToMediaField<Variant>\n\t| FilledLinkToWebField<Variant>\n\n/**\n * A link field that is not filled.\n *\n * @typeParam _Unused - THIS PARAMETER IS NOT USED. If you are passing a type,\n * **please remove it**.\n * @typeParam Variant - Variants of the link.\n */\nexport type EmptyLinkField<\n\t_Unused extends\n\t\t(typeof LinkType)[keyof typeof LinkType] = typeof LinkType.Any,\n\tVariant = string,\n> = {\n\tlink_type: \"Any\"\n} & OptionalLinkProperties<Variant>\n\n/**\n * A link field pointing to a relative or absolute URL.\n *\n * @typeParam Variant - Variants of the link.\n */\nexport type FilledLinkToWebField<Variant = string> = {\n\tlink_type: \"Web\"\n\turl: string\n\ttarget?: string\n} & OptionalLinkProperties<Variant>\n\n/**\n * Optional properties available to link fields. It is used to augment existing\n * link-like fields (like content relationship fields) with field-specific\n * properties.\n *\n * @typeParam Variant - Variants of the link.\n *\n * @internal\n */\n// Remember to update the `getOptionalLinkProperties()` function when updating\n// this type. The function should check for every property.\nexport type OptionalLinkProperties<Variant = string> = {\n\ttext?: string\n\tvariant?: Variant\n}\n"],"names":[],"mappings":"AAUO,MAAM,WAAW;AAAA,EACvB,KAAK;AAAA,EACL,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;"}
@@ -1,28 +0,0 @@
1
- import type { FieldState } from "./types";
2
- import type { OptionalLinkProperties } from "./link";
3
- /**
4
- * A link field that points to media.
5
- *
6
- * @typeParam State - State of the field which determines its shape.
7
- * @typeParam Variant - Variants of the link.
8
- */
9
- export type LinkToMediaField<State extends FieldState = FieldState, Variant = string> = State extends "empty" ? EmptyLinkToMediaField<Variant> : FilledLinkToMediaField<Variant>;
10
- type EmptyLinkToMediaField<Variant = string> = {
11
- link_type: "Any";
12
- } & OptionalLinkProperties<Variant>;
13
- /**
14
- * A link that points to media.
15
- *
16
- * @typeParam Variant - Variants of the link.
17
- */
18
- export type FilledLinkToMediaField<Variant = string> = {
19
- id: string;
20
- link_type: "Media";
21
- name: string;
22
- kind: string;
23
- url: string;
24
- size: string;
25
- height?: string | null;
26
- width?: string | null;
27
- } & OptionalLinkProperties<Variant>;
28
- export {};
@@ -1,9 +0,0 @@
1
- import type { FieldState } from "./types";
2
- /**
3
- * A number field.
4
- *
5
- * @typeParam State - State of the field which determines its shape.
6
- *
7
- * @see More details: {@link https://prismic.io/docs/number}
8
- */
9
- export type NumberField<State extends FieldState = FieldState> = State extends "empty" ? null : number;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const RichTextNodeType = {
4
- heading1: "heading1",
5
- heading2: "heading2",
6
- heading3: "heading3",
7
- heading4: "heading4",
8
- heading5: "heading5",
9
- heading6: "heading6",
10
- paragraph: "paragraph",
11
- preformatted: "preformatted",
12
- strong: "strong",
13
- em: "em",
14
- listItem: "list-item",
15
- oListItem: "o-list-item",
16
- list: "group-list-item",
17
- oList: "group-o-list-item",
18
- image: "image",
19
- embed: "embed",
20
- hyperlink: "hyperlink",
21
- label: "label",
22
- span: "span"
23
- };
24
- exports.RichTextNodeType = RichTextNodeType;
25
- //# sourceMappingURL=richText.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"richText.cjs","sources":["../../../../src/types/value/richText.ts"],"sourcesContent":["import type { FieldState } from \"./types\"\n\nimport type { EmbedField } from \"./embed\"\nimport type { FilledLinkField } from \"./link\"\n\n/**\n * Types enum for RichTextNodes\n *\n * @see More details: {@link https://prismic.io/docs/rich-text-title}\n */\nexport const RichTextNodeType = {\n\theading1: \"heading1\",\n\theading2: \"heading2\",\n\theading3: \"heading3\",\n\theading4: \"heading4\",\n\theading5: \"heading5\",\n\theading6: \"heading6\",\n\tparagraph: \"paragraph\",\n\tpreformatted: \"preformatted\",\n\tstrong: \"strong\",\n\tem: \"em\",\n\tlistItem: \"list-item\",\n\toListItem: \"o-list-item\",\n\tlist: \"group-list-item\",\n\toList: \"group-o-list-item\",\n\timage: \"image\",\n\tembed: \"embed\",\n\thyperlink: \"hyperlink\",\n\tlabel: \"label\",\n\tspan: \"span\",\n} as const\n\n/**\n * Types for RichTextNodes\n *\n * @see More details: {@link https://prismic.io/docs/rich-text-title}\n */\nexport type RichTextNodeTypes =\n\t(typeof RichTextNodeType)[keyof typeof RichTextNodeType]\n\n// Text nodes\n\n/**\n * Base to be extended by other rich text nodes.\n */\nexport interface RTTextNodeBase {\n\ttext: string\n\tspans: RTInlineNode[]\n\tdirection?: \"ltr\" | \"rtl\"\n}\n\n/**\n * Rich text `heading1` node\n */\nexport interface RTHeading1Node extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.heading1\n}\n\n/**\n * Rich text `heading2` node\n */\nexport interface RTHeading2Node extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.heading2\n}\n\n/**\n * Rich text `heading3` node\n */\nexport interface RTHeading3Node extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.heading3\n}\n\n/**\n * Rich text `heading4` node\n */\nexport interface RTHeading4Node extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.heading4\n}\n\n/**\n * Rich text `heading5` node\n */\nexport interface RTHeading5Node extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.heading5\n}\n\n/**\n * Rich text `heading6` node\n */\nexport interface RTHeading6Node extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.heading6\n}\n\n/**\n * Rich text `paragraph` node\n */\nexport interface RTParagraphNode extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.paragraph\n}\n\n/**\n * Rich text `preformatted` node\n */\nexport interface RTPreformattedNode extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.preformatted\n}\n\n/**\n * Rich text `list-item` node\n */\nexport interface RTListItemNode extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.listItem\n}\n\n/**\n * Rich text `o-list-item` node for ordered lists\n */\nexport interface RTOListItemNode extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.oListItem\n}\n\n// Span nodes\n\n/**\n * @internal Span Node base to be extended for other Span nodes\n */\nexport interface RTSpanNodeBase {\n\tstart: number\n\tend: number\n}\n/**\n * Rich text `strong` node\n */\nexport interface RTStrongNode extends RTSpanNodeBase {\n\ttype: typeof RichTextNodeType.strong\n}\n\n/**\n * Rich text `embed` node\n */\nexport interface RTEmNode extends RTSpanNodeBase {\n\ttype: typeof RichTextNodeType.em\n}\n\n/**\n * Rich text `label` node\n */\nexport interface RTLabelNode extends RTSpanNodeBase {\n\ttype: typeof RichTextNodeType.label\n\tdata: {\n\t\tlabel: string\n\t}\n}\n\n// Media nodes\n\n/**\n * Rich text `image` nodes. They could link to other documents, external web\n * links and media fields\n */\nexport type RTImageNode = {\n\ttype: typeof RichTextNodeType.image\n\tid: string\n\turl: string\n\talt: string | null\n\tcopyright: string | null\n\tdimensions: {\n\t\twidth: number\n\t\theight: number\n\t}\n\tedit: {\n\t\tx: number\n\t\ty: number\n\t\tzoom: number\n\t\tbackground: string\n\t}\n\tlinkTo?: FilledLinkField\n}\n\n/**\n * Rich text `embed` node\n */\nexport type RTEmbedNode = {\n\ttype: typeof RichTextNodeType.embed\n\toembed: EmbedField\n}\n\n// Link nodes\n\n/**\n * Rich text `a` node\n *\n * @see More details: {@link https://prismic.io/docs/rich-text-title#elements-and-styles}\n */\nexport interface RTLinkNode extends RTSpanNodeBase {\n\ttype: typeof RichTextNodeType.hyperlink\n\tdata: FilledLinkField\n}\n\n// Serialization related nodes\n\n/**\n * Rich text `list` node\n */\nexport interface RTListNode {\n\ttype: typeof RichTextNodeType.list\n\titems: RTListItemNode[]\n}\n\n/**\n * Rich text o-lost node\n */\nexport interface RTOListNode {\n\ttype: typeof RichTextNodeType.oList\n\titems: RTOListItemNode[]\n}\n\n// This one is confusing but it's actually the inner content of a block\n/**\n * Rich text `span` node\n */\nexport interface RTSpanNode extends RTTextNodeBase {\n\ttype: typeof RichTextNodeType.span\n}\n\n// Helpers\n\n/**\n * Nodes from a rich text field\n */\nexport type RTNode =\n\t| RTHeading1Node\n\t| RTHeading2Node\n\t| RTHeading3Node\n\t| RTHeading4Node\n\t| RTHeading5Node\n\t| RTHeading6Node\n\t| RTParagraphNode\n\t| RTPreformattedNode\n\t| RTListItemNode\n\t| RTOListItemNode\n\t| RTImageNode\n\t| RTEmbedNode\n\n/**\n * Rich text nodes with text\n */\nexport type RTTextNode =\n\t| RTHeading1Node\n\t| RTHeading2Node\n\t| RTHeading3Node\n\t| RTHeading4Node\n\t| RTHeading5Node\n\t| RTHeading6Node\n\t| RTParagraphNode\n\t| RTPreformattedNode\n\t| RTListItemNode\n\t| RTOListItemNode\n\n/**\n * Rich text block nodes\n */\nexport type RTBlockNode =\n\t| RTHeading1Node\n\t| RTHeading2Node\n\t| RTHeading3Node\n\t| RTHeading4Node\n\t| RTHeading5Node\n\t| RTHeading6Node\n\t| RTParagraphNode\n\t| RTPreformattedNode\n\t| RTListItemNode\n\t| RTOListItemNode\n\t| RTListNode\n\t| RTOListNode\n\t| RTImageNode\n\t| RTEmbedNode\n\n/**\n * Inline rich text nodes\n */\nexport type RTInlineNode = RTStrongNode | RTEmNode | RTLabelNode | RTLinkNode\n\n/**\n * All rich text nodes\n */\nexport type RTAnyNode = RTBlockNode | RTInlineNode | RTSpanNode\n\n/**\n * A rich text field.\n *\n * @see Rich text field documentation: {@link https://prismic.io/docs/rich-text-title}\n */\nexport type RichTextField<State extends FieldState = FieldState> =\n\tState extends \"empty\" ? [] : [RTNode, ...RTNode[]]\n"],"names":[],"mappings":";;AAUO,MAAM,mBAAmB;AAAA,EAC/B,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,IAAI;AAAA,EACJ,UAAU;AAAA,EACV,WAAW;AAAA,EACX,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;;;"}