decocms 2.302.5 → 2.302.6

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 (412) hide show
  1. package/dist/client/assets/{AlertCircle-C3v8uxQV.js → AlertCircle-DYsBkqgk.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-DqjvSsdH.js → ArrowNarrowLeft-f4NsG2u2.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-B0mRU26a.js → ArrowUpRight-0SvsPZ4w.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-R_thqCxv.js → CheckCircle-CXidvOnE.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BIaDZcDn.js → ChevronDown-T3J_FVZJ.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-Dd4hxp1D.js → ChevronRight-CAh53MYi.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-CkYQx1Bj.js → ChevronUp-BB9elRBQ.js} +1 -1
  8. package/dist/client/assets/{Container-C9PcQlkh.js → Container-CzTl4K2T.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-XchXO7Ol.js → DotsVertical-BzVzv-oX.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-CeSFqmDM.js → LinkExternal01-w4yRWGwt.js} +1 -1
  11. package/dist/client/assets/{Lock01-Ct2davzl.js → Lock01-y59fY-pi.js} +1 -1
  12. package/dist/client/assets/{Palette-C-Uvqmxu.js → Palette-DHavAHjq.js} +1 -1
  13. package/dist/client/assets/{Play-BhfmXnEc.js → Play-iXdmlyAm.js} +1 -1
  14. package/dist/client/assets/{Plus-Cp0KPDXV.js → Plus-CxFWwhW1.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-DpQ0bWEr.js → RefreshCcw01-D9tZoyTd.js} +1 -1
  16. package/dist/client/assets/{SearchMd-CRDaIIAo.js → SearchMd-DESZBiw-.js} +1 -1
  17. package/dist/client/assets/{Settings02-o1SCp48r.js → Settings02-Hf6ZIRqV.js} +1 -1
  18. package/dist/client/assets/{Shield01-CIRxPwUL.js → Shield01-BoHQvnPl.js} +1 -1
  19. package/dist/client/assets/{Star01-CFSBtznF.js → Star01-DXGNUfAS.js} +1 -1
  20. package/dist/client/assets/{Sun-DRVshJ4h.js → Sun-27B3YKPV.js} +1 -1
  21. package/dist/client/assets/{Tool01-70GpeWbj.js → Tool01-_70cqt2t.js} +1 -1
  22. package/dist/client/assets/{Trash01-x0uVmxtV.js → Trash01-BFWH9msw.js} +1 -1
  23. package/dist/client/assets/{User01-CDjsPNWR.js → User01-Cn3EgXS1.js} +1 -1
  24. package/dist/client/assets/{Users03-D7_xGfRK.js → Users03-DQJCKjsg.js} +1 -1
  25. package/dist/client/assets/{X-Y9O2r61Y.js → X-D7XtWfgE.js} +1 -1
  26. package/dist/client/assets/{XCircle-Boh1wV2D.js → XCircle-C4cR7ffS.js} +1 -1
  27. package/dist/client/assets/{XClose-DrATv0fK.js → XClose-BIyC5w2n.js} +1 -1
  28. package/dist/client/assets/{Zap-DXZlejxD.js → Zap-5CNC0Ept.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-TQyLEhYQ.js → ZapSquare-C5LgmBxA.js} +1 -1
  30. package/dist/client/assets/{accordion-kXMFpzvY.js → accordion-Cd97pZzi.js} +1 -1
  31. package/dist/client/assets/{agent-icon-BkXaC4dn.js → agent-icon-B9_saWOv.js} +1 -1
  32. package/dist/client/assets/{agents-list-BZs3KGTP.js → agents-list-BgyjjVf_.js} +1 -1
  33. package/dist/client/assets/ai-providers-DK0_8BYC.js +1 -0
  34. package/dist/client/assets/{alert-dialog-DE4JF7gT.js → alert-dialog-OujxhZeA.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-BKOk33zi.js → auth-catchall-DjKppIi6.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-C3Ff1asd.js → automation-list-row-DGv6wybK.js} +1 -1
  37. package/dist/client/assets/{automations-CSFxuEov.js → automations-BwhFPhC-.js} +1 -1
  38. package/dist/client/assets/{avatar-Cbdobq83.js → avatar-C_UGze8T.js} +1 -1
  39. package/dist/client/assets/{badge-DnIGvusX.js → badge-DpwrE1zH.js} +1 -1
  40. package/dist/client/assets/{brand-context-CK47iya3.js → brand-context-D4_qXiHY.js} +1 -1
  41. package/dist/client/assets/{card-BlDciy6y.js → card-B2FlHiSa.js} +1 -1
  42. package/dist/client/assets/{chat-context-BR7AKiVj.js → chat-context-BehWdIE_.js} +1 -1
  43. package/dist/client/assets/{checkbox-CbKyITB3.js → checkbox-ByEBQCLB.js} +1 -1
  44. package/dist/client/assets/{collection-detail-BE243KKe.js → collection-detail-BO6A-6D3.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-Bs_toiw3.js → collection-display-button-Duh_PqWr.js} +1 -1
  46. package/dist/client/assets/{collection-search-Bok8ho3j.js → collection-search-B9TJgiJz.js} +1 -1
  47. package/dist/client/assets/{collection-search-CiijcwRe.js → collection-search-Buik536F.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-C0i-hx-e.js → collection-table-wrapper-E2fNxYM9.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-DWkZe3wt.js → collection-tabs-BPN7Casr.js} +1 -1
  50. package/dist/client/assets/{collections-C5FoML4p.js → collections-nZFIaO7A.js} +1 -1
  51. package/dist/client/assets/{command-C2FQlATW.js → command-8r7A67dg.js} +1 -1
  52. package/dist/client/assets/{connection-card-DR63waj2.js → connection-card-B84kBAnY.js} +1 -1
  53. package/dist/client/assets/{connection-detail-C14Memac.js → connection-detail-T4cI2Rar.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-DUpdgqN2.js → connection-form-helpers-DXAccRFx.js} +1 -1
  55. package/dist/client/assets/{connections-v2-xkf44.js → connections-DdrV40z5.js} +1 -1
  56. package/dist/client/assets/{constants-b-g-bhUD.js → constants-DFyn79Ih.js} +1 -1
  57. package/dist/client/assets/{constants-Co3yHY4g.js → constants-DYjDD2hw.js} +1 -1
  58. package/dist/client/assets/{dialog-BShWtPYB.js → dialog-CmncC-6K.js} +1 -1
  59. package/dist/client/assets/{domain-settings-BaWkNlMc.js → domain-settings-CtzaIQej.js} +1 -1
  60. package/dist/client/assets/{drawer-BJU9NNnI.js → drawer-DGcXLXQn.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-DyF3EUCW.js → dropdown-menu-CDsPRIxB.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-Be4w7kRD.js → dynamic-plugin-layout-hLPoR_s6.js} +1 -1
  63. package/dist/client/assets/{empty-state-o2OLy2PY.js → empty-state-BoNuHRpQ.js} +1 -1
  64. package/dist/client/assets/{empty-state-C8lkMmnr.js → empty-state-Dy2IUdp3.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-BCJ9z3jK.js → extract-connection-data-VJ13de98.js} +1 -1
  66. package/dist/client/assets/{features-DmpNxI8D.js → features-C9HfymjH.js} +1 -1
  67. package/dist/client/assets/{form-CU1xnDC1.js → form-D2IsM6ud.js} +1 -1
  68. package/dist/client/assets/{general-DtZ69dQj.js → general-DF9nKrr6.js} +1 -1
  69. package/dist/client/assets/{index-Dmp30UfO.js → index-BDWHZF4c.js} +2 -2
  70. package/dist/client/assets/{index-DdqDY9sX.js → index-BVSR2SFo.js} +1 -1
  71. package/dist/client/assets/{index-93vCrQRs.js → index-BXLSydrA.js} +1 -1
  72. package/dist/client/assets/{index-BD0s5h1x.js → index-BlJhA7rZ.js} +1 -1
  73. package/dist/client/assets/{index-BAqW6-1-.js → index-C9vZi4B1.js} +1 -1
  74. package/dist/client/assets/{index-Bbhlg2OG.js → index-CETKIyXW.js} +1 -1
  75. package/dist/client/assets/{index-D9VqK4wg.js → index-CT7XdYTs.js} +1 -1
  76. package/dist/client/assets/{index-BJDXTR0N.js → index-CWU3080-.js} +1 -1
  77. package/dist/client/assets/{index-BvvlryQB.js → index-CkKhKJfC.js} +1 -1
  78. package/dist/client/assets/index-D4C2QwcG.js +1 -0
  79. package/dist/client/assets/{index-YXlEtKoF.js → index-DEwSM5UO.js} +3 -3
  80. package/dist/client/assets/{index-CShtHeIs.js → index-DJ4-TGQU.js} +1 -1
  81. package/dist/client/assets/{index-DJzKiogP.js → index-DN6IuHkz.js} +1 -1
  82. package/dist/client/assets/{index-DYdxc4zk.js → index-DPbaB7jD.js} +1 -1
  83. package/dist/client/assets/{index-BkZrdPDM.js → index-FR3V6lrD.js} +1 -1
  84. package/dist/client/assets/{index-Dq0WJfNG.js → index-KELtbXYG.js} +1 -1
  85. package/dist/client/assets/{infiniteQueryObserver-Bgu8I4E_.js → infiniteQueryObserver-DMzx8Ajh.js} +1 -1
  86. package/dist/client/assets/{input-DE5dVvtt.js → input-Bdzlyvmj.js} +1 -1
  87. package/dist/client/assets/{integration-icon-BSWYobpu.js → integration-icon-Cy5BK0qE.js} +1 -1
  88. package/dist/client/assets/{label-MyRBse_4.js → label-Bw2PIYCj.js} +1 -1
  89. package/dist/client/assets/{layout-Chu0ZeeD.js → layout-CYPmG5mO.js} +1 -1
  90. package/dist/client/assets/{lean-canvas-recruit-modal-CnPQVk8j.js → lean-canvas-recruit-modal-BT4juGyz.js} +1 -1
  91. package/dist/client/assets/{login-DgG8VVG-.js → login-B28e1Wyf.js} +1 -1
  92. package/dist/client/assets/{members-JZ8_eiTP.js → members-MaYKbIl8.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-jevI2jI9.js → monaco-editor-B0DWqYLF.js} +1 -1
  94. package/dist/client/assets/{monitoring-stats-row-8Ez2tQeb.js → monitoring-stats-row-DH201TcG.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-ai-provider-okDQrh8X.js → oauth-callback-ai-provider-DNZYP_aS.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-BO14tjoC.js → oauth-callback-sJETWziT.js} +1 -1
  97. package/dist/client/assets/{onboarding-B9YWKytA.js → onboarding-CarvRKmy.js} +1 -1
  98. package/dist/client/assets/{org-layout-CaA0XUBd.js → org-layout-DHW0VeFP.js} +1 -1
  99. package/dist/client/assets/{org-plugin-layout-DgNjRY8f.js → org-plugin-layout-CXpJSkkf.js} +1 -1
  100. package/dist/client/assets/{pair-BuupCCmO.js → pair-OadcxUG9.js} +1 -1
  101. package/dist/client/assets/{plugin-empty-state-Bgr-X4yK.js → plugin-empty-state-DesCuNpH.js} +1 -1
  102. package/dist/client/assets/{plugin-header-B7jqrzr6.js → plugin-header--6VZlO2H.js} +1 -1
  103. package/dist/client/assets/{plugin-layout-CgWUHRf6.js → plugin-layout-C9GSESK4.js} +1 -1
  104. package/dist/client/assets/{popover-zG7HhkCX.js → popover-BY5xAQmF.js} +1 -1
  105. package/dist/client/assets/{profile-gUcdx9gL.js → profile-BoZLpLkD.js} +1 -1
  106. package/dist/client/assets/{project-app-view-CTLBsma1.js → project-app-view-DzdWARcC.js} +1 -1
  107. package/dist/client/assets/registry-CR-1KhXP.js +2 -0
  108. package/dist/client/assets/{registry-layout-J29xLmfl.js → registry-layout-CdwMJvbZ.js} +1 -1
  109. package/dist/client/assets/{required-auth-layout-C8_RljYS.js → required-auth-layout-BDnZ49oa.js} +1 -1
  110. package/dist/client/assets/{reset-password-UcXKDRuV.js → reset-password-DUYGrA7L.js} +1 -1
  111. package/dist/client/assets/{roles-Dp_NwNIB.js → roles-Y85thY7n.js} +1 -1
  112. package/dist/client/assets/{scroll-area-CidaZG9N.js → scroll-area-qCxE2hon.js} +1 -1
  113. package/dist/client/assets/{search-input-DZHvtDyy.js → search-input-B5lcLg8G.js} +1 -1
  114. package/dist/client/assets/{select-DClDmbpQ.js → select-CPOZtPOm.js} +1 -1
  115. package/dist/client/assets/{select-model-BeD5k8y2.js → select-model-BtIjEXHL.js} +1 -1
  116. package/dist/client/assets/{settings-layout-DU93HHod.js → settings-layout-DLuUhrGj.js} +1 -1
  117. package/dist/client/assets/{settings-section-BTtNKAuG.js → settings-section-CjgR1v3b.js} +1 -1
  118. package/dist/client/assets/{shell-layout-BKNqqCpH.js → shell-layout-DSlnYQwS.js} +1 -1
  119. package/dist/client/assets/{skeleton-7XdQnZLr.js → skeleton-CIdd6LnB.js} +1 -1
  120. package/dist/client/assets/{sso-C2TaBJ_X.js → sso-7YErCYvk.js} +1 -1
  121. package/dist/client/assets/{store-CJBzqIhb.js → store-3uf30l0N.js} +1 -1
  122. package/dist/client/assets/store-registry-ClZqe9d2.js +2 -0
  123. package/dist/client/assets/{switch-BorShhPS.js → switch-BKqARx2z.js} +1 -1
  124. package/dist/client/assets/{table-CHej9oM7.js → table-DSnKB3WU.js} +1 -1
  125. package/dist/client/assets/{tabs-Dz2iGebN.js → tabs-BqvlcXR7.js} +1 -1
  126. package/dist/client/assets/{task-status-B0ESb4uD.js → task-status-CEH-hhyq.js} +1 -1
  127. package/dist/client/assets/{textarea-DyhzZ3a0.js → textarea-BDXFkTIX.js} +1 -1
  128. package/dist/client/assets/{toggle-group-BgXNE5eK.js → toggle-group-BNTZzdFS.js} +1 -1
  129. package/dist/client/assets/{tools-list-D_f871AE.js → tools-list-Dw6JwtIs.js} +1 -1
  130. package/dist/client/assets/{tooltip-CPTWAn4e.js → tooltip-_WWA2f_Q.js} +1 -1
  131. package/dist/client/assets/{types-DznggzE7.js → types-3fOwpBiV.js} +1 -1
  132. package/dist/client/assets/{use-ai-providers-CF-WEnpG.js → use-ai-providers-CeAjYVgE.js} +1 -1
  133. package/dist/client/assets/{use-collections-CgnneowC.js → use-collections-CsI9zuvk.js} +1 -1
  134. package/dist/client/assets/{use-connection-CXfm8X-F.js → use-connection-c2fdn_Q4.js} +1 -1
  135. package/dist/client/assets/{use-copy-CBLDGR3I.js → use-copy-CkKvvrYW.js} +1 -1
  136. package/dist/client/assets/{use-create-virtual-mcp-LChuERqV.js → use-create-virtual-mcp-DG6IAqew.js} +1 -1
  137. package/dist/client/assets/{use-decopilot-events-BJdfGMiz.js → use-decopilot-events-BJCOOgAS.js} +1 -1
  138. package/dist/client/assets/{use-delete-connection-CjzA3_5D.js → use-delete-connection-BjJoFZAR.js} +1 -1
  139. package/dist/client/assets/{use-infinite-scroll-DiAb3Px5.js → use-infinite-scroll-C1mLbaq7.js} +1 -1
  140. package/dist/client/assets/{use-list-state-DjI0vjHj.js → use-list-state-BIGugSjM.js} +1 -1
  141. package/dist/client/assets/{use-mcp-tools-DFoWakZ9.js → use-mcp-tools-CLk_EUg4.js} +1 -1
  142. package/dist/client/assets/{use-members-BRHKFgBf.js → use-members-C52huH1h.js} +1 -1
  143. package/dist/client/assets/{use-navigate-to-agent-XCi2yYhB.js → use-navigate-to-agent-DY3jsv9_.js} +1 -1
  144. package/dist/client/assets/{use-org-auth-client-3kBAJUD3.js → use-org-auth-client-Brlzufmt.js} +1 -1
  145. package/dist/client/assets/{use-org-sso-CcympP7K.js → use-org-sso-D0sdE_Rr.js} +1 -1
  146. package/dist/client/assets/{use-organization-roles-BVvoY3A5.js → use-organization-roles-CxDdUjnY.js} +1 -1
  147. package/dist/client/assets/{use-organization-settings-fzhI1sm5.js → use-organization-settings-qeGEmxxb.js} +1 -1
  148. package/dist/client/assets/{use-registry-connections-A44r5oEv.js → use-registry-connections-B3dA54zD.js} +1 -1
  149. package/dist/client/assets/{use-status-sounds-O9ew_8Ll.js → use-status-sounds-DyfabNoq.js} +1 -1
  150. package/dist/client/assets/{use-tasks-u-3hCZTJ.js → use-tasks-CalaAWsj.js} +1 -1
  151. package/dist/client/assets/{use-view-mode-DlaGUb5K.js → use-view-mode-J-pl-NFS.js} +1 -1
  152. package/dist/client/assets/{use-virtual-mcp-DCBMUq-0.js → use-virtual-mcp-Ci2IQchC.js} +1 -1
  153. package/dist/client/assets/useInfiniteQuery-_4aHbhXJ.js +1 -0
  154. package/dist/client/assets/useSuspenseInfiniteQuery-DEL5b49j.js +1 -0
  155. package/dist/client/assets/{user-CcjBPChW.js → user-BduM2bsi.js} +1 -1
  156. package/dist/client/assets/{view-mode-toggle-DQvv5M2y.js → view-mode-toggle-CAxEHNjr.js} +1 -1
  157. package/dist/client/assets/{workflow-BCEkisit.js → workflow-B-q1l-SU.js} +1 -1
  158. package/dist/client/assets/workflow-detail-Jmd9Dc5X.js +1 -0
  159. package/dist/client/index.html +1 -1
  160. package/dist/server/cli.js +3 -3
  161. package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
  162. package/dist/server/node_modules/ansi-styles/index.js +223 -0
  163. package/dist/server/node_modules/{slice-ansi → ansi-styles}/license +0 -1
  164. package/dist/server/node_modules/ansi-styles/package.json +54 -0
  165. package/dist/server/node_modules/ansi-styles/readme.md +173 -0
  166. package/dist/server/node_modules/cli-cursor/index.d.ts +47 -0
  167. package/dist/server/node_modules/cli-cursor/index.js +39 -0
  168. package/dist/server/node_modules/{ink → cli-cursor}/license +0 -1
  169. package/dist/server/node_modules/cli-cursor/package.json +49 -0
  170. package/dist/server/node_modules/cli-cursor/readme.md +51 -0
  171. package/dist/server/node_modules/environment/index.d.ts +74 -0
  172. package/dist/server/node_modules/environment/index.js +47 -0
  173. package/dist/server/node_modules/environment/license +9 -0
  174. package/dist/server/node_modules/environment/package.json +74 -0
  175. package/dist/server/node_modules/environment/readme.md +94 -0
  176. package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
  177. package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
  178. package/dist/server/node_modules/escape-string-regexp/license +9 -0
  179. package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
  180. package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
  181. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  182. package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
  183. package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
  184. package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
  185. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
  186. package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
  187. package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
  188. package/dist/server/node_modules/is-unicode-supported/license +9 -0
  189. package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
  190. package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
  191. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  192. package/dist/server/node_modules/postgres-array/index.js +97 -0
  193. package/dist/server/node_modules/postgres-array/license +21 -0
  194. package/dist/server/node_modules/postgres-array/package.json +35 -0
  195. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  196. package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
  197. package/dist/server/node_modules/restore-cursor/index.js +11 -0
  198. package/dist/server/node_modules/restore-cursor/license +9 -0
  199. package/dist/server/node_modules/restore-cursor/package.json +55 -0
  200. package/dist/server/node_modules/restore-cursor/readme.md +31 -0
  201. package/dist/server/node_modules/string-width/index.d.ts +39 -0
  202. package/dist/server/node_modules/string-width/index.js +82 -0
  203. package/dist/server/node_modules/string-width/license +9 -0
  204. package/dist/server/node_modules/string-width/package.json +64 -0
  205. package/dist/server/node_modules/string-width/readme.md +66 -0
  206. package/dist/server/server.js +2 -2
  207. package/package.json +1 -1
  208. package/dist/client/assets/ai-providers-BQ-gkNg2.js +0 -1
  209. package/dist/client/assets/index-GRM2kqyY.js +0 -1
  210. package/dist/client/assets/registry-B-92BzsA.js +0 -2
  211. package/dist/client/assets/store-registry-CumcxK5h.js +0 -2
  212. package/dist/client/assets/useInfiniteQuery-BIyHVMaV.js +0 -1
  213. package/dist/client/assets/useSuspenseInfiniteQuery-CxgNWHmG.js +0 -1
  214. package/dist/client/assets/workflow-detail-BBy3s-Vk.js +0 -1
  215. package/dist/server/node_modules/ink/build/ansi-tokenizer.d.ts +0 -38
  216. package/dist/server/node_modules/ink/build/ansi-tokenizer.js +0 -316
  217. package/dist/server/node_modules/ink/build/ansi-tokenizer.js.map +0 -1
  218. package/dist/server/node_modules/ink/build/apply-styles.js +0 -175
  219. package/dist/server/node_modules/ink/build/build-layout.js +0 -77
  220. package/dist/server/node_modules/ink/build/calculate-wrapped-text.js +0 -53
  221. package/dist/server/node_modules/ink/build/colorize.d.ts +0 -3
  222. package/dist/server/node_modules/ink/build/colorize.js +0 -48
  223. package/dist/server/node_modules/ink/build/colorize.js.map +0 -1
  224. package/dist/server/node_modules/ink/build/components/AccessibilityContext.d.ts +0 -3
  225. package/dist/server/node_modules/ink/build/components/AccessibilityContext.js +0 -5
  226. package/dist/server/node_modules/ink/build/components/AccessibilityContext.js.map +0 -1
  227. package/dist/server/node_modules/ink/build/components/App.d.ts +0 -18
  228. package/dist/server/node_modules/ink/build/components/App.js +0 -351
  229. package/dist/server/node_modules/ink/build/components/App.js.map +0 -1
  230. package/dist/server/node_modules/ink/build/components/AppContext.d.ts +0 -15
  231. package/dist/server/node_modules/ink/build/components/AppContext.js +0 -11
  232. package/dist/server/node_modules/ink/build/components/AppContext.js.map +0 -1
  233. package/dist/server/node_modules/ink/build/components/BackgroundContext.d.ts +0 -4
  234. package/dist/server/node_modules/ink/build/components/BackgroundContext.js +0 -3
  235. package/dist/server/node_modules/ink/build/components/BackgroundContext.js.map +0 -1
  236. package/dist/server/node_modules/ink/build/components/Box.d.ts +0 -117
  237. package/dist/server/node_modules/ink/build/components/Box.js +0 -34
  238. package/dist/server/node_modules/ink/build/components/Box.js.map +0 -1
  239. package/dist/server/node_modules/ink/build/components/Color.js +0 -62
  240. package/dist/server/node_modules/ink/build/components/Cursor.d.ts +0 -83
  241. package/dist/server/node_modules/ink/build/components/Cursor.js +0 -53
  242. package/dist/server/node_modules/ink/build/components/Cursor.js.map +0 -1
  243. package/dist/server/node_modules/ink/build/components/CursorContext.d.ts +0 -11
  244. package/dist/server/node_modules/ink/build/components/CursorContext.js +0 -8
  245. package/dist/server/node_modules/ink/build/components/CursorContext.js.map +0 -1
  246. package/dist/server/node_modules/ink/build/components/ErrorBoundary.d.ts +0 -18
  247. package/dist/server/node_modules/ink/build/components/ErrorBoundary.js +0 -23
  248. package/dist/server/node_modules/ink/build/components/ErrorBoundary.js.map +0 -1
  249. package/dist/server/node_modules/ink/build/components/ErrorOverview.d.ts +0 -6
  250. package/dist/server/node_modules/ink/build/components/ErrorOverview.js +0 -84
  251. package/dist/server/node_modules/ink/build/components/ErrorOverview.js.map +0 -1
  252. package/dist/server/node_modules/ink/build/components/FocusContext.d.ts +0 -16
  253. package/dist/server/node_modules/ink/build/components/FocusContext.js +0 -17
  254. package/dist/server/node_modules/ink/build/components/FocusContext.js.map +0 -1
  255. package/dist/server/node_modules/ink/build/components/Newline.d.ts +0 -13
  256. package/dist/server/node_modules/ink/build/components/Newline.js +0 -8
  257. package/dist/server/node_modules/ink/build/components/Newline.js.map +0 -1
  258. package/dist/server/node_modules/ink/build/components/Spacer.d.ts +0 -7
  259. package/dist/server/node_modules/ink/build/components/Spacer.js +0 -11
  260. package/dist/server/node_modules/ink/build/components/Spacer.js.map +0 -1
  261. package/dist/server/node_modules/ink/build/components/Static.d.ts +0 -24
  262. package/dist/server/node_modules/ink/build/components/Static.js +0 -28
  263. package/dist/server/node_modules/ink/build/components/Static.js.map +0 -1
  264. package/dist/server/node_modules/ink/build/components/StderrContext.d.ts +0 -15
  265. package/dist/server/node_modules/ink/build/components/StderrContext.js +0 -13
  266. package/dist/server/node_modules/ink/build/components/StderrContext.js.map +0 -1
  267. package/dist/server/node_modules/ink/build/components/StdinContext.d.ts +0 -22
  268. package/dist/server/node_modules/ink/build/components/StdinContext.js +0 -19
  269. package/dist/server/node_modules/ink/build/components/StdinContext.js.map +0 -1
  270. package/dist/server/node_modules/ink/build/components/StdoutContext.d.ts +0 -15
  271. package/dist/server/node_modules/ink/build/components/StdoutContext.js +0 -13
  272. package/dist/server/node_modules/ink/build/components/StdoutContext.js.map +0 -1
  273. package/dist/server/node_modules/ink/build/components/Text.d.ts +0 -55
  274. package/dist/server/node_modules/ink/build/components/Text.js +0 -50
  275. package/dist/server/node_modules/ink/build/components/Text.js.map +0 -1
  276. package/dist/server/node_modules/ink/build/components/Transform.d.ts +0 -16
  277. package/dist/server/node_modules/ink/build/components/Transform.js +0 -15
  278. package/dist/server/node_modules/ink/build/components/Transform.js.map +0 -1
  279. package/dist/server/node_modules/ink/build/cursor-helpers.d.ts +0 -38
  280. package/dist/server/node_modules/ink/build/cursor-helpers.js +0 -56
  281. package/dist/server/node_modules/ink/build/cursor-helpers.js.map +0 -1
  282. package/dist/server/node_modules/ink/build/devtools-window-polyfill.d.ts +0 -1
  283. package/dist/server/node_modules/ink/build/devtools-window-polyfill.js +0 -65
  284. package/dist/server/node_modules/ink/build/devtools-window-polyfill.js.map +0 -1
  285. package/dist/server/node_modules/ink/build/devtools.d.ts +0 -1
  286. package/dist/server/node_modules/ink/build/devtools.js +0 -11
  287. package/dist/server/node_modules/ink/build/devtools.js.map +0 -1
  288. package/dist/server/node_modules/ink/build/dom.d.ts +0 -56
  289. package/dist/server/node_modules/ink/build/dom.js +0 -124
  290. package/dist/server/node_modules/ink/build/dom.js.map +0 -1
  291. package/dist/server/node_modules/ink/build/experimental/apply-style.js +0 -140
  292. package/dist/server/node_modules/ink/build/experimental/dom.js +0 -123
  293. package/dist/server/node_modules/ink/build/experimental/output.js +0 -91
  294. package/dist/server/node_modules/ink/build/experimental/reconciler.js +0 -141
  295. package/dist/server/node_modules/ink/build/experimental/renderer.js +0 -81
  296. package/dist/server/node_modules/ink/build/get-max-width.d.ts +0 -3
  297. package/dist/server/node_modules/ink/build/get-max-width.js +0 -10
  298. package/dist/server/node_modules/ink/build/get-max-width.js.map +0 -1
  299. package/dist/server/node_modules/ink/build/hooks/use-app.d.ts +0 -5
  300. package/dist/server/node_modules/ink/build/hooks/use-app.js +0 -8
  301. package/dist/server/node_modules/ink/build/hooks/use-app.js.map +0 -1
  302. package/dist/server/node_modules/ink/build/hooks/use-cursor.d.ts +0 -12
  303. package/dist/server/node_modules/ink/build/hooks/use-cursor.js +0 -29
  304. package/dist/server/node_modules/ink/build/hooks/use-cursor.js.map +0 -1
  305. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.d.ts +0 -28
  306. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js +0 -17
  307. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js.map +0 -1
  308. package/dist/server/node_modules/ink/build/hooks/use-focus.d.ts +0 -29
  309. package/dist/server/node_modules/ink/build/hooks/use-focus.js +0 -42
  310. package/dist/server/node_modules/ink/build/hooks/use-focus.js.map +0 -1
  311. package/dist/server/node_modules/ink/build/hooks/use-input.d.ts +0 -131
  312. package/dist/server/node_modules/ink/build/hooks/use-input.js +0 -124
  313. package/dist/server/node_modules/ink/build/hooks/use-input.js.map +0 -1
  314. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.d.ts +0 -5
  315. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js +0 -11
  316. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js.map +0 -1
  317. package/dist/server/node_modules/ink/build/hooks/use-stderr.d.ts +0 -5
  318. package/dist/server/node_modules/ink/build/hooks/use-stderr.js +0 -8
  319. package/dist/server/node_modules/ink/build/hooks/use-stderr.js.map +0 -1
  320. package/dist/server/node_modules/ink/build/hooks/use-stdin.d.ts +0 -5
  321. package/dist/server/node_modules/ink/build/hooks/use-stdin.js +0 -8
  322. package/dist/server/node_modules/ink/build/hooks/use-stdin.js.map +0 -1
  323. package/dist/server/node_modules/ink/build/hooks/use-stdout.d.ts +0 -5
  324. package/dist/server/node_modules/ink/build/hooks/use-stdout.js +0 -8
  325. package/dist/server/node_modules/ink/build/hooks/use-stdout.js.map +0 -1
  326. package/dist/server/node_modules/ink/build/hooks/useInput.js +0 -38
  327. package/dist/server/node_modules/ink/build/index.d.ts +0 -34
  328. package/dist/server/node_modules/ink/build/index.js +0 -20
  329. package/dist/server/node_modules/ink/build/index.js.map +0 -1
  330. package/dist/server/node_modules/ink/build/ink.d.ts +0 -90
  331. package/dist/server/node_modules/ink/build/ink.js +0 -637
  332. package/dist/server/node_modules/ink/build/ink.js.map +0 -1
  333. package/dist/server/node_modules/ink/build/input-parser.d.ts +0 -7
  334. package/dist/server/node_modules/ink/build/input-parser.js +0 -154
  335. package/dist/server/node_modules/ink/build/input-parser.js.map +0 -1
  336. package/dist/server/node_modules/ink/build/instance.js +0 -205
  337. package/dist/server/node_modules/ink/build/instances.d.ts +0 -3
  338. package/dist/server/node_modules/ink/build/instances.js +0 -8
  339. package/dist/server/node_modules/ink/build/instances.js.map +0 -1
  340. package/dist/server/node_modules/ink/build/kitty-keyboard.d.ts +0 -23
  341. package/dist/server/node_modules/ink/build/kitty-keyboard.js +0 -32
  342. package/dist/server/node_modules/ink/build/kitty-keyboard.js.map +0 -1
  343. package/dist/server/node_modules/ink/build/layout.d.ts +0 -7
  344. package/dist/server/node_modules/ink/build/layout.js +0 -33
  345. package/dist/server/node_modules/ink/build/layout.js.map +0 -1
  346. package/dist/server/node_modules/ink/build/log-update.d.ts +0 -19
  347. package/dist/server/node_modules/ink/build/log-update.js +0 -242
  348. package/dist/server/node_modules/ink/build/log-update.js.map +0 -1
  349. package/dist/server/node_modules/ink/build/measure-element.d.ts +0 -16
  350. package/dist/server/node_modules/ink/build/measure-element.js +0 -9
  351. package/dist/server/node_modules/ink/build/measure-element.js.map +0 -1
  352. package/dist/server/node_modules/ink/build/measure-text.d.ts +0 -6
  353. package/dist/server/node_modules/ink/build/measure-text.js +0 -21
  354. package/dist/server/node_modules/ink/build/measure-text.js.map +0 -1
  355. package/dist/server/node_modules/ink/build/options.d.ts +0 -52
  356. package/dist/server/node_modules/ink/build/options.js +0 -2
  357. package/dist/server/node_modules/ink/build/options.js.map +0 -1
  358. package/dist/server/node_modules/ink/build/output.d.ts +0 -35
  359. package/dist/server/node_modules/ink/build/output.js +0 -183
  360. package/dist/server/node_modules/ink/build/output.js.map +0 -1
  361. package/dist/server/node_modules/ink/build/parse-keypress.d.ts +0 -22
  362. package/dist/server/node_modules/ink/build/parse-keypress.js +0 -493
  363. package/dist/server/node_modules/ink/build/parse-keypress.js.map +0 -1
  364. package/dist/server/node_modules/ink/build/reconciler.d.ts +0 -4
  365. package/dist/server/node_modules/ink/build/reconciler.js +0 -274
  366. package/dist/server/node_modules/ink/build/reconciler.js.map +0 -1
  367. package/dist/server/node_modules/ink/build/render-background.d.ts +0 -4
  368. package/dist/server/node_modules/ink/build/render-background.js +0 -25
  369. package/dist/server/node_modules/ink/build/render-background.js.map +0 -1
  370. package/dist/server/node_modules/ink/build/render-border.d.ts +0 -4
  371. package/dist/server/node_modules/ink/build/render-border.js +0 -73
  372. package/dist/server/node_modules/ink/build/render-border.js.map +0 -1
  373. package/dist/server/node_modules/ink/build/render-node-to-output.d.ts +0 -14
  374. package/dist/server/node_modules/ink/build/render-node-to-output.js +0 -147
  375. package/dist/server/node_modules/ink/build/render-node-to-output.js.map +0 -1
  376. package/dist/server/node_modules/ink/build/render-to-string.d.ts +0 -38
  377. package/dist/server/node_modules/ink/build/render-to-string.js +0 -115
  378. package/dist/server/node_modules/ink/build/render-to-string.js.map +0 -1
  379. package/dist/server/node_modules/ink/build/render.d.ts +0 -121
  380. package/dist/server/node_modules/ink/build/render.js +0 -55
  381. package/dist/server/node_modules/ink/build/render.js.map +0 -1
  382. package/dist/server/node_modules/ink/build/renderer.d.ts +0 -8
  383. package/dist/server/node_modules/ink/build/renderer.js +0 -55
  384. package/dist/server/node_modules/ink/build/renderer.js.map +0 -1
  385. package/dist/server/node_modules/ink/build/sanitize-ansi.d.ts +0 -2
  386. package/dist/server/node_modules/ink/build/sanitize-ansi.js +0 -27
  387. package/dist/server/node_modules/ink/build/sanitize-ansi.js.map +0 -1
  388. package/dist/server/node_modules/ink/build/screen-reader-update.d.ts +0 -13
  389. package/dist/server/node_modules/ink/build/screen-reader-update.js +0 -38
  390. package/dist/server/node_modules/ink/build/screen-reader-update.js.map +0 -1
  391. package/dist/server/node_modules/ink/build/squash-text-nodes.d.ts +0 -3
  392. package/dist/server/node_modules/ink/build/squash-text-nodes.js +0 -36
  393. package/dist/server/node_modules/ink/build/squash-text-nodes.js.map +0 -1
  394. package/dist/server/node_modules/ink/build/styles.d.ts +0 -240
  395. package/dist/server/node_modules/ink/build/styles.js +0 -232
  396. package/dist/server/node_modules/ink/build/styles.js.map +0 -1
  397. package/dist/server/node_modules/ink/build/utils.d.ts +0 -2
  398. package/dist/server/node_modules/ink/build/utils.js +0 -4
  399. package/dist/server/node_modules/ink/build/utils.js.map +0 -1
  400. package/dist/server/node_modules/ink/build/wrap-text.d.ts +0 -3
  401. package/dist/server/node_modules/ink/build/wrap-text.js +0 -31
  402. package/dist/server/node_modules/ink/build/wrap-text.js.map +0 -1
  403. package/dist/server/node_modules/ink/build/write-synchronized.d.ts +0 -4
  404. package/dist/server/node_modules/ink/build/write-synchronized.js +0 -7
  405. package/dist/server/node_modules/ink/build/write-synchronized.js.map +0 -1
  406. package/dist/server/node_modules/ink/package.json +0 -201
  407. package/dist/server/node_modules/ink/readme.md +0 -2636
  408. package/dist/server/node_modules/slice-ansi/index.d.ts +0 -19
  409. package/dist/server/node_modules/slice-ansi/index.js +0 -260
  410. package/dist/server/node_modules/slice-ansi/package.json +0 -59
  411. package/dist/server/node_modules/slice-ansi/readme.md +0 -54
  412. package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
