@blocknote/xl-ai 0.33.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/blocknote-xl-ai.cjs +4 -4
  2. package/dist/blocknote-xl-ai.cjs.map +1 -1
  3. package/dist/blocknote-xl-ai.js +110 -120
  4. package/dist/blocknote-xl-ai.js.map +1 -1
  5. package/dist/webpack-stats.json +1 -1
  6. package/package.json +8 -8
  7. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{Add heading (h1) and code block_1_4ed20a68d545bbcac0a6974406d9b1b1.json → Add heading (h1) and code block_1_2f82a8f66db1e848b6fcf11cf3b40597.json } +2 -2
  8. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{add a list (end)_1_a8c0f5688c447808ea40e16816bc9d88.json → add a list (end)_1_c2d9df5eea16a2823b16315808698634.json } +2 -2
  9. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{add a new paragraph (empty doc)_1_4200cbf42b5dd56e2fb7c1dc4c0e5c95.json → add a new paragraph (empty doc)_1_4a415aef98742a73f1d8e76b31b48fd9.json } +2 -2
  10. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{add a new paragraph (end)_1_3cecc2859589d59d7b2a73b271a02ebb.json → add a new paragraph (end)_1_c3ac403267365e72e1acdeaf703272ac.json } +2 -2
  11. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{add a new paragraph (start)_1_0b6e5ba7c365aa004ab09915db4747d2.json → add a new paragraph (start)_1_a7deaebd8a05b0eacd438ef4772a84b0.json } +2 -2
  12. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{Add heading (h1) and code block_1_f09fb671c15594eba4367376e1de7404.json → Add heading (h1) and code block_1_c9d02980acbb81e12922c758580ae086.json } +2 -2
  13. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{add a list (end)_1_9ca128e303da5f76048c82f2c1928b5f.json → add a list (end)_1_898ab571e824bb2cf7bfd3a4ec769cc4.json } +2 -2
  14. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{add a new paragraph (empty doc)_1_fedaaecc10d6ddf733d85168d2167795.json → add a new paragraph (empty doc)_1_13f4377aac43e7a42d2e0fbe377b093f.json } +2 -2
  15. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{add a new paragraph (end)_1_fe965ef7a99beb3acc090a9f597b4279.json → add a new paragraph (end)_1_41b6ad49c80f708e02a289f0a978d10f.json } +2 -2
  16. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{add a new paragraph (start)_1_232100784a2397a470c08d82001cb7fb.json → add a new paragraph (start)_1_ba9d1b82c2e1653cbfad19e72d157d19.json } +2 -2
  17. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{Add heading (h1) and code block_1_da4995473884c05440ca118c6ae41453.json → Add heading (h1) and code block_1_d7a1ca07ded19de08a51f21236c2d68e.json } +2 -2
  18. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{add a list (end)_1_bcc7319416c9b14368ea5ad861f9b722.json → add a list (end)_1_ea8fe6c45678a567e7bfc9a4f9ff9d7e.json } +2 -2
  19. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{add a new paragraph (empty doc)_1_8fd66df698028c81b94d9c3da3f48565.json → add a new paragraph (empty doc)_1_be406ee8435789d49b4de3a2952366bc.json } +2 -2
  20. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{add a new paragraph (end)_1_1df9f2bee04498ef092f332ebce02289.json → add a new paragraph (end)_1_0f618344844192bfd9fca2e00cb8ef3a.json } +2 -2
  21. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{add a new paragraph (start)_1_ddea32bf65559924075cf5a378ff52a9.json → add a new paragraph (start)_1_a171c162d38c9ae40b2a22be3ef913b9.json } +2 -2
  22. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{Add heading (h1) and code block_1_411b9303baf0445a2b3d22af986dcbd7.json → Add heading (h1) and code block_1_4490bc6c485a737b4584207976c00303.json } +2 -2
  23. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{add a list (end)_1_b62f9dcc3af6272c847eb867f28464e4.json → add a list (end)_1_7a96610c4bbc6c8f141e4addbc2106bf.json } +2 -2
  24. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{add a new paragraph (empty doc)_1_e3538aed67ed181c709f2c76ebd3b88c.json → add a new paragraph (empty doc)_1_44de7bf7410dad3111bbadfa384b3806.json } +2 -2
  25. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{add a new paragraph (end)_1_4da2dc377fad46f51e531f5cb2594b48.json → add a new paragraph (end)_1_b6706fca4145b801d7884d53dd16458f.json } +2 -2
  26. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{add a new paragraph (start)_1_9a1739085965869c82a4ab025a9b426c.json → add a new paragraph (start)_1_f2e4502c4c5fb89e3ab56801c4e2ebb1.json } +2 -2
  27. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/Add heading (h1) and code block_1_bde67ab7834e0e85453474bfec5d6899.json +15 -0
  28. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add a list (end)_1_87f55153eeb60ab71bfc14cc2fd2f957.json +15 -0
  29. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add a new paragraph (empty doc)_1_51ba760ef2fb18f3445641c82a09fabc.json +15 -0
  30. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add a new paragraph (end)_1_8e7994f92b21645243d6012cbefb10aa.json +15 -0
  31. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add a new paragraph (start)_1_13e966493243f338888f862532e11055.json +15 -0
  32. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{add and update paragraph_1_a16755b57abd9123bc8d138ece2fc206.json → add and update paragraph_1_a6c32f94ed9ef180b605d3e529b66f0a.json } +2 -2
  33. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{add paragraph and update selection_1_9d3466520f605a356f2c31458954e816.json → add paragraph and update selection_1_da1b9a436aabf66b488fd5f147c006d6.json } +2 -2
  34. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{add and update paragraph_1_051b564433dad882d26853a2d2e41841.json → add and update paragraph_1_b747e1a9db81d87169dbb057c80a400e.json } +2 -2
  35. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{add paragraph and update selection_1_0ca431ee9c56812e10198e60552a536f.json → add paragraph and update selection_1_1441637b8dce16dc9c48df2cf6507d9b.json } +2 -2
  36. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{add and update paragraph_1_8ef78aa1880fd8536fa49acb127f51c0.json → add and update paragraph_1_7252c232ad6e528961ee8cb6825e1ced.json } +2 -2
  37. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{add paragraph and update selection_1_04f9e76ff73eff953288564e5385dbd4.json → add paragraph and update selection_1_ce0574730306ae367b09cefba52e1ee5.json } +2 -2
  38. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{add and update paragraph_1_e9e8ca04b228ebbec6f48d24c147fbcf.json → add and update paragraph_1_304d3249edb4213cd5b98862492557f2.json } +2 -2
  39. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{add paragraph and update selection_1_f5cd402d603bead3d759ebb5485f39c3.json → add paragraph and update selection_1_58bb195c54dff663752ffdd8e6b50bf0.json } +2 -2
  40. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add and update paragraph_1_f7403010a908af399a5228468b304f47.json +15 -0
  41. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add paragraph and update selection_1_495ea67d9ad44b58172da3db145b3a10.json +15 -0
  42. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Delete/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{delete first block_1_a4ec61146ba0a517742770cb5843201f.json → delete first block_1_278e7fb63bd96fb65d7e2b2a6c215e24.json } +2 -2
  43. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Delete/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{delete first block_1_ee24300ba2c8986f54c02b0d2aec9691.json → delete first block_1_b8070bd231a475d9df5bbb9da081cf01.json } +2 -2
  44. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Delete/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{delete first block_1_21ad45e4791e6ce60e52c20228c507ff.json → delete first block_1_5190aca5ac8dc8a51ad5b5ab8277fc21.json } +2 -2
  45. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Delete/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{delete first block_1_002ed2fb069e97008c626fe8c2d43637.json → delete first block_1_9b505e5406bea6b6aa0194536538eed7.json } +2 -2
  46. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Delete/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/delete first block_1_4fd26859e74455f20838c0acf2b72429.json +15 -0
  47. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{drop mark and link and change text within mark_1_a97a8a61e45a5cfa1f37771aefbf06ba.json → drop mark and link and change text within mark_1_8978afc5c34284715a8914c2fd570f93.json } +2 -2
  48. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{drop mark and link_1_80d39d8c2f69d28a6aec0dee64eb7b4f.json → drop mark and link_1_938010771c761a751ffbec3118e90f37.json } +2 -2
  49. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{modify nested content_1_64d59c27de629179d00d268836aebcba.json → modify nested content_1_671661bffc93e10ce475a7a35f15d754.json } +2 -2
  50. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{modify parent content_1_7cb863416d6d953446640251160e084e.json → modify parent content_1_3be350bb2a881627e6d2c9bf1c977133.json } +2 -2
  51. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{plain source block, add mention_1_c6025cf7f6efc3b57f721752b1f49801.json → plain source block, add mention_1_fbbe189dec37c71e5cfc78fa72504cd6.json } +2 -2
  52. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{standard update_1_b3b73d97f68d26aba18541b8c809ec4d.json → standard update_1_fa30387ecfa9d5ca59f612c7ab97f4bd.json } +2 -2
  53. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{styles + ic in source block, remove mark_1_f6a509381d62c4242864af576bb7ba61.json → styles + ic in source block, remove mark_1_db38bde293870f2bef2303384e4e0a55.json } +2 -2
  54. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{styles + ic in source block, remove mention_1_61539d923364c797cda8519b7d6dbb77.json → styles + ic in source block, remove mention_1_2b37d06351765e430fa35e5ca5c63dec.json } +2 -2
  55. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{styles + ic in source block, replace content_1_a73907775c98b6c395eac24591e7f1d4.json → styles + ic in source block, replace content_1_7a40338400651cdf9b96bdf8da120da9.json } +2 -2
  56. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{styles + ic in source block, update mention prop_1_1821b0f5da6b0bdb28f9444c6eaca222.json → styles + ic in source block, update mention prop_1_2d883e86ea71cfb987a22379a3edfa77.json } +2 -2
  57. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{styles + ic in source block, update text_1_82f2d8a07824544fad31d34c8a554af1.json → styles + ic in source block, update text_1_3ccdc93a62d16ec0bcf50be253c1dc56.json } +2 -2
  58. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{styles + ic in target block, add mark (paragraph)_1_c8bc122a4cb48783ca677fc4aa6cd947.json → styles + ic in target block, add mark (paragraph)_1_809e0216515551c13573267a351ba535.json } +2 -2
  59. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{styles + ic in target block, add mark (word)_1_686bfcd92e4eb65462c1811ad4a3976d.json → styles + ic in target block, add mark (word)_1_12dba322e1c862453710164ab8dacd01.json } +2 -2
  60. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{translate selection_1_2968b738a7996331d8faf2692d652c3c.json → translate selection_1_e8c60e9f841b4ab0a3e3542f57873ecf.json } +2 -2
  61. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{turn paragraphs into list_1_dd8e963f842a261deec745e8d4608bfd.json → turn paragraphs into list_1_0301237447d5b4413e7dadcad3480eb7.json } +2 -2
  62. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{update block type and content_1_06943ba0bda62a61f058ba07379ab4b7.json → update block type and content_1_9206839a16fcfab9cdcdd9e45f09f1da.json } +2 -2
  63. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/anthropic.messages/claude-3-7-sonnet-latest (non-streaming)/{update block type_1_9e53c774c99f178f06b3c7b3608d1605.json → update block type_1_16071edfe34f45ccfeb3bb4b023da531.json } +2 -2
  64. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{drop mark and link and change text within mark_1_2b911dce06e556a512fa22d1a0042b5a.json → drop mark and link and change text within mark_1_fe18c50fd2feadd6457384d8fb8944ec.json } +2 -2
  65. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{drop mark and link_1_f7d042c6ddd42b02098b813fe6e2da2b.json → drop mark and link_1_221aeca7fef5f125b53481e1b86ef472.json } +2 -2
  66. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{modify nested content_1_0cbaaf87b0c6b588f7d7e21f72ed7a7c.json → modify nested content_1_556624e3ee02680707ba62c186d62e84.json } +2 -2
  67. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{modify parent content_1_d190a41cfce34eb5362468031cb608fe.json → modify parent content_1_c0bdc581c11c643bf23b9b9db2d63c81.json } +2 -2
  68. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{plain source block, add mention_1_963338caea5317fbaa588fed459f0895.json → plain source block, add mention_1_0864d889b31cae8e316f6a78ef61df7d.json } +2 -2
  69. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{standard update_1_da09ee8bda5dc347edc748b59bc3bb16.json → standard update_1_f80b18afddb894d5ef20c2e5b40d1735.json } +2 -2
  70. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{styles + ic in source block, remove mark_1_90482aba878618976330fda1af8f6766.json → styles + ic in source block, remove mark_1_de6fb747b4d41b8d888fabe55320091c.json } +2 -2
  71. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{styles + ic in source block, remove mention_1_5c149679babf73b41810f291fcb4d558.json → styles + ic in source block, remove mention_1_c0ff836d1dce7a2f6e6f86f220640315.json } +2 -2
  72. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{styles + ic in source block, replace content_1_0c9d3ace7da95353a998edbaff79177d.json → styles + ic in source block, replace content_1_da5f1ab6fa91c869e64322937264846f.json } +2 -2
  73. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{styles + ic in source block, update mention prop_1_57893638a0ceb0edac342346fa706076.json → styles + ic in source block, update mention prop_1_38b3b843f1c225ba4b5fae0ea9fe7d69.json } +2 -2
  74. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{styles + ic in source block, update text_1_ef01870ca5f4083b4ea345e00d3c52ff.json → styles + ic in source block, update text_1_b5b0d849bf7cfd45920a42b802840eb0.json } +2 -2
  75. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{styles + ic in target block, add mark (paragraph)_1_ee8107efdf5fd19552a7fff0b08f6657.json → styles + ic in target block, add mark (paragraph)_1_15b8c82decbf30a714f2df977d22c034.json } +2 -2
  76. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{styles + ic in target block, add mark (word)_1_ca95d8d83853d5deb4765c6768a2563f.json → styles + ic in target block, add mark (word)_1_7b3ed3b4d44c3e948694f0ea709b6a18.json } +2 -2
  77. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{translate selection_1_674d4ec4b8af2ac528ec90892731f67a.json → translate selection_1_b44a83174a714b0c75c0ae03566175c0.json } +2 -2
  78. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{turn paragraphs into list_1_1ec910c96203d1d86b7dcce97e352e91.json → turn paragraphs into list_1_0d58195328e2194c6d2466a4ff9f8bc5.json } +2 -2
  79. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{update block type and content_1_e09825f3b2477a73e86972716897a19e.json → update block type and content_1_25e6f872caa48f5825f7ceb4b0f78655.json } +2 -2
  80. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (non-streaming)/{update block type_1_cf54cfb6c7dfc32b6429ca1a2302a2b6.json → update block type_1_1199a83747eb0f064e1c6badaa3e788d.json } +2 -2
  81. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{drop mark and link and change text within mark_1_efeeda50dc4be1869d555c44cc00a5f5.json → drop mark and link and change text within mark_1_5936286917db7874ab151e025d44f0ec.json } +2 -2
  82. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{drop mark and link_1_e3ff518cb46e814abe773f4184678323.json → drop mark and link_1_4aa07cf0823d35359854ab671dd8403a.json } +2 -2
  83. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{modify nested content_1_c335661f5c1022666f7905497d4a3189.json → modify nested content_1_f2b4ede7c5fa7fe6f53f0224d9c843e6.json } +2 -2
  84. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{modify parent content_1_73db91187a949699f0fd921ebe60d841.json → modify parent content_1_37be7ebe33cd5e612c15b138aa8e868a.json } +2 -2
  85. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{plain source block, add mention_1_57f7d170977b8d3400a3a1d7182790b0.json → plain source block, add mention_1_3ab6cac43fb1418a242820f5fb741a80.json } +2 -2
  86. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{standard update_1_67b27460b36b3013a36967448a8522c4.json → standard update_1_45a526f03ac0adef7c3c45cb4cda6d5a.json } +2 -2
  87. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{styles + ic in source block, remove mark_1_abd6ba31606c51fb682ca64b85af7008.json → styles + ic in source block, remove mark_1_466a1bc182d81c967fcd9dc2d0161046.json } +2 -2
  88. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{styles + ic in source block, remove mention_1_bcb2fc9b7ec7eb1ae370d9387dc7e505.json → styles + ic in source block, remove mention_1_2b98509c91ffaa3f4b775afdebef2dd1.json } +2 -2
  89. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{styles + ic in source block, replace content_1_9e6d5cd399d444173556b9dc0afc3334.json → styles + ic in source block, replace content_1_24ba9ad6b82850e51f9aeb27631974c1.json } +2 -2
  90. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{styles + ic in source block, update mention prop_1_e1d72f9616d34022fba9ea219eb13748.json → styles + ic in source block, update mention prop_1_64f592e51960d717cdbd7aa155ae6196.json } +2 -2
  91. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{styles + ic in source block, update text_1_bd11c0a3efe0e2b04a0133c6ca73a5cd.json → styles + ic in source block, update text_1_9ae98cae168d1714dcdd12abbf4ab7dc.json } +2 -2
  92. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{styles + ic in target block, add mark (paragraph)_1_c865fea79947e8f5885f8c7ebc7dd91a.json → styles + ic in target block, add mark (paragraph)_1_42509ec379b9798b007c4481b1b65118.json } +2 -2
  93. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{styles + ic in target block, add mark (word)_1_e155e7bf26070976e31928b82bb13fbc.json → styles + ic in target block, add mark (word)_1_4054e8af99647ab39ef82cbd2fa546c9.json } +2 -2
  94. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{translate selection_1_54ec8515dd6ab214d8b92c5cf4f09529.json → translate selection_1_e16698998bf1a04cb9538d79a1ceff2c.json } +2 -2
  95. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{turn paragraphs into list_1_ec7bd4074c354be223256a9d0ab17e64.json → turn paragraphs into list_1_12667c1a7b080c02776120c0a85b9cd9.json } +2 -2
  96. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{update block type and content_1_a935b00dc3276d6713bffbfb1fdf211e.json → update block type and content_1_4f67ef168fbf2021f1b78fb11b22f568.json } +2 -2
  97. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/groq.chat/llama-3.3-70b-versatile (streaming)/{update block type_1_21d1130a166f73bca224130b84ed37c4.json → update block type_1_f14e429b4f85b7586942a94000a44f21.json } +2 -2
  98. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{drop mark and link and change text within mark_1_8798a9655a7eb7a651bb81f5f811fc60.json → drop mark and link and change text within mark_1_c9e281ea445a93fbc84005fa8a92d07e.json } +2 -2
  99. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{drop mark and link_1_001ea299cc5ab0754d17884094fa9d86.json → drop mark and link_1_6f06b0c532060f9a0c1c0b2f64f2b6ab.json } +2 -2
  100. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{modify nested content_1_3b7f9df9f7701d51e2ccf274e5280a7d.json → modify nested content_1_f87724ae16fe199bd8fb1ac207a3ab99.json } +2 -2
  101. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{modify parent content_1_3b9c9ee90eacd058e510ca1c82cbd554.json → modify parent content_1_85ee68d4daa7ddab518c19afcd02cb44.json } +2 -2
  102. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{plain source block, add mention_1_2e588074658964fdee8f372a25645e39.json → plain source block, add mention_1_babb54324affa4adb9249cdae14cf222.json } +2 -2
  103. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{standard update_1_8aa8c7ee6f4c17a92493df542b131069.json → standard update_1_8c6a9aa2df797ab1a789805eb44c20c6.json } +2 -2
  104. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{styles + ic in source block, remove mark_1_7c37aad8ce27e926dc486960a90f35eb.json → styles + ic in source block, remove mark_1_3308e5066e651a6abeb10e26cd62b8c2.json } +2 -2
  105. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{styles + ic in source block, remove mention_1_a9fa6b0be7fae1d70499aa6ecfea6704.json → styles + ic in source block, remove mention_1_5b43e33507a6bc64943c2383991ad7d4.json } +2 -2
  106. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{styles + ic in source block, replace content_1_4d4299b8044479fe9e15a4a168707806.json → styles + ic in source block, replace content_1_b9c728e7fe649e31114138d69a0b69c7.json } +2 -2
  107. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{styles + ic in source block, update mention prop_1_c6fa894a14f6be81fb568283e4724af9.json → styles + ic in source block, update mention prop_1_6fb8402fb1c0ef42821646b7ae01a6f8.json } +2 -2
  108. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{styles + ic in source block, update text_1_aa627d12493a30d6fa1bbf6d282b6ecd.json → styles + ic in source block, update text_1_39a7f24d933099914037252cc9e02645.json } +2 -2
  109. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{styles + ic in target block, add mark (paragraph)_1_711e7638278935cce832085d8cce0abc.json → styles + ic in target block, add mark (paragraph)_1_cecd6722d457eb6bb4b1231e28c61b64.json } +2 -2
  110. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{styles + ic in target block, add mark (word)_1_739768c550cdc9eb5af10dbacc7c6d22.json → styles + ic in target block, add mark (word)_1_ca614a9ed0162e6f24732e67e6076cb1.json } +2 -2
  111. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{translate selection_1_83bf8aa261516bf197d1391294bbcb06.json → translate selection_1_1d9ae8d2cabb0ab2d3425b42da65f9aa.json } +2 -2
  112. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{turn paragraphs into list_1_5aa207db4b8600962363d2352bf0b1c4.json → turn paragraphs into list_1_c329ee96e44a6acec8c490bfe9036c3c.json } +2 -2
  113. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{update block type and content_1_12e64702225f7eb521a176feffbdde9a.json → update block type and content_1_99c94387729dc443ea9a142027ae75a1.json } +2 -2
  114. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (non-streaming)/{update block type_1_b81e29ddb0de05a668236685bd2df42c.json → update block type_1_9d69f7aa4a1a514ddb293bfae46db69d.json } +2 -2
  115. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/drop mark and link and change text within mark_1_99fc53184b728115e2c9bf977d44addb.json +15 -0
  116. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/drop mark and link_1_ec6e45525b18ba57e7669697631ed856.json +15 -0
  117. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/modify nested content_1_69e8bfa87ec2c7377f0f3e5bec154a35.json +15 -0
  118. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/modify parent content_1_4fa129b1c39dce035ef12c29e733d88f.json +15 -0
  119. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/plain source block, add mention_1_110023b0bf33e516b42bee6f23b6a840.json +15 -0
  120. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/standard update_1_3ea83b592a9e001f52872db06794772f.json +15 -0
  121. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, remove mark_1_6cf3d04771c2ac3bb39f84bda06a167a.json +15 -0
  122. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, remove mention_1_b5e611d650819fc89af1f9ccfb59f24e.json +15 -0
  123. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, replace content_1_016a76a8b508815af96b7185d6137346.json +15 -0
  124. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, update mention prop_1_a6321b1baeca3f0e777cc6f735d39599.json +15 -0
  125. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, update text_1_cd61b04f5a5a80de556e7524ab8efa7e.json +15 -0
  126. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in target block, add mark (paragraph)_1_dca280088154bf070ef536e89a0570c3.json +15 -0
  127. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in target block, add mark (word)_1_2419100d41a8a73ec4a564889d7a57e9.json +15 -0
  128. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/translate selection_1_290252f83e798ac47770abfbb9bf6d73.json +15 -0
  129. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/turn paragraphs into list_1_8103f7c569fd8326b0ae947eefd7d92d.json +15 -0
  130. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/update block type and content_1_282445e6005328e75fc2768da3503c3b.json +15 -0
  131. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/update block type_1_f1fcbe3b4b5404a79557569199effbf2.json +15 -0
  132. package/src/api/formats/html-blocks/tools/index.ts +4 -14
  133. package/src/testUtil/cases/updateOperationTestCases.ts +1 -1
  134. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/Add heading (h1) and code block_1_91d754a12d792f37fe1483d19a7b4e64.json +0 -15
  135. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add a list (end)_1_1b9c5367195624176c28a1ca3684ebac.json +0 -15
  136. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add a new paragraph (empty doc)_1_bda56d4903fe73aa33304a959057957d.json +0 -15
  137. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add a new paragraph (end)_1_731edbb5fc3b6e4a927978b9e203f336.json +0 -15
  138. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Add/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add a new paragraph (start)_1_56f9b395b16c8dc222ce13deb68cd412.json +0 -15
  139. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add and update paragraph_1_2551adfcc4ecd63e37094152b44c1144.json +0 -15
  140. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Combined/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/add paragraph and update selection_1_fc5837fa3ab53d1a511a8092a926d87d.json +0 -15
  141. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Delete/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/delete first block_1_af53bf5e53a86669deaae43b9ab27c67.json +0 -15
  142. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/drop mark and link and change text within mark_1_f48c2d1d72f4c3514c346629fb7f4d0d.json +0 -15
  143. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/drop mark and link_1_c357b571feb374378ba1b288c39b6c31.json +0 -15
  144. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/modify nested content_1_782caee9bbb515bfdae481d31ea48e48.json +0 -15
  145. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/modify parent content_1_92e8df7af02866607d407a52926d4f52.json +0 -15
  146. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/plain source block, add mention_1_69dfced69472e5cf7789a98b3ccbbdd8.json +0 -15
  147. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/standard update_1_f5d03fb0433b5e5b912f40dbffd9f462.json +0 -15
  148. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, remove mark_1_d0386ebc8dc8350f33c44c2251cd1d3c.json +0 -15
  149. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, remove mention_1_83b1ed76da3ba0a764fdc6fb4d25e47a.json +0 -15
  150. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, replace content_1_dd48a67d4d41880db75515d0a95a53dc.json +0 -15
  151. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, update mention prop_1_e21784bb9948aac3dd70492535dff192.json +0 -15
  152. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in source block, update text_1_72b362e3a2e48e9e1d5dad68fc3da63c.json +0 -15
  153. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in target block, add mark (paragraph)_1_968bf60fd7c9520b848955d47ea8a568.json +0 -15
  154. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/styles + ic in target block, add mark (word)_1_45c3fcc7757ac314a77786102326e125.json +0 -15
  155. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/translate selection_1_8cfca4c1847085a8a31be1818346738e.json +0 -15
  156. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/turn paragraphs into list_1_2f31610c836b996af773c3856634d5c3.json +0 -15
  157. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/update block type and content_1_94cf62e3727b3443984720bc54218659.json +0 -15
  158. package/src/api/formats/html-blocks/__snapshots__/htmlBlocks.test.ts/Update/__msw_snapshots__/openai.chat/gpt-4o-2024-08-06 (streaming)/update block type_1_19432d3e11d58717813be52d54eb6edd.json +0 -15
