@highstate/designer 0.1.0 → 0.2.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 (335) hide show
  1. package/package.json +10 -8
  2. package/.output/nitro.json +0 -15
  3. package/.output/public/_nuxt/1jbH28Ud.js +0 -1
  4. package/.output/public/_nuxt/BAsjE6c8.js +0 -69
  5. package/.output/public/_nuxt/D4AvvZ3p.js +0 -1
  6. package/.output/public/_nuxt/DcSK-0AR.js +0 -1
  7. package/.output/public/_nuxt/builds/latest.json +0 -1
  8. package/.output/public/_nuxt/builds/meta/0ea9cf82-d280-4ae3-95c8-082f396c88c7.json +0 -1
  9. package/.output/public/_nuxt/entry.Df9XoxdB.css +0 -1
  10. package/.output/public/_nuxt/error-404.SWzu_puR.css +0 -1
  11. package/.output/public/_nuxt/error-500.Bkv_zTjr.css +0 -1
  12. package/.output/public/favicon.ico +0 -0
  13. package/.output/public/robots.txt +0 -1
  14. package/.output/server/chunks/_/error-500.mjs +0 -8
  15. package/.output/server/chunks/_/error-500.mjs.map +0 -1
  16. package/.output/server/chunks/_/index.mjs +0 -229
  17. package/.output/server/chunks/_/index.mjs.map +0 -1
  18. package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs +0 -6
  19. package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs.map +0 -1
  20. package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs +0 -6
  21. package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs.map +0 -1
  22. package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs +0 -6
  23. package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs.map +0 -1
  24. package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs +0 -6
  25. package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs.map +0 -1
  26. package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs +0 -7
  27. package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs.map +0 -1
  28. package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs +0 -6
  29. package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs.map +0 -1
  30. package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs +0 -6
  31. package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs.map +0 -1
  32. package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs +0 -6
  33. package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs.map +0 -1
  34. package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs +0 -6
  35. package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs.map +0 -1
  36. package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs +0 -6
  37. package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs.map +0 -1
  38. package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs +0 -6
  39. package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs.map +0 -1
  40. package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs +0 -6
  41. package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs.map +0 -1
  42. package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs +0 -6
  43. package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs.map +0 -1
  44. package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs +0 -6
  45. package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs.map +0 -1
  46. package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs +0 -6
  47. package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs.map +0 -1
  48. package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs +0 -6
  49. package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs.map +0 -1
  50. package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs +0 -6
  51. package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs.map +0 -1
  52. package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs +0 -6
  53. package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs.map +0 -1
  54. package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs +0 -6
  55. package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs.map +0 -1
  56. package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs +0 -6
  57. package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs.map +0 -1
  58. package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs +0 -6
  59. package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs.map +0 -1
  60. package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs +0 -6
  61. package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs.map +0 -1
  62. package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs +0 -6
  63. package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs.map +0 -1
  64. package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs +0 -6
  65. package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs.map +0 -1
  66. package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs +0 -6
  67. package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs.map +0 -1
  68. package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs +0 -6
  69. package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs.map +0 -1
  70. package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs +0 -6
  71. package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs.map +0 -1
  72. package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs +0 -6
  73. package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs.map +0 -1
  74. package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs +0 -6
  75. package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs.map +0 -1
  76. package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs +0 -6
  77. package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs.map +0 -1
  78. package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs +0 -6
  79. package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs.map +0 -1
  80. package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs +0 -6
  81. package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs.map +0 -1
  82. package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs +0 -6
  83. package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs.map +0 -1
  84. package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs +0 -6
  85. package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs.map +0 -1
  86. package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs +0 -6
  87. package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs.map +0 -1
  88. package/.output/server/chunks/build/client.manifest.mjs +0 -82
  89. package/.output/server/chunks/build/client.manifest.mjs.map +0 -1
  90. package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs +0 -4
  91. package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs.map +0 -1
  92. package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs +0 -4
  93. package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs.map +0 -1
  94. package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs +0 -4
  95. package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs.map +0 -1
  96. package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs +0 -4
  97. package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs.map +0 -1
  98. package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs +0 -4
  99. package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs.map +0 -1
  100. package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs +0 -4
  101. package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs.map +0 -1
  102. package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs +0 -4
  103. package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs.map +0 -1
  104. package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs +0 -4
  105. package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs.map +0 -1
  106. package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs +0 -4
  107. package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs.map +0 -1
  108. package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs +0 -4
  109. package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs.map +0 -1
  110. package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs +0 -4
  111. package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs.map +0 -1
  112. package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs +0 -4
  113. package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs.map +0 -1
  114. package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs +0 -4
  115. package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs.map +0 -1
  116. package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs +0 -4
  117. package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs.map +0 -1
  118. package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs +0 -4
  119. package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs.map +0 -1
  120. package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs +0 -4
  121. package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs.map +0 -1
  122. package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs +0 -4
  123. package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs.map +0 -1
  124. package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs +0 -4
  125. package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs.map +0 -1
  126. package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs +0 -4
  127. package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs.map +0 -1
  128. package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs +0 -4
  129. package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs.map +0 -1
  130. package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs +0 -4
  131. package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs.map +0 -1
  132. package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs +0 -4
  133. package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs.map +0 -1
  134. package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs +0 -4
  135. package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs.map +0 -1
  136. package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs +0 -4
  137. package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs.map +0 -1
  138. package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs +0 -4
  139. package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs.map +0 -1
  140. package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs +0 -4
  141. package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs.map +0 -1
  142. package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs +0 -4
  143. package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs.map +0 -1
  144. package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs +0 -4
  145. package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs.map +0 -1
  146. package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs +0 -4
  147. package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs.map +0 -1
  148. package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs +0 -4
  149. package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs.map +0 -1
  150. package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs +0 -4
  151. package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs.map +0 -1
  152. package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs +0 -4
  153. package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs.map +0 -1
  154. package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs +0 -39
  155. package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs.map +0 -1
  156. package/.output/server/chunks/build/error-404-BE32jcXw.mjs +0 -399
  157. package/.output/server/chunks/build/error-404-BE32jcXw.mjs.map +0 -1
  158. package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs +0 -4
  159. package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs.map +0 -1
  160. package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs +0 -6
  161. package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs.map +0 -1
  162. package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs +0 -6
  163. package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs.map +0 -1
  164. package/.output/server/chunks/build/error-500-B3vPuajn.mjs +0 -80
  165. package/.output/server/chunks/build/error-500-B3vPuajn.mjs.map +0 -1
  166. package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs +0 -4
  167. package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs.map +0 -1
  168. package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs +0 -6
  169. package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs.map +0 -1
  170. package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs +0 -6
  171. package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs.map +0 -1
  172. package/.output/server/chunks/build/index-C2merokO.mjs +0 -34
  173. package/.output/server/chunks/build/index-C2merokO.mjs.map +0 -1
  174. package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs +0 -6
  175. package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs.map +0 -1
  176. package/.output/server/chunks/build/server.mjs +0 -10495
  177. package/.output/server/chunks/build/server.mjs.map +0 -1
  178. package/.output/server/chunks/build/styles.mjs +0 -47
  179. package/.output/server/chunks/build/styles.mjs.map +0 -1
  180. package/.output/server/chunks/nitro/nitro.mjs +0 -6203
  181. package/.output/server/chunks/nitro/nitro.mjs.map +0 -1
  182. package/.output/server/chunks/routes/api/_trpc_.mjs +0 -209
  183. package/.output/server/chunks/routes/api/_trpc_.mjs.map +0 -1
  184. package/.output/server/chunks/routes/renderer.mjs +0 -391
  185. package/.output/server/chunks/routes/renderer.mjs.map +0 -1
  186. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
  187. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
  188. package/.output/server/index.mjs +0 -7
  189. package/.output/server/index.mjs.map +0 -1
  190. package/.output/server/node_modules/@babel/parser/lib/index.js +0 -14023
  191. package/.output/server/node_modules/@babel/parser/package.json +0 -50
  192. package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1996
  193. package/.output/server/node_modules/@iconify/vue/package.json +0 -65
  194. package/.output/server/node_modules/@trpc/client/dist/TRPCClientError-38f9a32a.mjs +0 -59
  195. package/.output/server/node_modules/@trpc/client/dist/httpBatchLink-d0f9eac9.mjs +0 -248
  196. package/.output/server/node_modules/@trpc/client/dist/httpUtils-b9d0cb48.mjs +0 -144
  197. package/.output/server/node_modules/@trpc/client/dist/index.mjs +0 -365
  198. package/.output/server/node_modules/@trpc/client/dist/links/httpLink.mjs +0 -62
  199. package/.output/server/node_modules/@trpc/client/dist/links/loggerLink.mjs +0 -173
  200. package/.output/server/node_modules/@trpc/client/dist/links/wsLink.mjs +0 -278
  201. package/.output/server/node_modules/@trpc/client/dist/splitLink-4c75f7be.mjs +0 -45
  202. package/.output/server/node_modules/@trpc/client/dist/transformResult-ace864b8.mjs +0 -58
  203. package/.output/server/node_modules/@trpc/client/package.json +0 -101
  204. package/.output/server/node_modules/@trpc/server/dist/TRPCError-98d44758.mjs +0 -39
  205. package/.output/server/node_modules/@trpc/server/dist/batchStreamFormatter-fc1ffb26.mjs +0 -30
  206. package/.output/server/node_modules/@trpc/server/dist/codes-c924c3db.mjs +0 -44
  207. package/.output/server/node_modules/@trpc/server/dist/config-d5fdbd39.mjs +0 -196
  208. package/.output/server/node_modules/@trpc/server/dist/contentType-9fd995d3.mjs +0 -52
  209. package/.output/server/node_modules/@trpc/server/dist/getCauseFromUnknown-2d66414a.mjs +0 -33
  210. package/.output/server/node_modules/@trpc/server/dist/http/index.mjs +0 -9
  211. package/.output/server/node_modules/@trpc/server/dist/index-f91d720c.mjs +0 -97
  212. package/.output/server/node_modules/@trpc/server/dist/index.mjs +0 -871
  213. package/.output/server/node_modules/@trpc/server/dist/observable/index.mjs +0 -147
  214. package/.output/server/node_modules/@trpc/server/dist/observable-ade1bad8.mjs +0 -81
  215. package/.output/server/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs +0 -291
  216. package/.output/server/node_modules/@trpc/server/dist/shared/index.mjs +0 -4
  217. package/.output/server/node_modules/@trpc/server/dist/transformTRPCResponse-1153b421.mjs +0 -53
  218. package/.output/server/node_modules/@trpc/server/package.json +0 -177
  219. package/.output/server/node_modules/@unhead/dom/dist/index.mjs +0 -197
  220. package/.output/server/node_modules/@unhead/dom/package.json +0 -40
  221. package/.output/server/node_modules/@unhead/shared/dist/index.mjs +0 -731
  222. package/.output/server/node_modules/@unhead/shared/package.json +0 -47
  223. package/.output/server/node_modules/@unhead/ssr/dist/index.mjs +0 -95
  224. package/.output/server/node_modules/@unhead/ssr/package.json +0 -40
  225. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6690
  226. package/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
  227. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -686
  228. package/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
  229. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1404
  230. package/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
  231. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1789
  232. package/.output/server/node_modules/@vue/reactivity/package.json +0 -55
  233. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6654
  234. package/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
  235. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1669
  236. package/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
  237. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -857
  238. package/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
  239. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -594
  240. package/.output/server/node_modules/@vue/shared/package.json +0 -47
  241. package/.output/server/node_modules/@vue-flow/background/dist/vue-flow-background.mjs +0 -126
  242. package/.output/server/node_modules/@vue-flow/background/package.json +0 -73
  243. package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +0 -9873
  244. package/.output/server/node_modules/@vue-flow/core/package.json +0 -92
  245. package/.output/server/node_modules/@vue-flow/minimap/dist/vue-flow-minimap.mjs +0 -2953
  246. package/.output/server/node_modules/@vue-flow/minimap/package.json +0 -80
  247. package/.output/server/node_modules/devalue/index.js +0 -3
  248. package/.output/server/node_modules/devalue/package.json +0 -34
  249. package/.output/server/node_modules/devalue/src/base64.js +0 -110
  250. package/.output/server/node_modules/devalue/src/constants.js +0 -6
  251. package/.output/server/node_modules/devalue/src/parse.js +0 -160
  252. package/.output/server/node_modules/devalue/src/stringify.js +0 -232
  253. package/.output/server/node_modules/devalue/src/uneval.js +0 -351
  254. package/.output/server/node_modules/devalue/src/utils.js +0 -113
  255. package/.output/server/node_modules/entities/lib/decode.js +0 -536
  256. package/.output/server/node_modules/entities/lib/decode_codepoint.js +0 -76
  257. package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  258. package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  259. package/.output/server/node_modules/entities/package.json +0 -90
  260. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  261. package/.output/server/node_modules/estree-walker/package.json +0 -37
  262. package/.output/server/node_modules/hookable/dist/index.mjs +0 -290
  263. package/.output/server/node_modules/hookable/package.json +0 -49
  264. package/.output/server/node_modules/nanoid/index.js +0 -46
  265. package/.output/server/node_modules/nanoid/package.json +0 -41
  266. package/.output/server/node_modules/nanoid/url-alphabet/index.js +0 -2
  267. package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +0 -858
  268. package/.output/server/node_modules/pinia/package.json +0 -100
  269. package/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
  270. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  271. package/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
  272. package/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
  273. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
  274. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
  275. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  276. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  277. package/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
  278. package/.output/server/node_modules/source-map-js/lib/util.js +0 -594
  279. package/.output/server/node_modules/source-map-js/package.json +0 -71
  280. package/.output/server/node_modules/source-map-js/source-map.js +0 -8
  281. package/.output/server/node_modules/ufo/dist/index.mjs +0 -630
  282. package/.output/server/node_modules/ufo/package.json +0 -47
  283. package/.output/server/node_modules/unhead/dist/index.mjs +0 -747
  284. package/.output/server/node_modules/unhead/package.json +0 -46
  285. package/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
  286. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  287. package/.output/server/node_modules/vue/index.js +0 -7
  288. package/.output/server/node_modules/vue/index.mjs +0 -1
  289. package/.output/server/node_modules/vue/package.json +0 -112
  290. package/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
  291. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -196
  292. package/.output/server/node_modules/vue-bundle-renderer/package.json +0 -50
  293. package/.output/server/node_modules/vue-demi/lib/index.cjs +0 -29
  294. package/.output/server/node_modules/vue-demi/package.json +0 -47
  295. package/.output/server/node_modules/zod/lib/index.mjs +0 -4236
  296. package/.output/server/node_modules/zod/package.json +0 -119
  297. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +0 -31
  298. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +0 -21
  299. package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +0 -14
  300. package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +0 -37
  301. package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +0 -1
  302. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +0 -164
  303. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +0 -3
  304. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +0 -25
  305. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +0 -49
  306. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +0 -5
  307. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +0 -4
  308. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +0 -4
  309. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +0 -46
  310. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +0 -7
  311. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +0 -6
  312. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +0 -6
  313. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +0 -52
  314. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +0 -21
  315. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +0 -25
  316. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +0 -16
  317. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +0 -5
  318. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +0 -10
  319. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +0 -33
  320. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +0 -52
  321. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +0 -45
  322. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +0 -20
  323. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +0 -20
  324. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +0 -4
  325. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +0 -4
  326. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +0 -57
  327. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +0 -20
  328. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -324
  329. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +0 -32
  330. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +0 -5
  331. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +0 -80
  332. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +0 -3
  333. package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +0 -59
  334. package/.output/server/node_modules/zod-to-json-schema/package.json +0 -89
  335. package/.output/server/package.json +0 -1
