@stats-forge/github-stats-forge-core 0.0.1 → 0.1.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 (208) hide show
  1. package/README.md +0 -10
  2. package/build/api/api-result.d.ts +6 -7
  3. package/build/api/api-result.d.ts.map +1 -1
  4. package/build/api/api-result.js +4 -5
  5. package/build/api/gist.d.ts +3 -10
  6. package/build/api/gist.d.ts.map +1 -1
  7. package/build/api/gist.js +4 -11
  8. package/build/api/index.d.ts +12 -12
  9. package/build/api/params.d.ts +11 -8
  10. package/build/api/params.d.ts.map +1 -1
  11. package/build/api/params.js +16 -14
  12. package/build/api/pin.d.ts +3 -19
  13. package/build/api/pin.d.ts.map +1 -1
  14. package/build/api/pin.js +6 -22
  15. package/build/api/stats.d.ts +10 -4
  16. package/build/api/stats.d.ts.map +1 -1
  17. package/build/api/stats.js +6 -32
  18. package/build/api/top-langs.d.ts +12 -6
  19. package/build/api/top-langs.d.ts.map +1 -1
  20. package/build/api/top-langs.js +6 -26
  21. package/build/api/wakatime.d.ts +13 -5
  22. package/build/api/wakatime.d.ts.map +1 -1
  23. package/build/api/wakatime.js +4 -21
  24. package/build/calculateRank.d.ts +0 -9
  25. package/build/calculateRank.d.ts.map +1 -1
  26. package/build/calculateRank.js +12 -17
  27. package/build/cards/gist.d.ts +2 -4
  28. package/build/cards/gist.d.ts.map +1 -1
  29. package/build/cards/gist.js +27 -36
  30. package/build/cards/options.d.ts +1 -1
  31. package/build/cards/repo.d.ts +2 -4
  32. package/build/cards/repo.d.ts.map +1 -1
  33. package/build/cards/repo.js +61 -93
  34. package/build/cards/stats.d.ts +3 -8
  35. package/build/cards/stats.d.ts.map +1 -1
  36. package/build/cards/stats.js +119 -165
  37. package/build/cards/top-languages.d.ts +5 -31
  38. package/build/cards/top-languages.d.ts.map +1 -1
  39. package/build/cards/top-languages.js +176 -384
  40. package/build/cards/wakatime.d.ts +4 -6
  41. package/build/cards/wakatime.d.ts.map +1 -1
  42. package/build/cards/wakatime.js +118 -185
  43. package/build/common/Card.d.ts +14 -62
  44. package/build/common/Card.d.ts.map +1 -1
  45. package/build/common/Card.js +97 -199
  46. package/build/common/I18n.d.ts +0 -6
  47. package/build/common/I18n.d.ts.map +1 -1
  48. package/build/common/I18n.js +3 -6
  49. package/build/common/color.d.ts +4 -17
  50. package/build/common/color.d.ts.map +1 -1
  51. package/build/common/color.js +67 -49
  52. package/build/common/config.d.ts +4 -14
  53. package/build/common/config.d.ts.map +1 -1
  54. package/build/common/config.js +3 -16
  55. package/build/common/constants.d.ts +4 -2
  56. package/build/common/constants.d.ts.map +1 -1
  57. package/build/common/constants.js +3 -1
  58. package/build/common/date.d.ts +0 -2
  59. package/build/common/date.d.ts.map +1 -1
  60. package/build/common/date.js +0 -2
  61. package/build/common/emojiMap.d.ts +8 -0
  62. package/build/common/emojiMap.d.ts.map +1 -0
  63. package/build/common/emojiMap.js +10 -0
  64. package/build/common/emojiMap.json +1915 -0
  65. package/build/common/error.d.ts +1 -10
  66. package/build/common/error.d.ts.map +1 -1
  67. package/build/common/error.js +1 -10
  68. package/build/common/fmt.d.ts +3 -15
  69. package/build/common/fmt.d.ts.map +1 -1
  70. package/build/common/fmt.js +7 -35
  71. package/build/common/http.d.ts +2 -7
  72. package/build/common/http.d.ts.map +1 -1
  73. package/build/common/http.js +8 -17
  74. package/build/common/icons.d.ts +18 -20
  75. package/build/common/icons.d.ts.map +1 -1
  76. package/build/common/icons.js +103 -67
  77. package/build/common/languageColors.d.ts +0 -1
  78. package/build/common/languageColors.d.ts.map +1 -1
  79. package/build/common/languageColors.js +1 -4
  80. package/build/common/languageColors.json +18 -2
  81. package/build/common/ops.d.ts +3 -14
  82. package/build/common/ops.d.ts.map +1 -1
  83. package/build/common/ops.js +19 -30
  84. package/build/common/render.d.ts +28 -82
  85. package/build/common/render.d.ts.map +1 -1
  86. package/build/common/render.js +175 -211
  87. package/build/common/retryer.d.ts +2 -7
  88. package/build/common/retryer.d.ts.map +1 -1
  89. package/build/common/retryer.js +4 -11
  90. package/build/fetchers/gist.d.ts +2 -5
  91. package/build/fetchers/gist.d.ts.map +1 -1
  92. package/build/fetchers/gist.js +1 -5
  93. package/build/fetchers/index.d.ts +12 -12
  94. package/build/fetchers/repo.d.ts +2 -11
  95. package/build/fetchers/repo.d.ts.map +1 -1
  96. package/build/fetchers/repo.js +20 -33
  97. package/build/fetchers/stats.d.ts +2 -32
  98. package/build/fetchers/stats.d.ts.map +1 -1
  99. package/build/fetchers/stats.js +27 -86
  100. package/build/fetchers/top-languages.d.ts +2 -9
  101. package/build/fetchers/top-languages.d.ts.map +1 -1
  102. package/build/fetchers/top-languages.js +15 -31
  103. package/build/fetchers/types.d.ts +1 -1
  104. package/build/fetchers/wakatime.d.ts +2 -6
  105. package/build/fetchers/wakatime.d.ts.map +1 -1
  106. package/build/fetchers/wakatime.js +1 -5
  107. package/build/graphql/contributionsDocument.d.ts +3 -3
  108. package/build/graphql/contributionsDocument.d.ts.map +1 -1
  109. package/build/graphql/contributionsDocument.js +0 -1
  110. package/build/graphql/generated/gist.d.ts +1 -1
  111. package/build/graphql/generated/repo.d.ts +1 -1
  112. package/build/graphql/generated/stats.d.ts +3 -3
  113. package/build/graphql/generated/top-languages.d.ts +2 -2
  114. package/build/graphql/graphqlDocument.d.ts +0 -1
  115. package/build/graphql/graphqlDocument.d.ts.map +1 -1
  116. package/build/graphql/graphqlDocument.js +0 -1
  117. package/build/graphql/reposContributedToDocument.d.ts +4 -5
  118. package/build/graphql/reposContributedToDocument.d.ts.map +1 -1
  119. package/build/graphql/reposContributedToDocument.js +0 -2
  120. package/build/markup/css.d.ts +35 -0
  121. package/build/markup/css.d.ts.map +1 -0
  122. package/build/markup/css.js +64 -0
  123. package/build/markup/element.d.ts +41 -0
  124. package/build/markup/element.d.ts.map +1 -0
  125. package/build/markup/element.js +127 -0
  126. package/build/markup/html.d.ts +13 -0
  127. package/build/markup/html.d.ts.map +1 -0
  128. package/build/markup/html.js +27 -0
  129. package/build/markup/index.d.ts +9 -0
  130. package/build/markup/index.d.ts.map +1 -0
  131. package/build/markup/index.js +6 -0
  132. package/build/markup/serialize.d.ts +16 -0
  133. package/build/markup/serialize.d.ts.map +1 -0
  134. package/build/markup/serialize.js +17 -0
  135. package/build/themes/index.d.ts +332 -333
  136. package/build/themes/index.d.ts.map +1 -1
  137. package/build/themes/index.js +1 -1
  138. package/build/translations.d.ts +2 -6
  139. package/build/translations.d.ts.map +1 -1
  140. package/build/translations.js +621 -628
  141. package/package.json +17 -26
  142. package/src/api/api-result.ts +10 -9
  143. package/src/api/gist.ts +11 -18
  144. package/src/api/index.ts +12 -12
  145. package/src/api/params.ts +27 -21
  146. package/src/api/pin.ts +13 -28
  147. package/src/api/stats.ts +13 -39
  148. package/src/api/top-langs.ts +13 -33
  149. package/src/api/wakatime.ts +11 -28
  150. package/src/calculateRank.ts +12 -23
  151. package/src/cards/gist.ts +40 -43
  152. package/src/cards/options.ts +1 -1
  153. package/src/cards/repo.ts +97 -107
  154. package/src/cards/stats.ts +165 -184
  155. package/src/cards/top-languages.ts +297 -413
  156. package/src/cards/wakatime.ts +193 -221
  157. package/src/common/Card.ts +165 -217
  158. package/src/common/I18n.ts +3 -6
  159. package/src/common/color.ts +80 -57
  160. package/src/common/config.ts +5 -18
  161. package/src/common/constants.ts +5 -2
  162. package/src/common/date.ts +0 -2
  163. package/src/common/emojiMap.json +1915 -0
  164. package/src/common/emojiMap.ts +13 -0
  165. package/src/common/error.ts +2 -11
  166. package/src/common/fmt.ts +7 -44
  167. package/src/common/http.ts +9 -15
  168. package/src/common/icons.ts +117 -42
  169. package/src/common/languageColors.json +18 -2
  170. package/src/common/languageColors.ts +1 -4
  171. package/src/common/ops.ts +26 -34
  172. package/src/common/render.ts +279 -232
  173. package/src/common/retryer.ts +8 -15
  174. package/src/fetchers/gist.ts +8 -12
  175. package/src/fetchers/index.ts +12 -12
  176. package/src/fetchers/repo.ts +27 -40
  177. package/src/fetchers/stats.ts +44 -102
  178. package/src/fetchers/top-languages.ts +26 -40
  179. package/src/fetchers/types.ts +1 -1
  180. package/src/fetchers/wakatime.ts +5 -9
  181. package/src/graphql/contributionsDocument.ts +7 -5
  182. package/src/graphql/generated/gist.ts +1 -1
  183. package/src/graphql/generated/repo.ts +1 -1
  184. package/src/graphql/generated/stats.ts +2 -2
  185. package/src/graphql/generated/top-languages.ts +2 -2
  186. package/src/graphql/graphqlDocument.ts +0 -1
  187. package/src/graphql/reposContributedToDocument.ts +6 -7
  188. package/src/markup/css.ts +118 -0
  189. package/src/markup/element.ts +246 -0
  190. package/src/markup/html.ts +34 -0
  191. package/src/markup/index.ts +9 -0
  192. package/src/markup/serialize.ts +27 -0
  193. package/src/themes/index.ts +1 -1
  194. package/src/translations.ts +622 -629
  195. package/build/cards/index.d.ts +0 -11
  196. package/build/cards/index.d.ts.map +0 -1
  197. package/build/cards/index.js +0 -7
  198. package/build/common/html.d.ts +0 -8
  199. package/build/common/html.d.ts.map +0 -1
  200. package/build/common/html.js +0 -14
  201. package/build/index.d.ts +0 -15
  202. package/build/index.d.ts.map +0 -1
  203. package/build/index.js +0 -10
  204. package/src/_emoji-name-map.d.ts +0 -10
  205. package/src/_github-username-regex.d.ts +0 -4
  206. package/src/cards/index.ts +0 -21
  207. package/src/common/html.ts +0 -17
  208. package/src/index.ts +0 -18