@@ -1,9 +1,9 @@
1
1
  var et = Object.defineProperty;
2
2
  var tt = (e, t, o) => t in e ? et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var $ = (e, t, o) => tt(e, typeof t != "symbol" ? t + "" : t, o);
3
+ var D = (e, t, o) => tt(e, typeof t != "symbol" ? t + "" : t, o);
4
4
  import { getPmSchema as ot, UnreachableCaseError as Pe, getNodeById as rt, updateBlockTr as nt, insertBlocks as st, trackPosition as se, removeAndInsertBlocks as it, getBlock as Oe, defaultProps as Me, isStyledTextInlineContent as at, isLinkInlineContent as ct, BlockNoteExtension as lt, filterSuggestionItems as ut, mergeCSSClasses as dt } from "@blocknote/core";
5
5
  import { applySuggestions as Be, suggestChanges as mt, revertSuggestions as ie } from "@blocknote/prosemirror-suggest-changes";
6
- import { jsonSchema as xe, streamObject as ft, generateObject as pt, APICallError as ht, RetryError as yt } from "ai";
6
+ import { jsonSchema as xe, streamObject as pt, generateObject as ft, APICallError as ht, RetryError as yt } from "ai";
7
7
  import { TextSelection as gt, Plugin as Le, PluginKey as _e } from "prosemirror-state";
