@visulima/ansi 2.0.1 → 3.0.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 (152) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE.md +1 -132
  3. package/README.md +226 -226
  4. package/dist/alternative-screen.d.ts +6 -74
  5. package/dist/alternative-screen.js +1 -0
  6. package/dist/clear.d.ts +6 -77
  7. package/dist/clear.js +1 -0
  8. package/dist/cursor.d.ts +48 -429
  9. package/dist/cursor.js +1 -0
  10. package/dist/erase.d.ts +14 -197
  11. package/dist/erase.js +1 -0
  12. package/dist/hyperlink.d.ts +2 -26
  13. package/dist/hyperlink.js +1 -0
  14. package/dist/image.d.ts +7 -69
  15. package/dist/image.js +1 -0
  16. package/dist/index.d.ts +30 -35
  17. package/dist/index.js +1 -0
  18. package/dist/iterm2.d.ts +43 -58
  19. package/dist/iterm2.js +1 -0
  20. package/dist/mode.d.ts +174 -648
  21. package/dist/mode.js +1 -0
  22. package/dist/mouse.d.ts +21 -203
  23. package/dist/mouse.js +1 -0
  24. package/dist/packem_shared/IT2_AUTO-BYrffRAq.js +1 -0
  25. package/dist/packem_shared/ITerm2File-C88DBJC-.js +1 -0
  26. package/dist/packem_shared/constants-D12jy2Zh.js +1 -0
  27. package/dist/packem_shared/cursor-D2UOfUc_.js +1 -0
  28. package/dist/packem_shared/resetProgressBar-BtBbpWCM.js +1 -0
  29. package/dist/packem_shared/restoreCursor-D3XBmqcY.js +2 -0
  30. package/dist/passthrough.d.ts +6 -77
  31. package/dist/passthrough.js +1 -0
  32. package/dist/reset.d.ts +4 -26
  33. package/dist/reset.js +1 -0
  34. package/dist/screen.d.ts +11 -234
  35. package/dist/screen.js +1 -0
  36. package/dist/scroll.d.ts +6 -67
  37. package/dist/scroll.js +1 -0
  38. package/dist/status.d.ts +48 -498
  39. package/dist/status.js +1 -0
  40. package/dist/strip.d.ts +2 -22
  41. package/dist/strip.js +1 -0
  42. package/dist/termcap.d.ts +5 -38
  43. package/dist/termcap.js +1 -0
  44. package/dist/title.d.ts +10 -185
  45. package/dist/title.js +1 -0
  46. package/dist/window-ops.d.ts +24 -396
  47. package/dist/window-ops.js +1 -0
  48. package/dist/xterm.d.ts +12 -94
  49. package/dist/xterm.js +1 -0
  50. package/package.json +45 -230
  51. package/dist/alternative-screen.cjs +0 -17
  52. package/dist/alternative-screen.d.cts +0 -74
  53. package/dist/alternative-screen.d.mts +0 -74
  54. package/dist/alternative-screen.mjs +0 -10
  55. package/dist/clear.cjs +0 -17
  56. package/dist/clear.d.cts +0 -77
  57. package/dist/clear.d.mts +0 -77
  58. package/dist/clear.mjs +0 -10
  59. package/dist/constants.d.cts +0 -20
  60. package/dist/constants.d.mts +0 -20
  61. package/dist/constants.d.ts +0 -20
  62. package/dist/cursor.cjs +0 -41
  63. package/dist/cursor.d.cts +0 -437
  64. package/dist/cursor.d.mts +0 -437
  65. package/dist/cursor.mjs +0 -3
  66. package/dist/erase.cjs +0 -64
  67. package/dist/erase.d.cts +0 -206
  68. package/dist/erase.d.mts +0 -206
  69. package/dist/erase.mjs +0 -49
  70. package/dist/helpers.d.cts +0 -14
  71. package/dist/helpers.d.mts +0 -14
  72. package/dist/helpers.d.ts +0 -14
  73. package/dist/hyperlink.cjs +0 -9
  74. package/dist/hyperlink.d.cts +0 -27
  75. package/dist/hyperlink.d.mts +0 -27
  76. package/dist/hyperlink.mjs +0 -7
  77. package/dist/image.cjs +0 -28
  78. package/dist/image.d.cts +0 -73
  79. package/dist/image.d.mts +0 -73
  80. package/dist/image.mjs +0 -24
  81. package/dist/index.cjs +0 -246
  82. package/dist/index.d.cts +0 -35
  83. package/dist/index.d.mts +0 -35
  84. package/dist/index.mjs +0 -25
  85. package/dist/iterm2/iterm2-properties.d.cts +0 -135
  86. package/dist/iterm2/iterm2-properties.d.mts +0 -135
  87. package/dist/iterm2/iterm2-properties.d.ts +0 -135
  88. package/dist/iterm2/iterm2-sequences.d.cts +0 -96
  89. package/dist/iterm2/iterm2-sequences.d.mts +0 -96
  90. package/dist/iterm2/iterm2-sequences.d.ts +0 -96
  91. package/dist/iterm2.cjs +0 -26
  92. package/dist/iterm2.d.cts +0 -58
  93. package/dist/iterm2.d.mts +0 -58
  94. package/dist/iterm2.mjs +0 -14
  95. package/dist/mode.cjs +0 -388
  96. package/dist/mode.d.cts +0 -657
  97. package/dist/mode.d.mts +0 -657
  98. package/dist/mode.mjs +0 -235
  99. package/dist/mouse.cjs +0 -127
  100. package/dist/mouse.d.cts +0 -230
  101. package/dist/mouse.d.mts +0 -230
  102. package/dist/mouse.mjs +0 -108
  103. package/dist/packem_shared/IT2_AUTO-5vTJQMm6.cjs +0 -15
  104. package/dist/packem_shared/IT2_AUTO-DnfCUXso.mjs +0 -8
  105. package/dist/packem_shared/ITerm2File-BGPqNSjB.cjs +0 -137
  106. package/dist/packem_shared/ITerm2File-DKFkdqdA.mjs +0 -130
  107. package/dist/packem_shared/constants-BK26O-46.cjs +0 -17
  108. package/dist/packem_shared/constants-CE7WkXh_.mjs +0 -9
  109. package/dist/packem_shared/cursor-CQKLCu7U.cjs +0 -105
  110. package/dist/packem_shared/cursor-DhFQcQ9g.mjs +0 -73
  111. package/dist/packem_shared/restoreCursor-C6pNB8UY.mjs +0 -336
  112. package/dist/packem_shared/restoreCursor-DC_ZKZwT.cjs +0 -342
  113. package/dist/passthrough.cjs +0 -38
  114. package/dist/passthrough.d.cts +0 -77
  115. package/dist/passthrough.d.mts +0 -77
  116. package/dist/passthrough.mjs +0 -31
  117. package/dist/reset.cjs +0 -9
  118. package/dist/reset.d.cts +0 -26
  119. package/dist/reset.d.mts +0 -26
  120. package/dist/reset.mjs +0 -4
  121. package/dist/screen.cjs +0 -41
  122. package/dist/screen.d.cts +0 -234
  123. package/dist/screen.d.mts +0 -234
  124. package/dist/screen.mjs +0 -29
  125. package/dist/scroll.cjs +0 -27
  126. package/dist/scroll.d.cts +0 -67
  127. package/dist/scroll.d.mts +0 -67
  128. package/dist/scroll.mjs +0 -20
  129. package/dist/status.cjs +0 -147
  130. package/dist/status.d.cts +0 -501
  131. package/dist/status.d.mts +0 -501
  132. package/dist/status.mjs +0 -104
  133. package/dist/strip.cjs +0 -20
  134. package/dist/strip.d.cts +0 -23
  135. package/dist/strip.d.mts +0 -23
  136. package/dist/strip.mjs +0 -18
  137. package/dist/termcap.cjs +0 -33
  138. package/dist/termcap.d.cts +0 -38
  139. package/dist/termcap.d.mts +0 -38
  140. package/dist/termcap.mjs +0 -27
  141. package/dist/title.cjs +0 -31
  142. package/dist/title.d.cts +0 -185
  143. package/dist/title.d.mts +0 -185
  144. package/dist/title.mjs +0 -20
  145. package/dist/window-ops.cjs +0 -85
  146. package/dist/window-ops.d.cts +0 -418
  147. package/dist/window-ops.d.mts +0 -418
  148. package/dist/window-ops.mjs +0 -63
  149. package/dist/xterm.cjs +0 -48
  150. package/dist/xterm.d.cts +0 -94
  151. package/dist/xterm.d.mts +0 -94
  152. package/dist/xterm.mjs +0 -35
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ ## @visulima/ansi [3.0.0](https://github.com/visulima/visulima/compare/@visulima/ansi@2.0.1...@visulima/ansi@3.0.0) (2025-10-15)
2
+
3
+ ### ⚠ BREAKING CHANGES
4
+
5
+ * this package now is a full esm package, min version of node now is 20.19
6
+ * - Adjusted the node engine requirement to support versions 20.19 and above.
7
+ - removed common js support
8
+
9
+ ### Features
10
+
11
+ * add Prettier and ESLint configurations, enhance code structure, and introduce progress bar functionality ([397b8b6](https://github.com/visulima/visulima/commit/397b8b66ffb954ac887eca1279792ba6c7818fb9))
12
+
13
+ ### Bug Fixes
14
+
15
+ * streamline package.json and packem configuration ([ff49f16](https://github.com/visulima/visulima/commit/ff49f165fd11ea088aceb0df8fb5b0e0e6521b89))
16
+ * update @visulima/packem to 2.0.0-alpha.30 across multiple packages for improved compatibility ([27b346e](https://github.com/visulima/visulima/commit/27b346eaa1c0fb0e420d9a9824482028307f4249))
17
+
18
+ ### Miscellaneous Chores
19
+
20
+ * **deps:** update build scripts and remove cross-env dependency ([7510e82](https://github.com/visulima/visulima/commit/7510e826b9235a0013fe61c82a7eb333bc4cbb78))
21
+ * update package dependencies across multiple packages for improved compatibility and performance ([9567591](https://github.com/visulima/visulima/commit/9567591c415da3002f3a4fe08f8caf7ce01ca5f7))
22
+ * update package.json and pnpm-lock.yaml to include publint@0.3.12 and adjust build/test commands to exclude shared-utils ([1f7b3c0](https://github.com/visulima/visulima/commit/1f7b3c0381d77edfeec80ea1bf57b3469e929414))
23
+ * update type-fest dependency and adjust package configurations ([e8a1d89](https://github.com/visulima/visulima/commit/e8a1d8969f5e15f9323b1ca2a4bcff1beb8446fb))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * **@visulima/colorize:** upgraded to 1.4.24
29
+ * **@visulima/path:** upgraded to 2.0.0
30
+
1
31
  ## @visulima/ansi [2.0.1](https://github.com/visulima/visulima/compare/@visulima/ansi@2.0.0...@visulima/ansi@2.0.1) (2025-06-04)
2
32
 
3
33
  ### Miscellaneous Chores
package/LICENSE.md CHANGED
@@ -122,14 +122,11 @@ Repository: https://github.com/tapjs/signal-exit.git
122
122
  <!-- TYPE_DEPENDENCIES -->
123
123
 
124
124
  # Licenses of bundled types
125
-
126
125
  The published @visulima/ansi artifact additionally contains code with the following licenses:
127
- MIT, (MIT OR CC0-1.0)
126
+ MIT
128
127
 
129
128
  # Bundled types:
130
-
131
129
  ## restore-cursor
132
-
133
130
  License: MIT
134
131
  By: Sindre Sorhus
135
132
  Repository: sindresorhus/restore-cursor
@@ -144,132 +141,4 @@ Repository: sindresorhus/restore-cursor
144
141
  >
145
142
  > 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.
146
143
 
147
- ---
148
-
149
- ## type-fest
150
-
151
- License: (MIT OR CC0-1.0)
152
- By: Sindre Sorhus
153
- Repository: sindresorhus/type-fest
154
-
155
- > Creative Commons Legal Code
156
- >
157
- > CC0 1.0 Universal
158
- >
159
- > CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
160
- > LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
161
- > ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
162
- > INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
163
- > REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
164
- > PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
165
- > THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
166
- > HEREUNDER.
167
- >
168
- > Statement of Purpose
169
- >
170
- > The laws of most jurisdictions throughout the world automatically confer
171
- > exclusive Copyright and Related Rights (defined below) upon the creator
172
- > and subsequent owner(s) (each and all, an "owner") of an original work of
173
- > authorship and/or a database (each, a "Work").
174
- >
175
- > Certain owners wish to permanently relinquish those rights to a Work for
176
- > the purpose of contributing to a commons of creative, cultural and
177
- > scientific works ("Commons") that the public can reliably and without fear
178
- > of later claims of infringement build upon, modify, incorporate in other
179
- > works, reuse and redistribute as freely as possible in any form whatsoever
180
- > and for any purposes, including without limitation commercial purposes.
181
- > These owners may contribute to the Commons to promote the ideal of a free
182
- > culture and the further production of creative, cultural and scientific
183
- > works, or to gain reputation or greater distribution for their Work in
184
- > part through the use and efforts of others.
185
- >
186
- > For these and/or other purposes and motivations, and without any
187
- > expectation of additional consideration or compensation, the person
188
- > associating CC0 with a Work (the "Affirmer"), to the extent that he or she
189
- > is an owner of Copyright and Related Rights in the Work, voluntarily
190
- > elects to apply CC0 to the Work and publicly distribute the Work under its
191
- > terms, with knowledge of his or her Copyright and Related Rights in the
192
- > Work and the meaning and intended legal effect of CC0 on those rights.
193
- >
194
- > 1. Copyright and Related Rights. A Work made available under CC0 may be
195
- > protected by copyright and related or neighboring rights ("Copyright and
196
- > Related Rights"). Copyright and Related Rights include, but are not
197
- > limited to, the following:
198
- >
199
- > i. the right to reproduce, adapt, distribute, perform, display,
200
- > communicate, and translate a Work;
201
- > ii. moral rights retained by the original author(s) and/or performer(s);
202
- > iii. publicity and privacy rights pertaining to a person's image or
203
- > likeness depicted in a Work;
204
- > iv. rights protecting against unfair competition in regards to a Work,
205
- > subject to the limitations in paragraph 4(a), below;
206
- > v. rights protecting the extraction, dissemination, use and reuse of data
207
- > in a Work;
208
- > vi. database rights (such as those arising under Directive 96/9/EC of the
209
- > European Parliament and of the Council of 11 March 1996 on the legal
210
- > protection of databases, and under any national implementation
211
- > thereof, including any amended or successor version of such
212
- > directive); and
213
- > vii. other similar, equivalent or corresponding rights throughout the
214
- > world based on applicable law or treaty, and any national
215
- > implementations thereof.
216
- >
217
- > 2. Waiver. To the greatest extent permitted by, but not in contravention
218
- > of, applicable law, Affirmer hereby overtly, fully, permanently,
219
- > irrevocably and unconditionally waives, abandons, and surrenders all of
220
- > Affirmer's Copyright and Related Rights and associated claims and causes
221
- > of action, whether now known or unknown (including existing as well as
222
- > future claims and causes of action), in the Work (i) in all territories
223
- > worldwide, (ii) for the maximum duration provided by applicable law or
224
- > treaty (including future time extensions), (iii) in any current or future
225
- > medium and for any number of copies, and (iv) for any purpose whatsoever,
226
- > including without limitation commercial, advertising or promotional
227
- > purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
228
- > member of the public at large and to the detriment of Affirmer's heirs and
229
- > successors, fully intending that such Waiver shall not be subject to
230
- > revocation, rescission, cancellation, termination, or any other legal or
231
- > equitable action to disrupt the quiet enjoyment of the Work by the public
232
- > as contemplated by Affirmer's express Statement of Purpose.
233
- > 3. Public License Fallback. Should any part of the Waiver for any reason
234
- > be judged legally invalid or ineffective under applicable law, then the
235
- > Waiver shall be preserved to the maximum extent permitted taking into
236
- > account Affirmer's express Statement of Purpose. In addition, to the
237
- > extent the Waiver is so judged Affirmer hereby grants to each affected
238
- > person a royalty-free, non transferable, non sublicensable, non exclusive,
239
- > irrevocable and unconditional license to exercise Affirmer's Copyright and
240
- > Related Rights in the Work (i) in all territories worldwide, (ii) for the
241
- > maximum duration provided by applicable law or treaty (including future
242
- > time extensions), (iii) in any current or future medium and for any number
243
- > of copies, and (iv) for any purpose whatsoever, including without
244
- > limitation commercial, advertising or promotional purposes (the
245
- > "License"). The License shall be deemed effective as of the date CC0 was
246
- > applied by Affirmer to the Work. Should any part of the License for any
247
- > reason be judged legally invalid or ineffective under applicable law, such
248
- > partial invalidity or ineffectiveness shall not invalidate the remainder
249
- > of the License, and in such case Affirmer hereby affirms that he or she
250
- > will not (i) exercise any of his or her remaining Copyright and Related
251
- > Rights in the Work or (ii) assert any associated claims and causes of
252
- > action with respect to the Work, in either case contrary to Affirmer's
253
- > express Statement of Purpose.
254
- > 4. Limitations and Disclaimers.
255
- >
256
- > a. No trademark or patent rights held by Affirmer are waived, abandoned,
257
- > surrendered, licensed or otherwise affected by this document.
258
- > b. Affirmer offers the Work as-is and makes no representations or
259
- > warranties of any kind concerning the Work, express, implied,
260
- > statutory or otherwise, including without limitation warranties of
261
- > title, merchantability, fitness for a particular purpose, non
262
- > infringement, or the absence of latent or other defects, accuracy, or
263
- > the present or absence of errors, whether or not discoverable, all to
264
- > the greatest extent permissible under applicable law.
265
- > c. Affirmer disclaims responsibility for clearing rights of other persons
266
- > that may apply to the Work or any use thereof, including without
267
- > limitation any person's Copyright and Related Rights in the Work.
268
- > Further, Affirmer disclaims responsibility for obtaining any necessary
269
- > consents, permissions or other rights required for any use of the
270
- > Work.
271
- > d. Affirmer understands and acknowledges that Creative Commons is not a
272
- > party to this document and has no duty or obligation with respect to
273
- > this CC0 or use of the Work.
274
-
275
144
  <!-- /TYPE_DEPENDENCIES -->