@@ -20,6 +20,7 @@
20
20
  "Adobe Font Metrics": "#fa0f00",
21
21
  "Agda": "#315665",
22
22
  "Aiken": "#640ff8",
23
+ "Aleo": "#154BF9",
23
24
  "Alloy": "#64C800",
24
25
  "Alpine Abuild": "#0D597F",
25
26
  "Altium Designer": "#A89663",
@@ -42,10 +43,13 @@
42
43
  "AutoIt": "#1C3552",
43
44
  "Avro IDL": "#0040FF",
44
45
  "Awk": "#c30e9b",
46
+ "B": "#da7666",
45
47
  "B (Formal Method)": "#8aa8c5",
46
48
  "B4X": "#00e4ff",
47
49
  "BAML": "#a855f7",
48
50
  "BASIC": "#ff0000",
51
+ "BBCode": "#CAFF42",
52
+ "BIRD2": "#b6d7e4",
49
53
  "BQN": "#2b7067",
50
54
  "Ballerina": "#FF5000",
51
55
  "Batchfile": "#C1F12E",
@@ -167,6 +171,7 @@
167
171
  "FIGlet Font": "#FFDDBB",
168
172
  "FIRRTL": "#2f632f",
169
173
  "FLUX": "#88ccff",
174
+ "FPP": "#d37327",
170
175
  "Factor": "#636746",