8
8
  import { fixTablesKey as kt } from "prosemirror-tables";
9
9
  import bt from "lodash.isequal";
@@ -14,16 +14,16 @@ import { DecorationSet as le, Decoration as ue } from "prosemirror-view";
14
14
  import { defaultSelectionBuilder as Tt } from "y-prosemirror";
15
15
  import { jsxs as vt, jsx as y } from "react/jsx-runtime";
16
16
  import { useBlockNoteContext as Ct, useComponentsContext as G, useSuggestionMenuKeyboardHandler as Pt, useBlockNoteEditor as K, useUIElementPositioning as Ot } from "@blocknote/react";
17
- import B, { useState as Ee, useCallback as D, useMemo as E, useEffect as Ne } from "react";
17
+ import B, { useState as Ee, useCallback as $, useMemo as E, useEffect as Ne } from "react";
18
18
  import { useStore as Ae } from "zustand";
19
19
  import { offset as Mt, size as Bt, autoUpdate as xt } from "@floating-ui/react";
20
20
  const de = (e) => {
21
21
  let t;
22
- const o = /* @__PURE__ */ new Set(), r = (u, f) => {
22
+ const o = /* @__PURE__ */ new Set(), r = (u, p) => {
23
23
  const l = typeof u == "function" ? u(t) : u;
24
24
  if (!Object.is(l, t)) {
25
- const p = t;
26
- t = f ?? (typeof l != "object" || l === null) ? l : Object.assign({}, t, l), o.forEach((m) => m(t, p));
25
+ const f = t;
26
+ t = p ?? (typeof l != "object" || l === null) ? l : Object.assign({}, t, l), o.forEach((m) => m(t, f));
27
27
  }
28
28
  }, n = () => t, i = { setState: r, getState: n, getInitialState: () => c, subscribe: (u) => (o.add(u), () => o.delete(u)) }, c = t = e(r, n, i);
29
29
  return i;
@@ -102,7 +102,7 @@ function N(e) {
102
102
  };
103
103
  }, t;
104
104
  }