@@ -0,0 +1,47 @@
1
+ declare const cliCursor: {
2
+ /**
3
+ Show cursor.
4
+
5
+ @param stream - Default: `process.stderr`.
6
+
7
+ @example
8
+ ```
9
+ import cliCursor from 'cli-cursor';
10
+
11
+ cliCursor.show();
12
+ ```
13
+ */
14
+ show(stream?: NodeJS.WritableStream): void;
15
+
16
+ /**
17
+ Hide cursor.
18
+
19
+ @param stream - Default: `process.stderr`.
20
+
21
+ @example
22
+ ```
23
+ import cliCursor from 'cli-cursor';
24
+
25
+ cliCursor.hide();
26
+ ```
27
+ */
28
+ hide(stream?: NodeJS.WritableStream): void;
29
+
30
+ /**
31
+ Toggle cursor visibility.
32
+
33
+ @param force - Is useful to show or hide the cursor based on a boolean.
34
+ @param stream - Default: `process.stderr`.
35
+
36
+ @example
37
+ ```
38
+ import cliCursor from 'cli-cursor';
39
+
40
+ const unicornsAreAwesome = true;
41
+ cliCursor.toggle(unicornsAreAwesome);
42
+ ```
43
+ */
44
+ toggle(force?: boolean, stream?: NodeJS.WritableStream): void;
45
+ };
46
+
47
+ export default cliCursor;
@@ -0,0 +1,39 @@
1
+ import process from 'node:process';
2
+ import restoreCursor from 'restore-cursor';
3
+
4
+ let isHidden = false;
5
+
6
+ const cliCursor = {};
7
+
8
+ cliCursor.show = (writableStream = process.stderr) => {
9
+ if (!writableStream.isTTY) {
10
+ return;
11
+ }
12
+
13
+ isHidden = false;
14
+ writableStream.write('\u001B[?25h');
15
+ };
16
+
17
+ cliCursor.hide = (writableStream = process.stderr) => {
18
+ if (!writableStream.isTTY) {
19
+ return;
20
+ }
21
+
22
+ restoreCursor();
23
+ isHidden = true;
24
+ writableStream.write('\u001B[?25l');
25
+ };
26
+
27
+ cliCursor.toggle = (force, writableStream) => {
28
+ if (force !== undefined) {
29
+ isHidden = force;
30
+ }
31
+
32
+ if (isHidden) {
33
+ cliCursor.show(writableStream);
34
+ } else {
35
+ cliCursor.hide(writableStream);
36
+ }
37
+ };
38
+
39
+ export default cliCursor;
@@ -1,6 +1,5 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Vadym Demedes <vadimdemedes@hey.com> (https://github.com/vadimdemedes)
4
3
  Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
5
4
 
6
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "cli-cursor",
3
+ "version": "4.0.0",
4
+ "description": "Toggle the CLI cursor",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/cli-cursor",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "https://sindresorhus.com"
12
+ },
13
+ "type": "module",
14
+ "exports": "./index.js",
15
+ "engines": {
16
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
17
+ },
18
+ "scripts": {
19
+ "test": "xo && ava && tsd"
20
+ },
21
+ "files": [
22
+ "index.js",
23
+ "index.d.ts"
24
+ ],
25
+ "keywords": [
26
+ "cli",
27
+ "cursor",
28
+ "ansi",
29
+ "toggle",
30
+ "display",
31
+ "show",
32
+ "hide",
33
+ "term",
34
+ "terminal",
35
+ "console",
36
+ "tty",
37
+ "shell",
38
+ "command-line"
39
+ ],
40
+ "dependencies": {
41
+ "restore-cursor": "^4.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "@types/node": "^16.7.1",
45
+ "ava": "^3.15.0",
46
+ "tsd": "^0.17.0",
47
+ "xo": "^0.44.0"
48
+ }
49
+ }
@@ -0,0 +1,51 @@
1
+ # cli-cursor
2
+
3
+ > Toggle the CLI cursor
4
+
5
+ The cursor is [gracefully restored](https://github.com/sindresorhus/restore-cursor) if the process exits.
6
+
7
+ ## Install
8
+
9
+ ```
10
+ $ npm install cli-cursor
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ import cliCursor from 'cli-cursor';
17
+
18
+ cliCursor.hide();
19
+
20
+ const unicornsAreAwesome = true;
21
+ cliCursor.toggle(unicornsAreAwesome);
22
+ ```
23
+
24
+ ## API
25
+
26
+ ### .show(stream?)
27
+
28
+ ### .hide(stream?)
29
+
30
+ ### .toggle(force?, stream?)
31
+
32
+ #### force
33
+
34
+ Useful for showing or hiding the cursor based on a boolean.
35
+
36
+ #### stream
37
+
38
+ Type: `stream.Writable`\
39
+ Default: `process.stderr`
40
+
41
+ ---
42
+
43
+ <div align="center">
44
+ <b>
45
+ <a href="https://tidelift.com/subscription/pkg/npm-cli-cursor?utm_source=npm-cli-cursor&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
46
+ </b>
47
+ <br>
48
+ <sub>
49
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
50
+ </sub>
51
+ </div>
@@ -0,0 +1,74 @@
1
+ /**
2
+ Check if the code is running in a web browser environment.
3
+ */
4
+ export const isBrowser: boolean;
5
+
6
+ /**
7
+ Check if the code is running in a [Node.js](https://nodejs.org) environment.
8
+ */
9
+ export const isNode: boolean;
10
+
11
+ /**
12
+ Check if the code is running in a [Bun](https://bun.sh) environment.
13
+ */
14
+ export const isBun: boolean;
15
+
16
+ /**
17
+ Check if the code is running in a Deno environment.
18
+ */
19
+ export const isDeno: boolean;
20
+
21
+ /**
22
+ Check if the code is running in an Electron environment.
23
+ */
24
+ export const isElectron: boolean;
25
+
26
+ /**
27
+ Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
28
+ */
29
+ export const isJsDom: boolean;
30
+
31
+ /**
32
+ Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
33
+ */
34
+ export const isWebWorker: boolean;
35
+
36
+ /**
37
+ Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
38
+ */
39
+ export const isDedicatedWorker: boolean;
40
+
41
+ /**
42
+ Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
43
+ */
44
+ export const isSharedWorker: boolean;
45
+
46
+ /**
47
+ Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
48
+ */
49
+ export const isServiceWorker: boolean;
50
+
51
+ /**
52
+ Check if the code is running on macOS.
53
+ */
54
+ export const isMacOs: boolean;
55
+
56
+ /**
57
+ Check if the code is running on Windows.
58
+ */
59
+ export const isWindows: boolean;
60
+
61
+ /**
62
+ Check if the code is running on Linux.
63
+ */
64
+ export const isLinux: boolean;
65
+
66
+ /**
67
+ Check if the code is running on iOS.
68
+ */
69
+ export const isIos: boolean;
70
+
71
+ /**
72
+ Check if the code is running on Android.
73
+ */
74
+ export const isAndroid: boolean;
@@ -0,0 +1,47 @@
1
+ /* globals WorkerGlobalScope, DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, ServiceWorkerGlobalScope */
2
+
3
+ export const isBrowser = globalThis.window?.document !== undefined;
4
+
5
+ export const isNode = globalThis.process?.versions?.node !== undefined;
6
+
7
+ export const isBun = globalThis.process?.versions?.bun !== undefined;
8
+
9
+ export const isDeno = globalThis.Deno?.version?.deno !== undefined;
10
+
11
+ export const isElectron = globalThis.process?.versions?.electron !== undefined;
12
+
13
+ export const isJsDom = globalThis.navigator?.userAgent?.includes('jsdom') === true;
14
+
15
+ export const isWebWorker = typeof WorkerGlobalScope !== 'undefined' && globalThis instanceof WorkerGlobalScope;
16
+
17
+ export const isDedicatedWorker = typeof DedicatedWorkerGlobalScope !== 'undefined' && globalThis instanceof DedicatedWorkerGlobalScope;
18
+
19
+ export const isSharedWorker = typeof SharedWorkerGlobalScope !== 'undefined' && globalThis instanceof SharedWorkerGlobalScope;
20
+
21
+ export const isServiceWorker = typeof ServiceWorkerGlobalScope !== 'undefined' && globalThis instanceof ServiceWorkerGlobalScope;
22
+
23
+ // Note: I'm intentionally not DRYing up the other variables to keep them "lazy".
24
+ const platform = globalThis.navigator?.userAgentData?.platform;
25
+
26
+ export const isMacOs = platform === 'macOS'
27
+ || globalThis.navigator?.platform === 'MacIntel' // Even on Apple silicon Macs.
28
+ || globalThis.navigator?.userAgent?.includes(' Mac ') === true
29
+ || globalThis.process?.platform === 'darwin';
30
+
31
+ export const isWindows = platform === 'Windows'
32
+ || globalThis.navigator?.platform === 'Win32'
33
+ || globalThis.process?.platform === 'win32';
34
+
35
+ export const isLinux = platform === 'Linux'
36
+ || globalThis.navigator?.platform?.startsWith('Linux') === true
37
+ || globalThis.navigator?.userAgent?.includes(' Linux ') === true
38
+ || globalThis.process?.platform === 'linux';
39
+
40
+ export const isIos = platform === 'iOS'
41
+ || (globalThis.navigator?.platform === 'MacIntel' && globalThis.navigator?.maxTouchPoints > 1)
42
+ || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
43
+
44
+ export const isAndroid = platform === 'Android'
45
+ || globalThis.navigator?.platform === 'Android'
46
+ || globalThis.navigator?.userAgent?.includes(' Android ') === true
47
+ || globalThis.process?.platform === 'android';
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "environment",
3
+ "version": "1.1.0",
4
+ "description": "Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/environment",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "https://sindresorhus.com"
12
+ },
13
+ "type": "module",
14
+ "exports": {
15
+ "types": "./index.d.ts",
16
+ "default": "./index.js"
17
+ },
18
+ "sideEffects": false,
19
+ "engines": {
20
+ "node": ">=18"
21
+ },
22
+ "scripts": {
23
+ "test": "xo && ava && tsc index.d.ts"
24
+ },
25
+ "files": [
26
+ "index.js",
27
+ "index.d.ts"
28
+ ],
29
+ "keywords": [
30
+ "runtime",
31
+ "environment",
32
+ "env",
33
+ "execution",
34
+ "engine",
35
+ "platform",
36
+ "context",
37
+ "js",
38
+ "javascript",
39
+ "is",
40
+ "check",
41
+ "checking",
42
+ "detect",
43
+ "detection",
44
+ "browser",
45
+ "node",
46
+ "bun",
47
+ "deno",
48
+ "electron",
49
+ "jsdom",
50
+ "webworker",
51
+ "worker",
52
+ "serviceworker",
53
+ "macos",
54
+ "ios",
55
+ "iphone",
56
+ "ipad",
57
+ "windows",
58
+ "linux",
59
+ "android",
60
+ "os",
61
+ "operating",
62
+ "system"
63
+ ],
64
+ "devDependencies": {
65
+ "ava": "^6.1.3",
66
+ "typescript": "^5.4.5",
67
+ "xo": "^0.58.0"
68
+ },
69
+ "xo": {
70
+ "rules": {
71
+ "n/prefer-global/process": "off"
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,94 @@
1
+ # environment
2
+
3
+ > Check which JavaScript environment your code is running in at runtime
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install environment
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import {isBrowser, isNode} from 'environment';
15
+
16
+ if (isBrowser) {
17
+ console.log('Running in a browser!');
18
+ }
19
+
20
+ if (isNode) {
21
+ console.log('Running in Node.js!');
22
+ }
23
+ ```
24
+
25
+ > [!NOTE]
26
+ > Runtime checks should be used sparingly. Prefer [conditional package exports](https://nodejs.org/api/packages.html#conditional-exports) and [imports](https://nodejs.org/api/packages.html#subpath-imports) whenever possible.
27
+
28
+ ## API
29
+
30
+ ### `isBrowser`
31
+
32
+ Check if the code is running in a web browser environment.
33
+
34
+ ### `isNode`
35
+
36
+ Check if the code is running in a [Node.js](https://nodejs.org) environment.
37
+
38
+ ### `isBun`
39
+
40
+ Check if the code is running in a [Bun](https://bun.sh) environment.
41
+
42
+ ### `isDeno`
43
+
44
+ Check if the code is running in a [Deno](https://deno.com) environment.
45
+
46
+ ### `isElectron`
47
+
48
+ Check if the code is running in an [Electron](https://www.electronjs.org) environment.
49
+
50
+ ### `isJsDom`
51
+
52
+ Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
53
+
54
+ ### `isWebWorker`
55
+
56
+ Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
57
+
58
+ ### `isDedicatedWorker`
59
+
60
+ Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
61
+
62
+ ### `isSharedWorker`
63
+
64
+ Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
65
+
66
+ ### `isServiceWorker`
67
+
68
+ Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
69
+
70
+ ### `isMacOs`
71
+
72
+ Check if the code is running on macOS.
73
+
74
+ ### `isWindows`
75
+
76
+ Check if the code is running on Windows.
77
+
78
+ ### `isLinux`
79
+
80
+ Check if the code is running on Linux.
81
+
82
+ ### `isIos`
83
+
84
+ Check if the code is running on iOS.
85
+
86
+ ### `isAndroid`
87
+
88
+ Check if the code is running on Android.
89
+
90
+ ## Related
91
+
92
+ - [is-in-ci](https://github.com/sindresorhus/is-in-ci) - Check if the process is running in a CI environment
93
+ - [is64bit](https://github.com/sindresorhus/is64bit) - Check if the operating system CPU architecture is 64-bit or 32-bit
94
+ - [is](https://github.com/sindresorhus/is) - Type check values
@@ -0,0 +1,18 @@
1
+ /**
2
+ Escape RegExp special characters.
3
+
4
+ You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
5
+
6
+ @example
7
+ ```
8
+ import escapeStringRegexp = require('escape-string-regexp');
9
+
10
+ const escapedString = escapeStringRegexp('How much $ for a 🦄?');
11
+ //=> 'How much \\$ for a 🦄\\?'
12
+
13
+ new RegExp(escapedString);
14
+ ```
15
+ */
16
+ declare const escapeStringRegexp: (string: string) => string;
17
+
18
+ export = escapeStringRegexp;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ const matchOperatorsRegex = /[|\\{}()[\]^$+*?.-]/g;
4
+
5
+ module.exports = string => {
6
+ if (typeof string !== 'string') {
7
+ throw new TypeError('Expected a string');
8
+ }
9
+
10
+ return string.replace(matchOperatorsRegex, '\\$&');
11
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "escape-string-regexp",
3
+ "version": "2.0.0",
4
+ "description": "Escape RegExp special characters",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/escape-string-regexp",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "maintainers": [
13
+ "Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
14
+ "Joshua Boy Nicolai Appelman <joshua@jbna.nl> (jbna.nl)"
15
+ ],
16
+ "engines": {
17
+ "node": ">=8"
18
+ },
19
+ "scripts": {
20
+ "test": "xo && ava && tsd"
21
+ },
22
+ "files": [
23
+ "index.js",
24
+ "index.d.ts"
25
+ ],
26
+ "keywords": [
27
+ "escape",
28
+ "regex",
29
+ "regexp",
30
+ "re",
31
+ "regular",
32
+ "expression",
33
+ "string",
34
+ "str",
35
+ "special",
36
+ "characters"
37
+ ],
38
+ "devDependencies": {
39
+ "ava": "^1.4.1",
40
+ "tsd": "^0.7.2",
41
+ "xo": "^0.24.0"
42
+ }
43
+ }
@@ -0,0 +1,29 @@
1
+ # escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp)
2
+
3
+ > Escape RegExp special characters
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install escape-string-regexp
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ const escapeStringRegexp = require('escape-string-regexp');
17
+
18
+ const escapedString = escapeStringRegexp('How much $ for a 🦄?');
19
+ //=> 'How much \\$ for a 🦄\\?'
20
+
21
+ new RegExp(escapedString);
22
+ ```
23
+
24
+ You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
25
+
26
+
27
+ ## License
28
+
29
+ MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -0,0 +1,17 @@
1
+ /**
2
+ Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms).
3
+
4
+ @param codePoint - The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
5
+
6
+ @example
7
+ ```
8
+ import isFullwidthCodePoint from 'is-fullwidth-code-point';
9
+
10
+ isFullwidthCodePoint('谢'.codePointAt(0));
11
+ //=> true
12
+
13
+ isFullwidthCodePoint('a'.codePointAt(0));
14
+ //=> false
15
+ ```
16
+ */
17
+ export default function isFullwidthCodePoint(codePoint: number): boolean;
@@ -0,0 +1,12 @@
1
+ import {
2
+ _isFullWidth as isFullWidth,
3
+ _isWide as isWide,
4
+ } from 'get-east-asian-width';
5
+
6
+ export default function isFullwidthCodePoint(codePoint) {
7
+ if (!Number.isInteger(codePoint)) {
8
+ return false;
9
+ }
10
+
11
+ return isFullWidth(codePoint) || isWide(codePoint);
12
+ }
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.