171
176
  "Fancy": "#7b9db4",
172
177
  "Fantom": "#14253c",
@@ -263,6 +268,7 @@
263
268
  "ISPC": "#2D68B1",
264
269
  "Idris": "#b30000",
265
270
  "Ignore List": "#000000",
271
+ "ImHex Pattern Language": "#3a6be0",
266
272
  "ImageJ Macro": "#99AAFF",
267
273
  "Imba": "#16cec6",
268
274
  "Inno Setup": "#264b99",
@@ -272,6 +278,7 @@
272
278
  "Isabelle ROOT": "#FEFE00",
273
279
  "J": "#9EEDFF",
274
280
  "JAR Manifest": "#b07219",
281
+ "JASS": "#FF0303",
275
282
  "JCL": "#d90e09",
276
283
  "JFlex": "#DBCA00",
277
284
  "JSON": "#292929",
@@ -335,6 +342,7 @@
335
342
  "Literate Haskell": "#5e5086",
336
343
  "LiveCode Script": "#0c5ba5",
337
344
  "LiveScript": "#499886",
345
+ "Lobster": "#f95428",
338
346
  "Logtalk": "#295b9a",
339
347
  "LookML": "#652B81",
340
348
  "Lua": "#000080",
@@ -360,6 +368,7 @@
360
368
  "Mermaid": "#ff3670",