@@ -1,365 +0,0 @@
1
- import { share, observableToPromise } from '@trpc/server/observable';
2
- import { c as createChain } from './splitLink-4c75f7be.mjs';
3
- export { s as splitLink } from './splitLink-4c75f7be.mjs';
4
- import { T as TRPCClientError } from './TRPCClientError-38f9a32a.mjs';
5
- export { T as TRPCClientError } from './TRPCClientError-38f9a32a.mjs';
6
- import { createFlatProxy, createRecursiveProxy } from '@trpc/server/shared';
7
- import { f as fetchHTTPResponse, g as getUrl, a as getBody$1, h as httpRequest } from './httpUtils-b9d0cb48.mjs';
8
- export { b as getFetch } from './httpUtils-b9d0cb48.mjs';
9
- import { c as createHTTPBatchLink } from './httpBatchLink-d0f9eac9.mjs';
10
- export { h as httpBatchLink } from './httpBatchLink-d0f9eac9.mjs';
11
- import { httpLinkFactory } from './links/httpLink.mjs';
12
- export { httpLink, httpLinkFactory } from './links/httpLink.mjs';
13
- export { loggerLink } from './links/loggerLink.mjs';
14
- export { createWSClient, wsLink } from './links/wsLink.mjs';
15
- import './transformResult-ace864b8.mjs';
16
-
17
- class TRPCUntypedClient {
18
- $request({ type , input , path , context ={} }) {
19
- const chain$ = createChain({
20
- links: this.links,
21
- op: {
22
- id: ++this.requestId,
23
- type,
24
- path,
25
- input,
26
- context
27
- }
28
- });
29
- return chain$.pipe(share());
30
- }
31
- requestAsPromise(opts) {
32
- const req$ = this.$request(opts);
33
- const { promise , abort } = observableToPromise(req$);
34
- const abortablePromise = new Promise((resolve, reject)=>{
35
- opts.signal?.addEventListener('abort', abort);
36
- promise.then((envelope)=>{
37
- resolve(envelope.result.data);
38
- }).catch((err)=>{
39
- reject(TRPCClientError.from(err));
40
- });
41
- });
42
- return abortablePromise;
43
- }
44
- query(path, input, opts) {
45
- return this.requestAsPromise({
46
- type: 'query',
47
- path,
48
- input,
49
- context: opts?.context,
50
- signal: opts?.signal
51
- });
52
- }
53
- mutation(path, input, opts) {
54
- return this.requestAsPromise({
55
- type: 'mutation',
56
- path,
57
- input,
58
- context: opts?.context,
59
- signal: opts?.signal
60
- });
61
- }
62
- subscription(path, input, opts) {
63
- const observable$ = this.$request({
64
- type: 'subscription',
65
- path,
66
- input,
67
- context: opts?.context
68
- });
69
- return observable$.subscribe({
70
- next (envelope) {
71
- if (envelope.result.type === 'started') {
72
- opts.onStarted?.();
73
- } else if (envelope.result.type === 'stopped') {
74
- opts.onStopped?.();
75
- } else {
76
- opts.onData?.(envelope.result.data);
77
- }
78
- },
79
- error (err) {
80
- opts.onError?.(err);
81
- },
82
- complete () {
83
- opts.onComplete?.();
84
- }
85
- });
86
- }
87
- constructor(opts){
88
- this.requestId = 0;
89
- const combinedTransformer = (()=>{
90
- const transformer = opts.transformer;
91
- if (!transformer) {
92
- return {
93
- input: {
94
- serialize: (data)=>data,
95
- deserialize: (data)=>data
96
- },
97
- output: {
98
- serialize: (data)=>data,
99
- deserialize: (data)=>data
100
- }
101
- };
102
- }
103
- if ('input' in transformer) {
104
- return opts.transformer;
105
- }
106
- return {
107
- input: transformer,
108
- output: transformer
109
- };
110
- })();
111
- this.runtime = {
112
- transformer: {
113
- serialize: (data)=>combinedTransformer.input.serialize(data),
114
- deserialize: (data)=>combinedTransformer.output.deserialize(data)
115
- },
116
- combinedTransformer
117
- };
118
- // Initialize the links
119
- this.links = opts.links.map((link)=>link(this.runtime));
120
- }
121
- }
122
-
123
- function createTRPCUntypedClient(opts) {
124
- return new TRPCUntypedClient(opts);
125
- }
126
-
127
- /**
128
- * @deprecated use `createTRPCProxyClient` instead
129
- */ function createTRPCClient(opts) {
130
- const client = new TRPCUntypedClient(opts);
131
- return client;
132
- }
133
-
134
- const clientCallTypeMap = {
135
- query: 'query',
136
- mutate: 'mutation',
137
- subscribe: 'subscription'
138
- };
139
- /** @internal */ const clientCallTypeToProcedureType = (clientCallType)=>{
140
- return clientCallTypeMap[clientCallType];
141
- };
142
- /**
143
- * @deprecated use `createTRPCProxyClient` instead
144
- * @internal
145
- */ function createTRPCClientProxy(client) {
146
- return createFlatProxy((key)=>{
147
- if (client.hasOwnProperty(key)) {
148
- return client[key];
149
- }
150
- if (key === '__untypedClient') {
151
- return client;
152
- }
153
- return createRecursiveProxy(({ path , args })=>{
154
- const pathCopy = [
155
- key,
156
- ...path
157
- ];
158
- const procedureType = clientCallTypeToProcedureType(pathCopy.pop());
159
- const fullPath = pathCopy.join('.');
160
- return client[procedureType](fullPath, ...args);
161
- });
162
- });
163
- }
164
- function createTRPCProxyClient(opts) {
165
- const client = new TRPCUntypedClient(opts);
166
- const proxy = createTRPCClientProxy(client);
167
- return proxy;
168
- }
169
- /**
170
- * Get an untyped client from a proxy client
171
- * @internal
172
- */ function getUntypedClient(client) {
173
- return client.__untypedClient;
174
- }
175
-
176
- function getTextDecoder(customTextDecoder) {
177
- if (customTextDecoder) {
178
- return customTextDecoder;
179
- }
180
- // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
181
- if (typeof window !== 'undefined' && window.TextDecoder) {
182
- return new window.TextDecoder();
183
- }
184
- // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
185
- if (typeof globalThis !== 'undefined' && globalThis.TextDecoder) {
186
- return new globalThis.TextDecoder();
187
- }
188
- throw new Error('No TextDecoder implementation found');
189
- }
190
-
191
- // Stream parsing adapted from https://www.loginradius.com/blog/engineering/guest-post/http-streaming-with-nodejs-and-fetch-api/
192
- /**
193
- * @internal
194
- * @description Take a stream of bytes and call `onLine` with
195
- * a JSON object for each line in the stream. Expected stream
196
- * format is:
197
- * ```json
198
- * {"1": {...}
199
- * ,"0": {...}
200
- * }
201
- * ```
202
- */ async function parseJSONStream(opts) {
203
- const parse = opts.parse ?? JSON.parse;
204
- const onLine = (line)=>{
205
- if (opts.signal?.aborted) return;
206
- if (!line || line === '}') {
207
- return;
208
- }
209
- /**
210
- * At this point, `line` can be one of two things:
211
- * - The first line of the stream `{"2":{...}`
212
- * - A line in the middle of the stream `,"2":{...}`
213
- */ const indexOfColon = line.indexOf(':');
214
- const indexAsStr = line.substring(2, indexOfColon - 1);
215
- const text = line.substring(indexOfColon + 1);
216
- opts.onSingle(Number(indexAsStr), parse(text));
217
- };
218
- await readLines(opts.readableStream, onLine, opts.textDecoder);
219
- }
220
- /**
221
- * Handle transforming a stream of bytes into lines of text.
222
- * To avoid using AsyncIterators / AsyncGenerators,
223
- * we use a callback for each line.
224
- *
225
- * @param readableStream can be a NodeJS stream or a WebAPI stream
226
- * @param onLine will be called for every line ('\n' delimited) in the stream
227
- */ async function readLines(readableStream, onLine, textDecoder) {
228
- let partOfLine = '';
229
- const onChunk = (chunk)=>{
230
- const chunkText = textDecoder.decode(chunk);
231
- const chunkLines = chunkText.split('\n');
232
- if (chunkLines.length === 1) {
233
- partOfLine += chunkLines[0];
234
- } else if (chunkLines.length > 1) {
235
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- length checked on line above
236
- onLine(partOfLine + chunkLines[0]);
237
- for(let i = 1; i < chunkLines.length - 1; i++){
238
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- length checked on line above
239
- onLine(chunkLines[i]);
240
- }
241
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- length doesn't change, so is necessarily > 1
242
- partOfLine = chunkLines[chunkLines.length - 1];
243
- }
244
- };
245
- // we handle 2 different types of streams, this if where we figure out which one we have
246
- if ('getReader' in readableStream) {
247
- await readStandardChunks(readableStream, onChunk);
248
- } else {
249
- await readNodeChunks(readableStream, onChunk);
250
- }
251
- onLine(partOfLine);
252
- }
253
- /**
254
- * Handle NodeJS stream
255
- */ function readNodeChunks(stream, onChunk) {
256
- return new Promise((resolve)=>{
257
- stream.on('data', onChunk);
258
- stream.on('end', resolve);
259
- });
260
- }
261
- /**
262
- * Handle WebAPI stream
263
- */ async function readStandardChunks(stream, onChunk) {
264
- const reader = stream.getReader();
265
- let readResult = await reader.read();
266
- while(!readResult.done){
267
- onChunk(readResult.value);
268
- readResult = await reader.read();
269
- }
270
- }
271
- const streamingJsonHttpRequester = (opts, onSingle)=>{
272
- const ac = opts.AbortController ? new opts.AbortController() : null;
273
- const responsePromise = fetchHTTPResponse({
274
- ...opts,
275
- contentTypeHeader: 'application/json',
276
- batchModeHeader: 'stream',
277
- getUrl,
278
- getBody: getBody$1
279
- }, ac);
280
- const cancel = ()=>ac?.abort();
281
- const promise = responsePromise.then(async (res)=>{
282
- if (!res.body) throw new Error('Received response without body');
283
- const meta = {
284
- response: res
285
- };
286
- return parseJSONStream({
287
- readableStream: res.body,
288
- onSingle,
289
- parse: (string)=>({
290
- json: JSON.parse(string),
291
- meta
292
- }),
293
- signal: ac?.signal,
294
- textDecoder: opts.textDecoder
295
- });
296
- });
297
- return {
298
- cancel,
299
- promise
300
- };
301
- };
302
-
303
- const streamRequester = (requesterOpts)=>{
304
- const textDecoder = getTextDecoder(requesterOpts.opts.textDecoder);
305
- return (batchOps, unitResolver)=>{
306
- const path = batchOps.map((op)=>op.path).join(',');
307
- const inputs = batchOps.map((op)=>op.input);
308
- const { cancel , promise } = streamingJsonHttpRequester({
309
- ...requesterOpts,
310
- textDecoder,
311
- path,
312
- inputs,
313
- headers () {
314
- if (!requesterOpts.opts.headers) {
315
- return {};
316
- }
317
- if (typeof requesterOpts.opts.headers === 'function') {
318
- return requesterOpts.opts.headers({
319
- opList: batchOps
320
- });
321
- }
322
- return requesterOpts.opts.headers;
323
- }
324
- }, (index, res)=>{
325
- unitResolver(index, res);
326
- });
327
- return {
328
- /**
329
- * return an empty array because the batchLoader expects an array of results
330
- * but we've already called the `unitResolver` for each of them, there's
331
- * nothing left to do here.
332
- */ promise: promise.then(()=>[]),
333
- cancel
334
- };
335
- };
336
- };
337
- const unstable_httpBatchStreamLink = createHTTPBatchLink(streamRequester);
338
-
339
- const getBody = (opts)=>{
340
- if (!('input' in opts)) {
341
- return undefined;
342
- }
343
- if (!(opts.input instanceof FormData)) {
344
- throw new Error('Input is not FormData');
345
- }
346
- return opts.input;
347
- };
348
- const formDataRequester = (opts)=>{
349
- if (opts.type !== 'mutation') {
350
- // TODO(?) handle formdata queries
351
- throw new Error('We only handle mutations with formdata');
352
- }
353
- return httpRequest({
354
- ...opts,
355
- getUrl () {
356
- return `${opts.url}/${opts.path}`;
357
- },
358
- getBody
359
- });
360
- };
361
- const experimental_formDataLink = httpLinkFactory({
362
- requester: formDataRequester
363
- });
364
-
365
- export { TRPCUntypedClient, clientCallTypeToProcedureType, createTRPCClient, createTRPCClientProxy, createTRPCProxyClient, createTRPCUntypedClient, experimental_formDataLink, getUntypedClient, unstable_httpBatchStreamLink };
@@ -1,62 +0,0 @@
1
- import { observable } from '@trpc/server/observable';
2
- import { t as transformResult } from '../transformResult-ace864b8.mjs';
3
- import { T as TRPCClientError } from '../TRPCClientError-38f9a32a.mjs';
4
- import { r as resolveHTTPLinkOptions, j as jsonHttpRequester } from '../httpUtils-b9d0cb48.mjs';
5
- import '@trpc/server/shared';
6
-
7
- function httpLinkFactory(factoryOpts) {
8
- return (opts)=>{
9
- const resolvedOpts = resolveHTTPLinkOptions(opts);
10
- return (runtime)=>({ op })=>observable((observer)=>{
11
- const { path , input , type } = op;
12
- const { promise , cancel } = factoryOpts.requester({
13
- ...resolvedOpts,
14
- runtime,
15
- type,
16
- path,
17
- input,
18
- headers () {
19
- if (!opts.headers) {
20
- return {};
21
- }
22
- if (typeof opts.headers === 'function') {
23
- return opts.headers({
24
- op
25
- });
26
- }
27
- return opts.headers;
28
- }
29
- });
30
- let meta = undefined;
31
- promise.then((res)=>{
32
- meta = res.meta;
33
- const transformed = transformResult(res.json, runtime);
34
- if (!transformed.ok) {
35
- observer.error(TRPCClientError.from(transformed.error, {
36
- meta
37
- }));
38
- return;
39
- }
40
- observer.next({
41
- context: res.meta,
42
- result: transformed.result
43
- });
44
- observer.complete();
45
- }).catch((cause)=>{
46
- observer.error(TRPCClientError.from(cause, {
47
- meta
48
- }));
49
- });
50
- return ()=>{
51
- cancel();
52
- };
53
- });
54
- };
55
- }
56
- /**
57
- * @see https://trpc.io/docs/client/links/httpLink
58
- */ const httpLink = httpLinkFactory({
59
- requester: jsonHttpRequester
60
- });
61
-
62
- export { httpLink, httpLinkFactory };
@@ -1,173 +0,0 @@
1
- import { observable, tap } from '@trpc/server/observable';
2
-
3
- /// <reference lib="dom.iterable" />
4
- function isFormData(value) {
5
- if (typeof FormData === 'undefined') {
6
- // FormData is not supported
7
- return false;
8
- }
9
- return value instanceof FormData;
10
- }
11
- const palettes = {
12
- css: {
13
- query: [
14
- '72e3ff',
15
- '3fb0d8'
16
- ],
17
- mutation: [
18
- 'c5a3fc',
19
- '904dfc'
20
- ],
21
- subscription: [
22
- 'ff49e1',
23
- 'd83fbe'
24
- ]
25
- },
26
- ansi: {
27
- regular: {
28
- // Cyan background, black and white text respectively
29
- query: [
30
- '\x1b[30;46m',
31
- '\x1b[97;46m'
32
- ],
33
- // Magenta background, black and white text respectively
34
- mutation: [
35
- '\x1b[30;45m',
36
- '\x1b[97;45m'
37
- ],
38
- // Green background, black and white text respectively
39
- subscription: [
40
- '\x1b[30;42m',
41
- '\x1b[97;42m'
42
- ]
43
- },
44
- bold: {
45
- query: [
46
- '\x1b[1;30;46m',
47
- '\x1b[1;97;46m'
48
- ],
49
- mutation: [
50
- '\x1b[1;30;45m',
51
- '\x1b[1;97;45m'
52
- ],
53
- subscription: [
54
- '\x1b[1;30;42m',
55
- '\x1b[1;97;42m'
56
- ]
57
- }
58
- }
59
- };
60
- function constructPartsAndArgs(opts) {
61
- const { direction , type , path , id , input } = opts;
62
- const parts = [];
63
- const args = [];
64
- if (opts.colorMode === 'ansi') {
65
- const [lightRegular, darkRegular] = palettes.ansi.regular[type];
66
- const [lightBold, darkBold] = palettes.ansi.bold[type];
67
- const reset = '\x1b[0m';
68
- parts.push(direction === 'up' ? lightRegular : darkRegular, direction === 'up' ? '>>' : '<<', type, direction === 'up' ? lightBold : darkBold, `#${id}`, path, reset);
69
- if (direction === 'up') {
70
- args.push({
71
- input: opts.input
72
- });
73
- } else {
74
- args.push({
75
- input: opts.input,
76
- // strip context from result cause it's too noisy in terminal wihtout collapse mode
77
- result: 'result' in opts.result ? opts.result.result : opts.result,
78
- elapsedMs: opts.elapsedMs
79
- });
80
- }
81
- return {
82
- parts,
83
- args
84
- };
85
- }
86
- const [light, dark] = palettes.css[type];
87
- const css = `
88
- background-color: #${direction === 'up' ? light : dark};
89
- color: ${direction === 'up' ? 'black' : 'white'};
90
- padding: 2px;
91
- `;
92
- parts.push('%c', direction === 'up' ? '>>' : '<<', type, `#${id}`, `%c${path}%c`, '%O');
93
- args.push(css, `${css}; font-weight: bold;`, `${css}; font-weight: normal;`);
94
- if (direction === 'up') {
95
- args.push({
96
- input,
97
- context: opts.context
98
- });
99
- } else {
100
- args.push({
101
- input,
102
- result: opts.result,
103
- elapsedMs: opts.elapsedMs,
104
- context: opts.context
105
- });
106
- }
107
- return {
108
- parts,
109
- args
110
- };
111
- }
112
- // maybe this should be moved to it's own package
113
- const defaultLogger = ({ c =console , colorMode ='css' })=>(props)=>{
114
- const rawInput = props.input;
115
- const input = isFormData(rawInput) ? Object.fromEntries(rawInput) : rawInput;
116
- const { parts , args } = constructPartsAndArgs({
117
- ...props,
118
- colorMode,
119
- input
120
- });
121
- const fn = props.direction === 'down' && props.result && (props.result instanceof Error || 'error' in props.result.result) ? 'error' : 'log';
122
- c[fn].apply(null, [
123
- parts.join(' ')
124
- ].concat(args));
125
- };
126
- /**
127
- * @see https://trpc.io/docs/client/links/loggerLink
128
- */ function loggerLink(opts = {}) {
129
- const { enabled =()=>true } = opts;
130
- const colorMode = opts.colorMode ?? (typeof window === 'undefined' ? 'ansi' : 'css');
131
- const { logger =defaultLogger({
132
- c: opts.console,
133
- colorMode
134
- }) } = opts;
135
- return ()=>{
136
- return ({ op , next })=>{
137
- return observable((observer)=>{
138
- // ->
139
- enabled({
140
- ...op,
141
- direction: 'up'
142
- }) && logger({
143
- ...op,
144
- direction: 'up'
145
- });
146
- const requestStartTime = Date.now();
147
- function logResult(result) {
148
- const elapsedMs = Date.now() - requestStartTime;
149
- enabled({
150
- ...op,
151
- direction: 'down',
152
- result
153
- }) && logger({
154
- ...op,
155
- direction: 'down',
156
- elapsedMs,
157
- result
158
- });
159
- }
160
- return next(op).pipe(tap({
161
- next (result) {
162
- logResult(result);
163
- },
164
- error (result) {
165
- logResult(result);
166
- }
167
- })).subscribe(observer);
168
- });
169
- };
170
- };
171
- }
172
-
173
- export { loggerLink };