105
- function $e(e) {
105
+ function De(e) {
106
106
  return N(_t(e));
107
107
  }
108
108
  async function* It(e) {
@@ -128,7 +128,7 @@ async function* It(e) {
128
128
  isPossiblyPartial: !1
129
129
  };
130
130
  }
131
- async function* De(e, t) {
131
+ async function* $e(e, t) {
132
132
  let o = !1;
133
133
  for await (const r of e) {
134
134
  const n = r.operation;
@@ -170,7 +170,7 @@ async function* Et(e, t) {
170
170
  e,
171
171
  t
172
172
  );
173
- yield* De(
173
+ yield* $e(
174
174
  o,
175
175
  (n) => {
176
176
  if (!n.isPossiblyPartial)
@@ -183,7 +183,7 @@ async function* Nt(e, t) {
183
183
  e,
184
184
  t
185
185
  );
186
- yield* De(
186
+ yield* $e(
187
187
  o,
188
188
  (n) => {
189
189
  throw new Error("invalid operation: " + n.operation.error);
@@ -211,7 +211,7 @@ async function At(e, t) {
211
211
  ...r,
212
212
  // extra options for streamObject
213
213
  ...o ?? {}
214
- }, a = await pt(s), i = jt(a.object);
214
+ }, a = await ft(s), i = jt(a.object);
215
215
  if (!i.ok)
216
216
  throw new Error(i.error);
217
217
  let c;
@@ -219,7 +219,7 @@ async function At(e, t) {
219
219
  streamObjectResult: void 0,
220
220
  generateObjectResult: a,
221
221
  get operationsSource() {
222
- return c || (c = $e(
222
+ return c || (c = De(
223
223
  Nt(i.value, e)
224
224
  )), c;
225
225
  },
@@ -248,7 +248,7 @@ function jt(e) {
248
248
  value: o()
249
249
  };
250
250
  }
251
- async function $t(e, t, o = () => {
251
+ async function Dt(e, t, o = () => {
252
252
  }) {
253
253
  const { _streamObjectOptions: r, ...n } = t;
254
254
  if (r && ("output" in r || "schema" in r))
@@ -268,27 +268,27 @@ async function $t(e, t, o = () => {
268
268
  ...n,
269
269
  // extra options for streamObject
270
270
  ...t._streamObjectOptions ?? {}
271
- }, i = ft(a);
271
+ }, i = pt(a);
272
272
  let c;
273
- const [u, f] = i.fullStream.tee(), l = (async () => {
274
- let p = {
273
+ const [u, p] = i.fullStream.tee(), l = (async () => {
274
+ let f = {
275
275
  operations: []
276
276
  };
277
277
  const m = N(
278
- Ht(f)
278
+ Ht(p)
279
279
  );
280
280
  for await (const h of m)
281
- h && typeof h == "object" && "operations" in h && (p = h);
282
- return p;
281
+ h && typeof h == "object" && "operations" in h && (f = h);
282
+ return f;
283
283
  })();
284
284
  return {
285
285
  streamObjectResult: i,
286
286
  generateObjectResult: void 0,
287
287
  get operationsSource() {
288
- return c || (c = $e(
288
+ return c || (c = De(
289
289
  Et(
290
290
  It(
291
- Dt(
291
+ $t(
292
292
  Rt(
293
293
  N(u)
294
294
  ),
@@ -304,7 +304,7 @@ async function $t(e, t, o = () => {
304
304
  }
305
305
  };
306
306
  }
307
- async function* Dt(e, t) {
307
+ async function* $t(e, t) {
308
308
  let o = !0;
309
309
  for await (const r of e)
310
310
  o && (t(), o = !1), yield r;
@@ -650,7 +650,7 @@ function R(e) {
650
650
  }
651
651
  if (!(i instanceof _))
652
652
  throw new Error("Step is not a ReplaceStep");
653
- const u = c.map(i.from), f = c.map(i.to);
653
+ const u = c.map(i.from), p = c.map(i.to);
654
654
  if (i.slice.openStart > 0 || i.slice.openEnd > 0)
655
655
  throw new Error(
656
656
  "Slice has openStart or openEnd > 0, but structure=false"
@@ -659,13 +659,13 @@ function R(e) {
659
659
  prosemirrorSteps: [],
660
660
  selection: {
661
661
  anchor: n.mapping.map(u),
662
- head: n.mapping.map(f)
662
+ head: n.mapping.map(p)
663
663
  },
664
664
  type: "select"
665
665
  });
666
- const l = i.slice.content.textBetween(0, i.slice.size), p = l === n.doc.textBetween(n.mapping.map(u), n.mapping.map(f));
666
+ const l = i.slice.content.textBetween(0, i.slice.size), f = l === n.doc.textBetween(n.mapping.map(u), n.mapping.map(p));
667
667
  let m;
668
- if (p)
668
+ if (f)
669
669
  m = i.slice.content.size;
670
670
  else if (l.length === 0)
671
671
  m = i.slice.content.size;
@@ -675,14 +675,14 @@ function R(e) {
675
675
  throw new Error("unexpected: no first character found");
676
676
  m = b + 1;
677
677
  }
678
- let h = n.mapping.map(f);
679
- const d = n.mapping.map(f);
678
+ let h = n.mapping.map(p);
679
+ const d = n.mapping.map(p);
680
680
  let S = !0;
681
681
  for (let b = m; b <= i.slice.content.size; b++) {
682
- const g = S && u !== f, k = n.steps.length;
682
+ const g = S && u !== p, k = n.steps.length;
683
683
  if (g) {
684
684
  const M = n.doc.resolve(n.mapping.map(u));
685
- (s = M.nodeAfter) != null && s.isBlock && n.addNodeMark(M.pos, t.mark("deletion", {})), n.addMark(M.pos, h, t.mark("deletion", {})), h = n.mapping.map(f);
685
+ (s = M.nodeAfter) != null && s.isBlock && n.addNodeMark(M.pos, t.mark("deletion", {})), n.addMark(M.pos, h, t.mark("deletion", {})), h = n.mapping.map(p);
686
686
  }
687
687
  const w = new Y(i.slice.content.cut(0, b), 0, 0);
688
688
  n.replace(d, h, w).addMark(
@@ -750,26 +750,26 @@ function Zt(e, t, o) {
750
750
  const a = o.resolve(s).nodeAfter, i = r.doc.resolve(s).nodeAfter;
751
751
  if (!a || !i)
752
752
  throw new Error("diffNode not found");
753
- const c = !a.isLeaf && a.content.eq(i.content), u = c ? 1 : Math.min(a.nodeSize, i.nodeSize), f = s + u, l = n.map(s), p = n.map(f);
753
+ const c = !a.isLeaf && a.content.eq(i.content), u = c ? 1 : Math.min(a.nodeSize, i.nodeSize), p = s + u, l = n.map(s), f = n.map(p);
754
754
  let m = e.length;
755
755
  for (let d = 0; d < e.length; d++)
756
- if (e[d].fromA >= p) {
756
+ if (e[d].fromA >= f) {
757
757
  m = d;
758
758
  break;
759
759
  }
760
760
  e.splice(m, 0, {
761
761
  fromA: l,
762
- toA: p,
762
+ toA: f,
763
763
  fromB: s,
764
- toB: f,
764
+ toB: p,
765
765
  deleted: [],
766
766
  inserted: [],
767
767
  type: c ? "node-type-or-attr-update" : "mark-update"
768
768
  }), r.step(
769
769
  new _(
770
770
  s,
771
- f,
772
- o.slice(s, f),
771
+ p,
772
+ o.slice(s, p),
773
773
  c
774
774
  )
775
775
  );
@@ -780,7 +780,7 @@ function Zt(e, t, o) {
780
780
  }
781
781
  return e;
782
782
  }
783
- const fe = (e, t) => {
783
+ const pe = (e, t) => {
784
784
  const o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
785
785
  e.descendants((a) => {
786
786
  a.type.name === "tableCell" && o.add(JSON.stringify(a.toJSON()));
@@ -821,11 +821,11 @@ function J(e, t, o = !1, r, n) {
821
821
  let i = a.doc, c = ce.create(
822
822
  t,
823
823
  void 0,
824
- fe(t, i)
824
+ pe(t, i)
825
825
  );
826
826
  if (c = c.addSteps(i, a.mapping.maps, 0), o && c.changes.length > 0) {
827
- const l = c.changes[c.changes.length - 1], p = l.toA - l.fromA, m = l.toB - l.fromB;
828
- if (p > m) {
827
+ const l = c.changes[c.changes.length - 1], f = l.toA - l.fromA, m = l.toB - l.fromB;
828
+ if (f > m) {
829
829
  const h = t.slice(
830
830
  l.fromA + m,
831
831
  l.toA
@@ -835,49 +835,49 @@ function J(e, t, o = !1, r, n) {
835
835
  ), i = a.doc, c = ce.create(
836
836
  c.startDoc,
837
837
  void 0,
838
- fe(c.startDoc, i)
838
+ pe(c.startDoc, i)
839
839
  ), c = c.addSteps(i, a.mapping.maps, 0);
840
840
  }
841
841
  }
842
- const u = [], f = wt(
842
+ const u = [], p = wt(
843
843
  c.changes,
844
844
  i
845
845
  );
846
- for (let l = 0; l < f.length; l++) {
847
- const p = f[l], m = i.slice(p.fromB, p.toB);
848
- if (m.openEnd === 1 && m.openStart === 0 && (p.type = "node-type-or-attr-update", m.size > 2)) {
846
+ for (let l = 0; l < p.length; l++) {
847
+ const f = p[l], m = i.slice(f.fromB, f.toB);
848
+ if (m.openEnd === 1 && m.openStart === 0 && (f.type = "node-type-or-attr-update", m.size > 2)) {
849
849
  const h = {
850
- fromA: p.fromA,
851
- toA: p.fromA + 1,
852
- fromB: p.fromB,
853
- toB: p.fromB + 1,
850
+ fromA: f.fromA,
851
+ toA: f.fromA + 1,
852
+ fromB: f.fromB,
853
+ toB: f.fromB + 1,
854
854
  deleted: [],
855
855
  inserted: [],
856
856
  type: "node-type-or-attr-update"
857
857
  }, d = {
858
- fromA: p.fromA + 1,
859
- toA: p.toA,
860
- fromB: p.fromB + 1,
861
- toB: p.toB,
858
+ fromA: f.fromA + 1,
859
+ toA: f.toA,
860
+ fromB: f.fromB + 1,
861
+ toB: f.toB,
862
862
  deleted: [],
863
863
  inserted: []
864
864
  };
865
- f.splice(l, 1, h, d), l++;
865
+ p.splice(l, 1, h, d), l++;
866
866
  }
867
867
  }
868
- Zt(f, t, i);
869
- for (let l = 0; l < f.length; l++) {
870
- const p = f[l], m = i.slice(p.fromB, p.toB);
868
+ Zt(p, t, i);
869
+ for (let l = 0; l < p.length; l++) {
870
+ const f = p[l], m = i.slice(f.fromB, f.toB);
871
871
  if (m.openEnd > 0 && m.size > 1)
872
872
  throw new Error(
873
873
  "unexpected, openEnd > 0 and size > 1, this should have been split into two steps"
874
874
  );
875
- l === f.length - 1 && o && p.type === "mark-update" || u.push(
875
+ l === p.length - 1 && o && f.type === "mark-update" || u.push(
876
876
  new _(
877
- p.fromA,
878
- p.toA,
877
+ f.fromA,
878
+ f.toA,
879
879
  m,
880
- p.type === "node-type-or-attr-update"
880
+ f.type === "node-type-or-attr-update"
881
881
  )
882
882
  );
883
883
  }
@@ -985,21 +985,21 @@ function te(e) {
985
985
  yield c;
986
986
  continue;
987
987
  }
988
- const u = c.operation, f = await e.toJSONToolCall(t, {
988
+ const u = c.operation, p = await e.toJSONToolCall(t, {
989
989
  ...c,
990
990
  operation: u
991
991
  });
992
- if (f && !(c.isPossiblyPartial && X(
993
- f.blocks[f.blocks.length - 1]
992
+ if (p && !(c.isPossiblyPartial && X(
993
+ p.blocks[p.blocks.length - 1]
994
994
  ))) {
995
- for (let l = 0; l < f.blocks.length; l++) {
996
- const p = f.blocks[l], m = t.prosemirrorState.tr;
995
+ for (let l = 0; l < p.blocks.length; l++) {
996
+ const f = p.blocks[l], m = t.prosemirrorState.tr;
997
997
  let h = [];
998
998
  if (l < s.length) {
999
999
  const d = await e.rebaseTool(s[l], t), b = J(
1000
1000
  {
1001
1001
  id: s[l],
1002
- block: p
1002
+ block: f
1003
1003
  },
1004
1004
  d.doc,
1005
1005
  !1
@@ -1010,7 +1010,7 @@ function te(e) {
1010
1010
  } else {
1011
1011
  const d = u.position === "after" ? a[u.referenceId] : void 0, S = st(
1012
1012
  m,
1013
- [p],
1013
+ [f],
1014
1014
  l > 0 ? s[l - 1] : d || u.referenceId,
1015
1015
  l > 0 ? "after" : u.position
1016
1016
  );
@@ -1102,22 +1102,22 @@ function oe(e) {
1102
1102
  yield u;
1103
1103
  continue;
1104
1104
  }
1105
- const f = u.operation;
1105
+ const p = u.operation;
1106
1106
  if (u.isPossiblyPartial) {
1107
- const k = JSON.stringify(f.block).length;
1107
+ const k = JSON.stringify(p.block).length;
1108
1108
  if (k < a)
1109
1109
  continue;
1110
1110
  a = k + 50;
1111
1111
  } else
1112
1112
  a = 50;
1113
- const l = await e.rebaseTool(f.id, t), p = i ? l.invertMap.invert().map(i.from()) : void 0, m = i ? l.invertMap.invert().map(i.to()) : void 0, h = await e.toJSONToolCall(t, u);
1113
+ const l = await e.rebaseTool(p.id, t), f = i ? l.invertMap.invert().map(i.from()) : void 0, m = i ? l.invertMap.invert().map(i.to()) : void 0, h = await e.toJSONToolCall(t, u);
1114
1114
  if (!h)
1115
1115
  continue;
1116
1116
  const d = J(
1117
1117
  h,
1118
1118
  l.doc,
1119
1119
  u.isPossiblyPartial,
1120
- p,
1120
+ f,
1121
1121
  m
1122
1122
  );
1123
1123
  if (d.length === 1 && u.isPossiblyPartial)
@@ -1129,7 +1129,7 @@ function oe(e) {
1129
1129
  for (const k of g)
1130
1130
  o.withDelays && await Q(k), t.transact((w) => {
1131
1131
  ee(w, k);
1132
- }), (c = o.onBlockUpdate) == null || c.call(o, f.id);
1132
+ }), (c = o.onBlockUpdate) == null || c.call(o, p.id);
1133
1133
  }
1134
1134
  }
1135
1135
  };
@@ -1198,7 +1198,7 @@ const re = (e, t) => ({
1198
1198
  }
1199
1199
  }
1200
1200
  });
1201
- function pe(e) {
1201
+ function fe(e) {
1202
1202
  const t = e.lastIndexOf("<"), o = e.lastIndexOf(">");
1203
1203
  let r = e;
1204
1204
  if (t > o && (r = e.substring(0, t), !r.trim()))
@@ -1292,13 +1292,8 @@ const V = {
1292
1292
  description: "Insert new blocks",
1293
1293
  schema: {
1294
1294
  block: {
1295
- $ref: "#/$defs/block"
1296
- },
1297
- $defs: {
1298
- block: {
1299
- type: "string",
1300
- description: "html of block (MUST be a single HTML element)"
1301
- }
1295
+ type: "string",
1296
+ description: "html of block (MUST be a single HTML element)"
1302
1297
  }
1303
1298
  },
1304
1299
  validateBlock: ye,
@@ -1307,7 +1302,7 @@ const V = {
1307
1302
  var n;
1308
1303
  const o = (n = window.__TEST_OPTIONS) == null ? void 0 : n.mockID, r = (await Promise.all(
1309
1304
  t.operation.blocks.map(async (s) => {
1310
- const a = t.isPossiblyPartial ? pe(s) : s;
1305
+ const a = t.isPossiblyPartial ? fe(s) : s;
1311
1306
  return a ? (await e.tryParseHTMLToBlocks(a)).map(
1312
1307
  (i) => (delete i.id, i)
1313
1308
  ) : [];
@@ -1324,19 +1319,14 @@ const V = {
1324
1319
  description: "Update a block",
1325
1320
  schema: {
1326
1321
  block: {
1327
- $ref: "#/$defs/block"
1328
- },
1329
- $defs: {
1330
- block: {
1331
- type: "string",
1332
- description: "html of block (MUST be a single HTML element)"
1333
- }
1322
+ type: "string",
1323
+ description: "html of block (MUST be a single HTML element)"
1334
1324
  }
1335
1325
  },
1336
1326
  validateBlock: ye,
1337
1327
  rebaseTool: he,
1338
1328
  toJSONToolCall: async (e, t) => {
1339
- const o = t.isPossiblyPartial ? pe(t.operation.block) : t.operation.block;
1329
+ const o = t.isPossiblyPartial ? fe(t.operation.block) : t.operation.block;
1340
1330
  if (!o)
1341
1331
  return;
1342
1332
  const r = (await e.tryParseHTMLToBlocks(o))[0];
@@ -1396,7 +1386,7 @@ async function Gt(e, t) {
1396
1386
  withDelays: i,
1397
1387
  dataFormat: c,
1398
1388
  previousResponse: u,
1399
- ...f
1389
+ ...p
1400
1390
  } = {
1401
1391
  maxRetries: 2,
1402
1392
  deleteEmptyCursorBlock: !0,
@@ -1404,7 +1394,7 @@ async function Gt(e, t) {
1404
1394
  withDelays: !0,
1405
1395
  dataFormat: Ue,
1406
1396
  ...t
1407
- }, l = t.promptBuilder ?? c.defaultPromptBuilder, p = c.getStreamTools, m = r ? void 0 : e.getTextCursorPosition().block, h = m && n && X(m) && x(e.document).length > 0 ? m.id : void 0, d = r ? e.getSelectionCutBlocks() : void 0;
1397
+ }, l = t.promptBuilder ?? c.defaultPromptBuilder, f = c.getStreamTools, m = r ? void 0 : e.getTextCursorPosition().block, h = m && n && X(m) && x(e.document).length > 0 ? m.id : void 0, d = r ? e.getSelectionCutBlocks() : void 0;
1408
1398
  let S;
1409
1399
  u && (S = u.messages.map((w) => w.role === "user" && typeof w.content == "string" ? {
1410
1400
  role: "system",
@@ -1422,7 +1412,7 @@ async function Gt(e, t) {
1422
1412
  userPrompt: o,
1423
1413
  excludeBlockIds: h ? [h] : void 0,
1424
1414
  previousMessages: S
1425
- }), g = p(
1415
+ }), g = f(
1426
1416
  e,
1427
1417
  i,
1428
1418
  t.defaultStreamTools,
@@ -1430,18 +1420,18 @@ async function Gt(e, t) {
1430
1420
  t.onBlockUpdate
1431
1421
  );
1432
1422
  let k;
1433
- return s ? k = await $t(
1423
+ return s ? k = await Dt(
1434
1424
  g,
1435
1425
  {
1436
1426
  messages: b,
1437
- ...f
1427
+ ...p
1438
1428
  },
1439
1429
  () => {
1440
1430
  h && e.removeBlocks([h]), a == null || a();
1441
1431
  }
1442
1432
  ) : (k = await At(g, {
1443
1433
  messages: b,
1444
- ...f
1434
+ ...p
1445
1435
  }), h && e.removeBlocks([h]), a == null || a()), new qt(b, k, g);
1446
1436
  }
1447
1437
  async function ze(e, t) {
@@ -2083,7 +2073,7 @@ function mo(e, t, o, r) {
2083
2073
  ...n.delete ? [W.delete(e, { idsSuffixed: !0, withDelays: t })] : []
2084
2074
  ];
2085
2075
  }
2086
- const fo = {
2076
+ const po = {
2087
2077
  /**
2088
2078
  * Function to get the stream tools that can apply BlockNote Markdown block updates to the editor
2089
2079
  */
@@ -2106,9 +2096,9 @@ const fo = {
2106
2096
  suffixIDs: L,
2107
2097
  trimEmptyBlocks: x,
2108
2098
  convertBlocks: C
2109
- }, po = {
2099
+ }, fo = {
2110
2100
  _experimental_json: ao,
2111
- _experimental_markdown: fo,
2101
+ _experimental_markdown: po,
2112
2102
  html: Ue
2113
2103
  }, we = new _e("blocknote-agent-cursor");
2114
2104
  function ho(e) {
@@ -2164,18 +2154,18 @@ class Ye extends lt {
2164
2154
  */
2165
2155
  constructor(o, r) {
2166
2156
  super();
2167
- $(this, "previousRequestOptions");
2157
+ D(this, "previousRequestOptions");
2168
2158
  // internal store including setters
2169
- $(this, "_store", me()((o) => ({
2159
+ D(this, "_store", me()((o) => ({
2170
2160
  aiMenuState: "closed"
2171
2161
  })));
2172
2162
  /**
2173
2163
  * Returns a zustand store with the global configuration of the AI Extension.
2174
2164
  * These options are used by default across all LLM calls when calling {@link doLLMRequest}
2175
2165
  */
2176
- $(this, "options");
2166
+ D(this, "options");
2177
2167
  this.editor = o, this.options = me()((n) => ({
2178
- dataFormat: po.html,
2168
+ dataFormat: fo.html,
2179
2169
  stream: !0,
2180
2170
  ...r
2181
2171
  })), this.addProsemirrorPlugin(
@@ -2545,26 +2535,26 @@ function Qe() {
2545
2535
  return I(e.editor);
2546
2536
  }
2547
2537
  const No = (e) => {
2548
- const t = G(), { onManualPromptSubmit: o, promptText: r, onPromptTextChange: n } = e, [s, a] = Ee(""), i = r || s, c = D(
2538
+ const t = G(), { onManualPromptSubmit: o, promptText: r, onPromptTextChange: n } = e, [s, a] = Ee(""), i = r || s, c = $(
2549
2539
  async (d) => {
2550
2540
  d.key === "Enter" && o(i);
2551
2541
  },
2552
2542
  [i, o]
2553
- ), u = D(
2543
+ ), u = $(
2554
2544
  (d) => {
2555
2545
  const S = d.currentTarget.value;
2556
2546
  n && n(S), r === void 0 && a(S);
2557
2547
  },
2558
2548
  [n, a, r]
2559
- ), f = E(() => ut(e.items, i), [i, e.items]), { selectedIndex: l, setSelectedIndex: p, handler: m } = Pt(f, (d) => d.onItemClick()), h = D(
2549
+ ), p = E(() => ut(e.items, i), [i, e.items]), { selectedIndex: l, setSelectedIndex: f, handler: m } = Pt(p, (d) => d.onItemClick()), h = $(
2560
2550
  (d) => {
2561
- d.key === "Enter" ? f.length > 0 ? m(d) : c(d) : m(d);
2551
+ d.key === "Enter" ? p.length > 0 ? m(d) : c(d) : m(d);
2562
2552
  },
2563
- [c, m, f.length]
2553
+ [c, m, p.length]
2564
2554
  );
2565
2555
  return Ne(() => {
2566
- p(0);
2567
- }, [i, p]), /* @__PURE__ */ vt("div", { className: "bn-combobox", children: [
2556
+ f(0);
2557
+ }, [i, f]), /* @__PURE__ */ vt("div", { className: "bn-combobox", children: [
2568
2558
  /* @__PURE__ */ y(t.Generic.Form.Root, { children: /* @__PURE__ */ y(
2569
2559
  t.Generic.Form.TextInput,
2570
2560
  {
@@ -2588,7 +2578,7 @@ const No = (e) => {
2588
2578
  {
2589
2579
  className: "bn-combobox-items",
2590
2580
  id: "ai-suggestion-menu",
2591
- children: f.map((d, S) => /* @__PURE__ */ y(
2581
+ children: p.map((d, S) => /* @__PURE__ */ y(
2592
2582
  t.SuggestionMenu.Item,
2593
2583
  {
2594
2584
  className: dt(
@@ -2747,7 +2737,7 @@ function jo(e) {
2747
2737
  }
2748
2738
  ];
2749
2739
  }
2750
- function $o(e) {
2740
+ function Do(e) {
2751
2741
  const t = I(e), o = O(e);
2752
2742
  return [
2753
2743
  {
@@ -2772,7 +2762,7 @@ function $o(e) {
2772
2762
  }
2773
2763
  ];
2774
2764
  }
2775
- function Do(e) {
2765
+ function $o(e) {
2776
2766
  const t = I(e), o = O(e);
2777
2767
  return [
2778
2768
  {
@@ -2798,7 +2788,7 @@ function Do(e) {
2798
2788
  ];
2799
2789
  }
2800
2790
  function Ro(e, t) {
2801
- return t === "user-input" ? e.getSelection() ? jo(e) : Ao(e) : t === "user-reviewing" ? $o(e) : t === "error" ? Do(e) : [];
2791
+ return t === "user-input" ? e.getSelection() ? jo(e) : Ao(e) : t === "user-reviewing" ? Do(e) : t === "error" ? $o(e) : [];
2802
2792
  }
2803
2793
  const Ho = (e) => {
2804
2794
  const t = K(), [o, r] = Ee(""), n = Qe(), s = G(), a = O(t), i = Ae(
@@ -2812,7 +2802,7 @@ const Ho = (e) => {
2812
2802
  h.onItemClick(r);
2813
2803
  }
2814
2804
  }));
2815
- }, [c, i, t]), f = D(
2805
+ }, [c, i, t]), p = $(
2816
2806
  async (m) => {
2817
2807
  await a.callLLM({
2818
2808
  userPrompt: m,
@@ -2824,7 +2814,7 @@ const Ho = (e) => {
2824
2814
  Ne(() => {
2825
2815
  (i === "user-reviewing" || i === "error") && r("");
2826
2816
  }, [i]);
2827
- const l = E(() => i === "thinking" ? n.ai_menu.status.thinking : i === "ai-writing" ? n.ai_menu.status.editing : i === "error" ? n.ai_menu.status.error : n.ai_menu.input_placeholder, [i, n]), p = E(() => {
2817
+ const l = E(() => i === "thinking" ? n.ai_menu.status.thinking : i === "ai-writing" ? n.ai_menu.status.editing : i === "error" ? n.ai_menu.status.error : n.ai_menu.input_placeholder, [i, n]), f = E(() => {
2828
2818
  if (i === "thinking" || i === "ai-writing")
2829
2819
  return /* @__PURE__ */ y(
2830
2820
  s.SuggestionMenu.Loader,
@@ -2848,14 +2838,14 @@ const Ho = (e) => {
2848
2838
  return /* @__PURE__ */ y(
2849
2839
  No,
2850
2840
  {
2851
- onManualPromptSubmit: e.onManualPromptSubmit || f,
2841
+ onManualPromptSubmit: e.onManualPromptSubmit || p,
2852
2842
  items: u,
2853
2843
  promptText: o,
2854
2844
  onPromptTextChange: r,
2855
2845
  placeholder: l,
2856
2846
  disabled: i === "thinking" || i === "ai-writing",
2857
2847
  icon: /* @__PURE__ */ y("div", { className: "bn-combobox-icon", children: /* @__PURE__ */ y(ne, {}) }),
2858
- rightSection: p
2848
+ rightSection: f
2859
2849
  }
2860
2850
  );
2861
2851
  }, qo = (e) => {
@@ -2881,7 +2871,7 @@ const Ho = (e) => {
2881
2871
  })
2882
2872
  ],
2883
2873
  onOpenChange: e.onOpenChange,
2884
- whileElementsMounted: (c, u, f) => xt(c, u, f, {
2874
+ whileElementsMounted: (c, u, p) => xt(c, u, p, {
2885
2875
  animationFrame: !0
2886
2876
  }),
2887
2877
  ...e.floatingOptions
@@ -2961,7 +2951,7 @@ export {
2961
2951
  O as getAIExtension,
2962
2952
  dr as getAISlashMenuItems,
2963
2953
  Ro as getDefaultAIMenuItems,
2964
- po as llmFormats,
2954
+ fo as llmFormats,
2965
2955
  ir as promptHelpers
2966
2956
  };
2967
2957
  //# sourceMappingURL=blocknote-xl-ai.js.map