361
369
  "Meson": "#007800",
362
370
  "Metal": "#8f14e9",
371
+ "MiniScript": "#4B4A56",
363
372
  "MiniYAML": "#ff1111",
364
373
  "MiniZinc": "#06a9e6",
365
374
  "Mint": "#02b046",
@@ -474,6 +483,7 @@
474
483
  "Qt Script": "#00b841",
475
484
  "Quake": "#882233",
476
485
  "QuakeC": "#975777",
486
+ "Quartus Simulation IP": "#58C42E",
477
487
  "QuickBASIC": "#008080",
478
488
  "Quint": "#9d6ce5",
479
489
  "R": "#198CE7",
@@ -501,6 +511,7 @@
501
511
  "Regular Expression": "#009a00",
502
512
  "Ren'Py": "#ff7f7f",
503
513
  "Rez": "#FFDAB3",
514
+ "Rhai": "#FBA63B",
504
515
  "Ring": "#2D54CB",
505
516
  "Riot": "#A71E49",
506
517
  "RobotFramework": "#00c0b5",
@@ -514,6 +525,7 @@
514
525
  "Rust": "#dea584",
515
526
  "SAS": "#B34936",
516
527
  "SCSS": "#c6538c",
528
+ "SIP": "#4E8D83",
517
529
  "SPARQL": "#0C4597",
518
530
  "SQF": "#3F3F3F",
519
531
  "SQL": "#e38c00",
@@ -522,7 +534,7 @@
522
534
  "STL": "#373b5e",
523
535
  "SVG": "#ff9900",
524
536
  "Sail": "#259dd5",
525
- "SaltStack": "#646464",
537
+ "Salt": "#57bcad",
526
538
  "Sass": "#a53b70",
527
539
  "Scala": "#c22d40",
528
540
  "Scaml": "#bd181a",
@@ -587,6 +599,7 @@
587
599
  "Textile": "#ffe7ac",
588
600
  "Thrift": "#D12127",
589
601
  "Toit": "#c2c9fb",
602
+ "Tolk": "#30A1F5",
590
603
  "Tor Config": "#59316b",
591
604
  "Tree-sitter Query": "#8ea64c",
592
605
  "Turing": "#cf142b",
@@ -610,9 +623,11 @@
610
623
  "Velocity Template Language": "#507cff",
611
624
  "Vento": "#ff0080",
612
625
  "Verilog": "#b2b7f8",
626
+ "Verse": "#518ef8",
627
+ "Vespa Schema Definition": "#61D790",
613
628
  "Vim Help File": "#199f4b",
614
- "Vim Script": "#199f4b",
615
629
  "Vim Snippet": "#199f4b",
630
+ "Vim script": "#199f4b",
616
631
  "Visual Basic .NET": "#945db7",
617
632
  "Visual Basic 6.0": "#2c6353",
618
633
  "Volt": "#1F1F1F",
@@ -672,6 +687,7 @@
672
687
  "reStructuredText": "#141414",
673
688
  "sed": "#64b970",
674
689
  "templ": "#66D0DD",
690
+ "ucode": "#00b8d4",
675
691
  "vCard": "#ee2647",
676
692
  "wisp": "#7582D1",
677
693
  "xBase": "#403a40"
@@ -1,57 +1,46 @@
1
- import type { RepositoryAffiliation } from '../graphql/generated/common.js';
1
+ import type { RepositoryAffiliation } from '../graphql/generated/common.ts';
2
2
  /**
3
3
  * Returns boolean if value is either "true" or "false" else the value as it is.
4
4
  *
5
- * @param value The value to parse; `undefined` when the param was not sent.
6
5
  * @returns The parsed value.
7
6
  */
8
7
  declare const parseBoolean: (value: string | boolean | undefined) => boolean | undefined;
9
8
  /**
10
9
  * Parse string to array of strings.
11
10
  *
12
- * @param str The string to parse; `undefined` when the param was not sent.
13
11
  * @returns The array of strings.
14
12
  */
15
13
  declare const parseArray: (str: string | undefined) => Array<string>;
16
14
  /**
17
15
  * Clamp the given number between the given range.
18
16
  *
19
- * @param number The number to clamp.
20
- * @param min The minimum value.
21
- * @param max The maximum value.
22
17
  * @returns The clamped number.
23
18
  */
24
19
  declare const clampValue: (number: string | number, min: number, max: number) => number;
25
20
  /**
26
21
  * Lowercase and trim string.
27
22
  *
28
- * @param name String to lowercase and trim.
29
23
  * @returns Lowercased and trimmed string.
30
24
  */
31
25
  declare const lowercaseTrim: (name: string) => string;
32
26
  /**
33
27
  * Split array of languages in two columns.
34
28
  *
35
- * @template T Language object.
36
- * @param arr Array of languages.
37
- * @param perChunk Number of languages per column.
38
29
  * @returns Array of languages split in two columns.
39
30
  */
40
31
  declare const chunkArray: <T>(arr: Array<T>, perChunk: number) => Array<Array<T>>;
41
32
  /**
42
33
  * Parse emoji from string.
43
34
  *
44
- * @param str String to parse emoji from.
45
35
  * @returns String with emoji parsed.
46
36
  */
47
37
  declare const parseEmojis: (str: string) => string;
48
38
  /**
49
39
  * Parse owner affiliations.
50
40
  *
51
- * @param affiliations input affiliations to be parsed.
52
- * @returns Parsed affiliations.
53
- *
54
41
  * @throws {CardError} If affiliations contains invalid values.
42
+ *
43
+ * @returns Parsed affiliations.
55
44
  */
56
45
  declare const parseOwnerAffiliations: (affiliations: Array<string>) => Array<RepositoryAffiliation>;
57
46
  declare const buildSearchFilter: (repos?: Array<string> | string, owners?: Array<string> | string) => string;
@@ -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../src/common/ops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAM5E;;;;GAIG;AACH,QAAA,MAAM,YAAY,UAAW,MAAM,GAAG,OAAO,GAAG,SAAS,KAAG,OAAO,GAAG,SAcrE,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,UAAU,QAAS,MAAM,GAAG,SAAS,KAAG,KAAK,CAAC,MAAM,CAKzD,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,UAAU,WAAY,MAAM,GAAG,MAAM,OAAO,MAAM,OAAO,MAAM,KAAG,MAKvE,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,aAAa,SAAU,MAAM,KAAG,MAAmC,CAAC;AAE1E;;;;GAIG;AACH,QAAA,MAAM,UAAU,GAAI,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,YAAY,MAAM,KAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAStE,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,WAAW,QAAS,MAAM,KAAG,MASlC,CAAC;AAKF;;;;;;GAMG;AACH,QAAA,MAAM,sBAAsB,iBAAkB,KAAK,CAAC,MAAM,CAAC,KAAG,KAAK,CAAC,qBAAqB,CAYxF,CAAC;AAEF,QAAA,MAAM,iBAAiB,WACd,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,WACrB,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,KAC7B,MAQF,CAAC;AAEF,OAAO,EACL,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,iBAAiB,GAClB,CAAC"}
@@ -1,10 +1,9 @@
1
- import toEmoji from 'emoji-name-map';
2
1
  import { OWNER_AFFILIATIONS } from './constants.js';
2
+ import { getEmoji } from './emojiMap.js';
3
3
  import { CardError, INVALID_AFFILIATION } from './error.js';
4
4
  /**
5
5
  * Returns boolean if value is either "true" or "false" else the value as it is.
6
6
  *
7
- * @param value The value to parse; `undefined` when the param was not sent.
8
7
  * @returns The parsed value.
9
8
  */
10
9
  const parseBoolean = (value) => {
@@ -15,7 +14,7 @@ const parseBoolean = (value) => {
15
14
  if (value.toLowerCase() === 'true') {
16
15
  return true;
17
16
  }
18
- else if (value.toLowerCase() === 'false') {
17
+ if (value.toLowerCase() === 'false') {
19
18
  return false;
20
19
  }
21
20
  }
@@ -24,7 +23,6 @@ const parseBoolean = (value) => {
24
23
  /**
25
24
  * Parse string to array of strings.
26
25
  *
27
- * @param str The string to parse; `undefined` when the param was not sent.
28
26
  * @returns The array of strings.
29
27
  */
30
28
  const parseArray = (str) => {
@@ -36,13 +34,10 @@ const parseArray = (str) => {
36
34
  /**
37
35
  * Clamp the given number between the given range.
38
36
  *
39
- * @param number The number to clamp.
40
- * @param min The minimum value.
41
- * @param max The maximum value.
42
37
  * @returns The clamped number.
43
38
  */
44
39
  const clampValue = (number, min, max) => {
45
- if (Number.isNaN(parseInt(String(number), 10))) {
40
+ if (Number.isNaN(Number.parseInt(String(number), 10))) {
46
41
  return min;
47
42
  }
48
43
  return Math.max(min, Math.min(Number(number), max));
@@ -50,66 +45,60 @@ const clampValue = (number, min, max) => {
50
45
  /**
51
46
  * Lowercase and trim string.
52
47
  *
53
- * @param name String to lowercase and trim.
54
48
  * @returns Lowercased and trimmed string.
55
49
  */
56
50
  const lowercaseTrim = (name) => name.toLowerCase().trim();
57
51
  /**
58
52
  * Split array of languages in two columns.
59
53
  *
60
- * @template T Language object.
61
- * @param arr Array of languages.
62
- * @param perChunk Number of languages per column.
63
54
  * @returns Array of languages split in two columns.
64
55
  */
65
56
  const chunkArray = (arr, perChunk) => {
66
- return arr.reduce((resultArray, item, index) => {
57
+ const chunks = [];
58
+ for (const [index, item] of arr.entries()) {
67
59
  const chunkIndex = Math.floor(index / perChunk);
68
- const chunk = resultArray[chunkIndex] ?? [];
60
+ const chunk = chunks[chunkIndex] ?? [];
69
61
  chunk.push(item);
70
- resultArray[chunkIndex] = chunk;
71
- return resultArray;
72
- }, []);
62
+ chunks[chunkIndex] = chunk;
63
+ }
64
+ return chunks;
73
65
  };
74
66
  /**
75
67
  * Parse emoji from string.
76
68
  *
77
- * @param str String to parse emoji from.
78
69
  * @returns String with emoji parsed.
79
70
  */
80
71
  const parseEmojis = (str) => {
81
72
  if (!str) {
82
73
  throw new Error('[parseEmoji]: str argument not provided');
83
74
  }
84
- return str.replace(/:\w+:/gm, (emoji) => {
85
- return toEmoji.get(emoji) || '';
86
- });
75
+ // `+` and `-` are part of a shortcode: `:+1:`, `:non-potable_water:`.
76
+ return str.replaceAll(/:(?<shortcode>[\w+-]+):/g, (_match, shortcode) => getEmoji(shortcode) ?? '');
87
77
  };
88
78
  const isOwnerAffiliation = (value) => OWNER_AFFILIATIONS.some((affiliation) => affiliation === value);
89
79
  /**
90
80
  * Parse owner affiliations.
91
81
  *
92
- * @param affiliations input affiliations to be parsed.
93
- * @returns Parsed affiliations.
94
- *
95
82
  * @throws {CardError} If affiliations contains invalid values.
83
+ *
84
+ * @returns Parsed affiliations.
96
85
  */
97
86
  const parseOwnerAffiliations = (affiliations) => {
98
- // Set default value for ownerAffiliations.
99
- // NOTE: Done here since parseArray() will always return an empty array even nothing
100
- //was specified.
87
+ // `parseArray` returns an empty array for an absent param, so the default lands here.
101
88
  const normalized = affiliations.length > 0
102
89
  ? affiliations.map((affiliation) => affiliation.toUpperCase())
103
90
  : ['OWNER'];
104
91
  // Check if ownerAffiliations contains valid values.
105
- if (!normalized.every(isOwnerAffiliation)) {
92
+ if (!normalized.every((value) => isOwnerAffiliation(value))) {
106
93
  throw CardError.invalidParam('role', INVALID_AFFILIATION);
107
94
  }
108
95
  return normalized;
109
96
  };
110
97
  const buildSearchFilter = (repos = [], owners = []) => {
111
- const repoFilter = Array.isArray(repos) && repos.length > 0 ? repos.map((r) => `repo:${r} `).join('') : '';
112
- const orgFilter = Array.isArray(owners) && owners.length > 0 ? owners.map((o) => `owner:${o} `).join('') : '';
98
+ const repoFilter = Array.isArray(repos) && repos.length > 0 ? repos.map((repo) => `repo:${repo} `).join('') : '';
99
+ const orgFilter = Array.isArray(owners) && owners.length > 0
100
+ ? owners.map((owner) => `owner:${owner} `).join('')
101
+ : '';
113
102
  return repoFilter + orgFilter;
114
103
  };
115
104
  export { parseBoolean, parseArray, clampValue, lowercaseTrim, chunkArray, parseEmojis, parseOwnerAffiliations, buildSearchFilter, };
@@ -1,65 +1,41 @@
1
+ import type { Child, Declarations, MarkupElement } from '../markup/index.ts';
1
2
  /**
2
3
  * Auto layout utility, allows us to layout things vertically or horizontally with
3
4
  * proper gaping.
4
5
  *
5
- * The caller must ensure that the passed `items` are properly sanitized!
6
- *
7
- * @param props Function properties.
8
- * @param props.items Array of sanitized items to layout.
9
- * @param props.gap Gap between items.
10
- * @param props.direction Direction to layout items.
11
- * @param props.sizes Array of sizes for each item.
12
- * @returns Array of items with proper layout.
6
+ * @returns The items, each in the group that positions it.
13
7
  */
14
8
  declare const flexLayout: ({ items, gap, direction, sizes, }: {
15
- items: Array<string>;
9
+ items: Array<Child>;
16
10
  gap: number;
17
- direction?: "column" | "row";
11
+ direction?: 'column' | 'row';
18
12
  sizes?: Array<number>;
19
- }) => Array<string>;
13
+ }) => Array<Child>;
20
14
  /**
21
15
  * Creates a node to display the primary programming language of the repository/gist.
22
16
  *
23
- * @param langName Language name.
24
- * @param langColor Language color.
25
17
  * @returns Language display SVG object.
26
18
  */
27
- declare const createLanguageNode: (langName: string, langColor: string) => string;
19
+ declare const createLanguageNode: (langName: string, langColor: string) => MarkupElement;
28
20
  /**
29
21
  * Create a node to indicate progress in percentage along a horizontal line.
30
22
  *
31
- * @param params Object that contains the createProgressNode parameters.
32
- * @param params.x X-axis position.
33
- * @param params.y Y-axis position.
34
- * @param params.width Width of progress bar.
35
- * @param params.color Optional foreground color as an inline fill fallback.
36
- * When omitted, the color must be set via a `.lang-progress` CSS rule.
37
- * @param params.progress Progress value.
38
- * @param params.delay Delay before animation starts.
39
23
  * @returns Progress node.
40
24
  */
41
25
  declare const createProgressNode: ({ x, y, width, color, progress, delay, }: {
42
26
  x: number;
43
27
  y: number;
44
28
  width: number;
29
+ /** When omitted, the color must be set via a `.lang-progress` CSS rule. */
45
30
  color?: string;
46
31
  progress: number;
47
32
  delay: number;
48
- }) => string;
33
+ }) => MarkupElement;
49
34
  /**
50
35
  * Renders multi-line text via a `foreignObject` so the browser performs
51
36
  * native, font-aware wrapping. Content overflowing `lineCount` lines is
52
37
  * clipped (with an ellipsis on the last visible line) by CSS line-clamp.
53
38
  *
54
- * @param props Function properties.
55
- * @param props.text Text to render (will be HTML-encoded).
56
- * @param props.x X position of the foreignObject.
57
- * @param props.y Y position of the foreignObject.
58
- * @param props.width Width of the wrap box.
59
- * @param props.height Height of the wrap box.
60
- * @param props.lineCount Maximum number of lines to display.
61
- * @param props.className CSS class applied to the inner element.
62
- * @param props.testId Optional test id for the inner element.
63
39
  * @returns foreignObject SVG node.
64
40
  */
65
41
  declare const wrappedTextNode: ({ text, x, y, width, height, lineCount, className, testId, }: {
@@ -71,54 +47,34 @@ declare const wrappedTextNode: ({ text, x, y, width, height, lineCount, classNam
71
47
  lineCount: number;
72
48
  className: string;
73
49
  testId?: string;
74
- }) => string;
50
+ }) => MarkupElement;
75
51
  /**
76
52
  * CSS rules used to render multi-line text inside a `foreignObject`. Apply this
77
53
  * to a CSS class (e.g. `.description`) shared with `wrappedTextNode` so the
78
54
  * browser handles wrapping and the line count is taken from the `--lines`
79
55
  * custom property set on the element.
80
56
  *
81
- * @param color Text color (CSS `color` property).
82
- * @returns CSS rules block (without the surrounding selector).
57
+ * @returns The declarations, to merge into the class's own rule.
83
58
  */
84
- declare const wrappedTextStyles: (color: string) => string;
59
+ declare const wrappedTextStyles: (color: string) => Declarations;
85
60
  /**
86
61
  * Creates an icon with label to display repository/gist stats like forks, stars, etc.
62
+ * Draws nothing when the label is not positive.
87
63
  *
88
- * The caller must ensure that the passed `icon` is properly sanitized!
89
- *
90
- * @param icon The sanitized icon to display.
91
- * @param label The label to display.
92
- * @param testid The testid to assign to the label.
93
- * @param iconSize The size of the icon.
94
- * @returns Icon with label SVG object.
64
+ * @returns Icon with label SVG object, or nothing when the label is not positive.
95
65
  */
96
- declare const iconWithLabel: (icon: string, label: number | string, testid: string, iconSize: number) => string;
66
+ declare const iconWithLabel: (icon: Child, label: number | string, testid: string, iconSize: number) => Child;
97
67
  /**
98
68
  * Create a labelled stat text item
99
69
  * (a label and its value, optionally with an icon and link).
100
70
  * Shared by the stats and repo cards.
101
71
  *
102
- * The caller must ensure that the passed `icon` and `link` are properly sanitized!
72
+ * The caller must ensure that the passed `link` is properly sanitized!
103
73
  *
104
- * @param params Object that contains the createTextNode parameters.
105
- * @param params.icon The sanitized icon to display.
106
- * @param params.label The label to display.
107
- * @param params.value The value to display.
108
- * @param params.id The id of the stat.
109
- * @param params.unitSymbol The unit symbol of the stat.
110
- * @param params.index The index of the stat.
111
- * @param params.showIcons Whether to show icons.
112
- * @param params.shiftValuePos Number of pixels the value has to be shifted to the right.
113
- * @param params.bold Whether to bold the label.
114
- * @param params.numberFormat The format of numbers on card.
115
- * @param params.numberPrecision The precision of numbers on card.
116
- * @param params.link Sanitized url to link to.
117
- * @param params.labelXOffset horizontal offset for label.
118
74
  * @returns The stats card text item SVG object.
119
75
  */
120
- declare const createTextNode: ({ icon, label, value, id, unitSymbol, index, showIcons, shiftValuePos, bold, numberFormat, numberPrecision, link, labelXOffset, }: {
121
- icon: string;
76
+ declare const createTextNode: ({ icon, label, value, id, unitSymbol, index, showIcons, shiftValuePos, valueAnchorX, bold, labelBold, numberFormat, numberPrecision, link, labelXOffset, }: {
77
+ icon: Child;
122
78
  label: string;
123
79
  value: number | string;
124
80
  id: string;
@@ -126,25 +82,17 @@ declare const createTextNode: ({ icon, label, value, id, unitSymbol, index, show
126
82
  index: number;
127
83
  showIcons: boolean;
128
84
  shiftValuePos: number;
85
+ valueAnchorX?: number | undefined;
129
86
  bold: boolean;
87
+ labelBold?: boolean;
130
88
  numberFormat: string;
131
89
  numberPrecision?: number | undefined;
132
90
  link?: string | undefined;
133
91
  labelXOffset?: number;
134
- }) => string;
92
+ }) => MarkupElement;
135
93
  /**
136
94
  * Renders error message on the card.
137
95
  *
138
- * @param args Function arguments.
139
- * @param args.message Main error message.
140
- * @param args.secondaryMessage The secondary error message.
141
- * @param args.renderOptions Render options.
142
- * @param args.renderOptions.title_color Card title color.
143
- * @param args.renderOptions.text_color Card text color.
144
- * @param args.renderOptions.bg_color Card background color.
145
- * @param args.renderOptions.border_color Card border color.
146
- * @param args.renderOptions.theme Card theme.
147
- * @param args.renderOptions.show_repo_link Whether to show repo link or not.
148
96
  * @returns The SVG markup.
149
97
  */
150
98
  declare const renderError: ({ message, secondaryMessage, renderOptions, }: {
@@ -163,8 +111,7 @@ declare const renderError: ({ message, secondaryMessage, renderOptions, }: {
163
111
  * Retrieve text length based on Segoe UI font.
164
112
  *
165
113
  * @see https://stackoverflow.com/a/48172630/10629172
166
- * @param str String to measure.
167
- * @param fontSize Font size.
114
+ *
168
115
  * @returns Text length.
169
116
  */
170
117
  declare const measureText: (str: string, fontSize?: number) => number;
@@ -175,22 +122,21 @@ declare const measureText: (str: string, fontSize?: number) => number;
175
122
  * The browser still does the real wrap inside the foreignObject; this is only
176
123
  * used to size the SVG.
177
124
  *
178
- * @param text Text to split.
179
- * @param fontSize Font size in px (matches `measureText`).
180
- * @param maxWidth Available wrap width in px.
181
125
  * @returns Estimated wrapped lines.
182
126
  */
183
127
  declare const splitWrappedText: (text: string, fontSize: number, maxWidth: number) => Array<string>;
128
+ /**
129
+ * Split text over multiple lines based on the card width.
130
+ *
131
+ * @returns Array of lines.
132
+ */
133
+ declare const wrapTextMultiline: (text: string, width: number, fontSize: number, maxLines?: number) => Array<string>;
184
134
  /**
185
135
  * Estimate how many lines a string will wrap to when laid out greedily at the
186
136
  * given font size inside a box of width `maxWidth`, capped at `maxLines`.
187
137
  *
188
- * @param text Text to estimate.
189
- * @param fontSize Font size in px (matches `measureText`).
190
- * @param maxWidth Available wrap width in px.
191
- * @param maxLines Cap on the returned line count.
192
138
  * @returns Estimated line count, at least 1, at most `maxLines`.
193
139
  */
194
140
  declare const countWrappedLines: (text: string, fontSize: number, maxWidth: number, maxLines: number) => number;
195
- export { renderError, createLanguageNode, createProgressNode, createTextNode, iconWithLabel, flexLayout, measureText, splitWrappedText, countWrappedLines, wrappedTextNode, wrappedTextStyles, };
141
+ export { renderError, createLanguageNode, createProgressNode, createTextNode, iconWithLabel, flexLayout, measureText, splitWrappedText, wrapTextMultiline, countWrappedLines, wrappedTextNode, wrappedTextStyles, };
196
142
  //# sourceMappingURL=render.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/common/render.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,UAAU,GAAI,mCAKjB;IACD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACvB,KAAG,KAAK,CAAC,MAAM,CAgBf,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,KAAG,MAWjE,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,kBAAkB,GAAI,0CAOzB;IACD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,KAAG,MAiCH,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,eAAe,GAAI,8DASt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