@mks2508/better-logger 0.0.2-alpha.2 → 0.8.1-alpha.1

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 (231) hide show
  1. package/.github/workflows/ci-quality.yml +356 -0
  2. package/.github/workflows/docs-demo.yml +123 -0
  3. package/.github/workflows/releases-core.yml +448 -0
  4. package/.github/workflows/releases-full.yml +404 -0
  5. package/.github/{workflows → workflows-backup}/ci.yml +12 -110
  6. package/.github/workflows-backup/nightly.yml +196 -0
  7. package/.github/workflows-backup/release-optimized.yml +373 -0
  8. package/.release-notes-0.2.0.md +129 -0
  9. package/CHANGELOG.json +658 -0
  10. package/README.md +110 -512
  11. package/demo.html +9 -2
  12. package/dist/Logger.d.ts +176 -0
  13. package/dist/Logger.d.ts.map +1 -0
  14. package/dist/Logger.js +498 -0
  15. package/dist/chunks/{Logger-BrFKFZcD.js → Logger-CbCUS5pQ.js} +987 -5
  16. package/dist/chunks/Logger-CbCUS5pQ.js.map +1 -0
  17. package/dist/chunks/Logger-PCfgYKTP.js +2 -0
  18. package/dist/chunks/Logger-PCfgYKTP.js.map +1 -0
  19. package/dist/chunks/RemoteLogHandler-CjWpWZGl.js +33 -0
  20. package/dist/chunks/RemoteLogHandler-CjWpWZGl.js.map +1 -0
  21. package/dist/chunks/RemoteLogHandler-ymkQ97xl.js +2 -0
  22. package/dist/chunks/RemoteLogHandler-ymkQ97xl.js.map +1 -0
  23. package/dist/chunks/StyleBuilder-BoJTmskd.js +361 -0
  24. package/dist/chunks/StyleBuilder-BoJTmskd.js.map +1 -0
  25. package/dist/chunks/StyleBuilder-LPLzsoHY.js +4 -0
  26. package/dist/chunks/StyleBuilder-LPLzsoHY.js.map +1 -0
  27. package/dist/cli/CommandProcessor.d.ts +40 -0
  28. package/dist/cli/CommandProcessor.d.ts.map +1 -0
  29. package/dist/cli/CommandProcessor.js +57 -0
  30. package/dist/cli/commands/ConfigCommand.d.ts +17 -0
  31. package/dist/cli/commands/ConfigCommand.d.ts.map +1 -0
  32. package/dist/cli/commands/ConfigCommand.js +88 -0
  33. package/dist/cli/commands/ExportCommand.d.ts +51 -0
  34. package/dist/cli/commands/ExportCommand.d.ts.map +1 -0
  35. package/dist/cli/commands/ExportCommand.js +243 -0
  36. package/dist/cli/commands/StatusCommand.d.ts +33 -0
  37. package/dist/cli/commands/StatusCommand.d.ts.map +1 -0
  38. package/dist/cli/commands/StatusCommand.js +93 -0
  39. package/dist/cli/commands/ThemeCommand.d.ts +33 -0
  40. package/dist/cli/commands/ThemeCommand.d.ts.map +1 -0
  41. package/dist/cli/commands/ThemeCommand.js +79 -0
  42. package/dist/cli/help.d.ts +15 -0
  43. package/dist/cli/help.d.ts.map +1 -0
  44. package/dist/cli/help.js +118 -0
  45. package/dist/cli/index.d.ts +15 -0
  46. package/dist/cli/index.d.ts.map +1 -0
  47. package/dist/cli/index.js +40 -0
  48. package/dist/constants.d.ts +91 -0
  49. package/dist/constants.d.ts.map +1 -0
  50. package/dist/constants.js +80 -0
  51. package/dist/core.cjs +1 -1
  52. package/dist/core.cjs.map +1 -1
  53. package/dist/core.d.ts +130 -0
  54. package/dist/core.d.ts.map +1 -0
  55. package/dist/core.js +258 -242
  56. package/dist/core.js.map +1 -1
  57. package/dist/example.d.ts +18 -0
  58. package/dist/example.d.ts.map +1 -0
  59. package/dist/example.js +154 -0
  60. package/dist/exports-module.d.ts +203 -0
  61. package/dist/exports-module.d.ts.map +1 -0
  62. package/dist/exports-module.js +260 -0
  63. package/dist/exports.cjs +1 -1
  64. package/dist/exports.cjs.map +1 -1
  65. package/dist/exports.js +2 -2
  66. package/dist/handlers/AnalyticsLogHandler.d.ts +11 -0
  67. package/dist/handlers/AnalyticsLogHandler.d.ts.map +1 -0
  68. package/dist/handlers/AnalyticsLogHandler.js +19 -0
  69. package/dist/handlers/ExportLogHandler.d.ts +103 -0
  70. package/dist/handlers/ExportLogHandler.d.ts.map +1 -0
  71. package/dist/handlers/ExportLogHandler.js +516 -0
  72. package/dist/handlers/FileLogHandler.d.ts +13 -0
  73. package/dist/handlers/FileLogHandler.d.ts.map +1 -0
  74. package/dist/handlers/FileLogHandler.js +24 -0
  75. package/dist/handlers/RemoteLogHandler.d.ts +14 -0
  76. package/dist/handlers/RemoteLogHandler.d.ts.map +1 -0
  77. package/dist/handlers/RemoteLogHandler.js +37 -0
  78. package/dist/handlers/index.d.ts +8 -0
  79. package/dist/handlers/index.d.ts.map +1 -0
  80. package/dist/handlers/index.js +7 -0
  81. package/dist/index.cjs +1 -1
  82. package/dist/index.cjs.map +1 -1
  83. package/dist/index.d.ts +86 -0
  84. package/dist/index.d.ts.map +1 -0
  85. package/dist/index.js +89 -103
  86. package/dist/main.d.ts +2 -0
  87. package/dist/main.d.ts.map +1 -0
  88. package/dist/main.js +139 -0
  89. package/dist/styling/StyleBuilder.d.ts +132 -0
  90. package/dist/styling/StyleBuilder.d.ts.map +1 -0
  91. package/dist/styling/StyleBuilder.js +268 -0
  92. package/dist/styling/banners.d.ts +45 -0
  93. package/dist/styling/banners.d.ts.map +1 -0
  94. package/dist/styling/banners.js +155 -0
  95. package/dist/styling/index.d.ts +7 -0
  96. package/dist/styling/index.d.ts.map +1 -0
  97. package/dist/styling/index.js +6 -0
  98. package/dist/styling/themes.d.ts +10 -0
  99. package/dist/styling/themes.d.ts.map +1 -0
  100. package/dist/styling/themes.js +231 -0
  101. package/dist/styling-module.d.ts +185 -0
  102. package/dist/styling-module.d.ts.map +1 -0
  103. package/dist/styling-module.js +199 -0
  104. package/dist/styling.cjs +1 -1
  105. package/dist/styling.cjs.map +1 -1
  106. package/dist/styling.js +4 -4
  107. package/dist/types/Logger.d.ts +172 -0
  108. package/dist/types/Logger.d.ts.map +1 -0
  109. package/dist/types/cli/CommandProcessor.d.ts +37 -0
  110. package/dist/types/cli/CommandProcessor.d.ts.map +1 -0
  111. package/dist/types/cli/commands/ConfigCommand.d.ts +14 -0
  112. package/dist/types/cli/commands/ConfigCommand.d.ts.map +1 -0
  113. package/dist/types/cli/commands/ExportCommand.d.ts +48 -0
  114. package/dist/types/cli/commands/ExportCommand.d.ts.map +1 -0
  115. package/dist/types/cli/commands/StatusCommand.d.ts +30 -0
  116. package/dist/types/cli/commands/StatusCommand.d.ts.map +1 -0
  117. package/dist/types/cli/commands/ThemeCommand.d.ts +30 -0
  118. package/dist/types/cli/commands/ThemeCommand.d.ts.map +1 -0
  119. package/dist/types/cli/help.d.ts +12 -0
  120. package/dist/types/cli/help.d.ts.map +1 -0
  121. package/dist/types/cli/index.d.ts +15 -0
  122. package/dist/types/cli/index.d.ts.map +1 -0
  123. package/dist/types/constants.d.ts +88 -0
  124. package/dist/types/constants.d.ts.map +1 -0
  125. package/dist/types/core.d.ts +71 -211
  126. package/dist/types/core.d.ts.map +1 -0
  127. package/dist/types/core.js +13 -0
  128. package/dist/types/example.d.ts +18 -0
  129. package/dist/types/example.d.ts.map +1 -0
  130. package/dist/types/exports-module.d.ts +196 -0
  131. package/dist/types/exports-module.d.ts.map +1 -0
  132. package/dist/types/handlers/AnalyticsLogHandler.d.ts +8 -0
  133. package/dist/types/handlers/AnalyticsLogHandler.d.ts.map +1 -0
  134. package/dist/types/handlers/ExportLogHandler.d.ts +100 -0
  135. package/dist/types/handlers/ExportLogHandler.d.ts.map +1 -0
  136. package/dist/types/handlers/FileLogHandler.d.ts +10 -0
  137. package/dist/types/handlers/FileLogHandler.d.ts.map +1 -0
  138. package/dist/types/handlers/RemoteLogHandler.d.ts +11 -0
  139. package/dist/types/handlers/RemoteLogHandler.d.ts.map +1 -0
  140. package/dist/types/handlers/index.d.ts +8 -0
  141. package/dist/types/handlers/index.d.ts.map +1 -0
  142. package/dist/types/handlers.d.ts +88 -0
  143. package/dist/types/handlers.d.ts.map +1 -0
  144. package/dist/types/handlers.js +4 -0
  145. package/dist/types/index.d.ts +7 -675
  146. package/dist/types/index.d.ts.map +1 -0
  147. package/dist/types/index.js +4 -0
  148. package/dist/types/main.d.ts +2 -0
  149. package/dist/types/main.d.ts.map +1 -0
  150. package/dist/types/styling/StyleBuilder.d.ts +132 -0
  151. package/dist/types/styling/StyleBuilder.d.ts.map +1 -0
  152. package/dist/types/styling/banners.d.ts +42 -0
  153. package/dist/types/styling/banners.d.ts.map +1 -0
  154. package/dist/types/styling/index.d.ts +7 -0
  155. package/dist/types/styling/index.d.ts.map +1 -0
  156. package/dist/types/styling/themes.d.ts +7 -0
  157. package/dist/types/styling/themes.d.ts.map +1 -0
  158. package/dist/types/styling-module.d.ts +178 -0
  159. package/dist/types/styling-module.d.ts.map +1 -0
  160. package/dist/types/types/core.d.ts +71 -0
  161. package/dist/types/types/core.d.ts.map +1 -0
  162. package/dist/types/types/handlers.d.ts +85 -0
  163. package/dist/types/types/handlers.d.ts.map +1 -0
  164. package/dist/types/types/index.d.ts +7 -0
  165. package/dist/types/types/index.d.ts.map +1 -0
  166. package/dist/types/utils/index.d.ts +7 -0
  167. package/dist/types/utils/index.d.ts.map +1 -0
  168. package/dist/types/utils/output.d.ts +29 -0
  169. package/dist/types/utils/output.d.ts.map +1 -0
  170. package/dist/types/utils/stackTrace.d.ts +6 -0
  171. package/dist/types/utils/stackTrace.d.ts.map +1 -0
  172. package/dist/types/utils/timestamps.d.ts +20 -0
  173. package/dist/types/utils/timestamps.d.ts.map +1 -0
  174. package/dist/utils/index.d.ts +7 -0
  175. package/dist/utils/index.d.ts.map +1 -0
  176. package/dist/utils/index.js +6 -0
  177. package/dist/utils/output.d.ts +32 -0
  178. package/dist/utils/output.d.ts.map +1 -0
  179. package/dist/utils/output.js +97 -0
  180. package/dist/utils/stackTrace.d.ts +9 -0
  181. package/dist/utils/stackTrace.d.ts.map +1 -0
  182. package/dist/utils/stackTrace.js +81 -0
  183. package/dist/utils/timestamps.d.ts +20 -0
  184. package/dist/utils/timestamps.d.ts.map +1 -0
  185. package/dist/utils/timestamps.js +71 -0
  186. package/docs/API.md +607 -0
  187. package/docs/DEVELOPMENT.md +731 -0
  188. package/docs/_config.yml +36 -0
  189. package/docs/index.md +179 -0
  190. package/examples/README.md +208 -0
  191. package/examples/basic-logging.js +75 -0
  192. package/examples/data-export.js +234 -0
  193. package/examples/package.json +16 -0
  194. package/examples/performance-timing.js +170 -0
  195. package/examples/styling-themes.js +207 -0
  196. package/package.json +24 -21
  197. package/packages/core/package.json +35 -0
  198. package/packages/exports/package.json +41 -0
  199. package/packages/styling/package.json +41 -0
  200. package/project-utils/README.md +172 -0
  201. package/project-utils/auto-release-gemini.ts +1193 -0
  202. package/project-utils/commit-generator.ts +1000 -0
  203. package/project-utils/commit-ui.ts +246 -0
  204. package/project-utils/git-utils.ts +199 -0
  205. package/project-utils/github-release-manager.ts +466 -0
  206. package/project-utils/prompt-templates.js +345 -0
  207. package/project-utils/prompt-templates.ts +422 -0
  208. package/project-utils/version-manager.ts +1078 -0
  209. package/src/Logger.ts +2 -1
  210. package/src/handlers/ExportLogHandler.ts +141 -0
  211. package/vite.config.ts +152 -50
  212. package/.claude/settings.local.json +0 -22
  213. package/.npmrc.bak +0 -1
  214. package/dist/chunks/Logger-BQhMKy_T.js +0 -2
  215. package/dist/chunks/Logger-BQhMKy_T.js.map +0 -1
  216. package/dist/chunks/Logger-BrFKFZcD.js.map +0 -1
  217. package/dist/chunks/core-2opW4Pi3.js +0 -194
  218. package/dist/chunks/core-2opW4Pi3.js.map +0 -1
  219. package/dist/chunks/core-DyugwSYZ.js +0 -4
  220. package/dist/chunks/core-DyugwSYZ.js.map +0 -1
  221. package/dist/chunks/exports-BNP3R7dp.js +0 -421
  222. package/dist/chunks/exports-BNP3R7dp.js.map +0 -1
  223. package/dist/chunks/exports-U1xLBXrY.js +0 -2
  224. package/dist/chunks/exports-U1xLBXrY.js.map +0 -1
  225. package/dist/chunks/styling-DhUDzwlE.js +0 -654
  226. package/dist/chunks/styling-DhUDzwlE.js.map +0 -1
  227. package/dist/chunks/styling-tmRDI28D.js +0 -2
  228. package/dist/chunks/styling-tmRDI28D.js.map +0 -1
  229. package/dist/types/exports.d.ts +0 -600
  230. package/dist/types/styling.d.ts +0 -751
  231. /package/.github/{workflows → workflows-backup}/release.yml +0 -0
@@ -0,0 +1,268 @@
1
+ /**
2
+ * @fileoverview StyleBuilder class for Advanced Logger
3
+ */
4
+ /**
5
+ * Utility class for creating dynamic console styles with method chaining
6
+ */
7
+ export class StyleBuilder {
8
+ styles = [];
9
+ constructor(baseStyle = '') {
10
+ if (baseStyle)
11
+ this.styles.push(baseStyle);
12
+ }
13
+ /**
14
+ * Add background color or gradient
15
+ */
16
+ bg(background) {
17
+ this.styles.push(`background: ${background}`);
18
+ return this;
19
+ }
20
+ /**
21
+ * Add text color
22
+ */
23
+ color(color) {
24
+ this.styles.push(`color: ${color}`);
25
+ return this;
26
+ }
27
+ /**
28
+ * Add border styling
29
+ */
30
+ border(border) {
31
+ this.styles.push(`border: ${border}`);
32
+ return this;
33
+ }
34
+ /**
35
+ * Add box shadow
36
+ */
37
+ shadow(shadow) {
38
+ this.styles.push(`box-shadow: ${shadow}`);
39
+ return this;
40
+ }
41
+ /**
42
+ * Add padding
43
+ */
44
+ padding(padding) {
45
+ this.styles.push(`padding: ${padding}`);
46
+ return this;
47
+ }
48
+ /**
49
+ * Add margin
50
+ */
51
+ margin(margin) {
52
+ this.styles.push(`margin: ${margin}`);
53
+ return this;
54
+ }
55
+ /**
56
+ * Add border radius
57
+ */
58
+ rounded(radius = '4px') {
59
+ this.styles.push(`border-radius: ${radius}`);
60
+ return this;
61
+ }
62
+ /**
63
+ * Add font weight
64
+ */
65
+ bold() {
66
+ this.styles.push('font-weight: bold');
67
+ return this;
68
+ }
69
+ /**
70
+ * Add font styling
71
+ */
72
+ font(font) {
73
+ this.styles.push(`font-family: ${font}`);
74
+ return this;
75
+ }
76
+ /**
77
+ * Add font size
78
+ */
79
+ size(size) {
80
+ this.styles.push(`font-size: ${size}`);
81
+ return this;
82
+ }
83
+ /**
84
+ * Add line height
85
+ */
86
+ lineHeight(height) {
87
+ this.styles.push(`line-height: ${height}`);
88
+ return this;
89
+ }
90
+ /**
91
+ * Add text decoration
92
+ */
93
+ underline() {
94
+ this.styles.push('text-decoration: underline');
95
+ return this;
96
+ }
97
+ /**
98
+ * Add text transform
99
+ */
100
+ uppercase() {
101
+ this.styles.push('text-transform: uppercase');
102
+ return this;
103
+ }
104
+ /**
105
+ * Add opacity
106
+ */
107
+ opacity(value) {
108
+ this.styles.push(`opacity: ${value}`);
109
+ return this;
110
+ }
111
+ /**
112
+ * Add display property
113
+ */
114
+ display(value) {
115
+ this.styles.push(`display: ${value}`);
116
+ return this;
117
+ }
118
+ /**
119
+ * Add position property
120
+ */
121
+ position(value) {
122
+ this.styles.push(`position: ${value}`);
123
+ return this;
124
+ }
125
+ /**
126
+ * Add transform property
127
+ */
128
+ transform(value) {
129
+ this.styles.push(`transform: ${value}`);
130
+ return this;
131
+ }
132
+ /**
133
+ * Add animation property
134
+ */
135
+ animation(value) {
136
+ this.styles.push(`animation: ${value}`);
137
+ return this;
138
+ }
139
+ /**
140
+ * Add transition property
141
+ */
142
+ transition(value) {
143
+ this.styles.push(`transition: ${value}`);
144
+ return this;
145
+ }
146
+ /**
147
+ * Add cursor property
148
+ */
149
+ cursor(value) {
150
+ this.styles.push(`cursor: ${value}`);
151
+ return this;
152
+ }
153
+ /**
154
+ * Add any custom CSS property
155
+ */
156
+ custom(property, value) {
157
+ this.styles.push(`${property}: ${value}`);
158
+ return this;
159
+ }
160
+ /**
161
+ * Add any CSS property (alias for custom)
162
+ */
163
+ css(property, value) {
164
+ return this.custom(property, value);
165
+ }
166
+ /**
167
+ * Build the final CSS string
168
+ */
169
+ build() {
170
+ return this.styles.join('; ');
171
+ }
172
+ /**
173
+ * Clear all styles and start fresh
174
+ */
175
+ clear() {
176
+ this.styles = [];
177
+ return this;
178
+ }
179
+ /**
180
+ * Clone this StyleBuilder with the same styles
181
+ */
182
+ clone() {
183
+ const cloned = new StyleBuilder();
184
+ cloned.styles = [...this.styles];
185
+ return cloned;
186
+ }
187
+ /**
188
+ * Merge another StyleBuilder's styles into this one
189
+ */
190
+ merge(other) {
191
+ this.styles.push(...other.styles);
192
+ return this;
193
+ }
194
+ }
195
+ /**
196
+ * Proxy-based dynamic styler for chainable console styling
197
+ */
198
+ function createStyler() {
199
+ const builder = new StyleBuilder();
200
+ return new Proxy(builder, {
201
+ get(target, prop) {
202
+ if (prop in target) {
203
+ const method = target[prop];
204
+ if (typeof method === 'function') {
205
+ return method.bind(target);
206
+ }
207
+ return method;
208
+ }
209
+ return undefined;
210
+ }
211
+ });
212
+ }
213
+ /**
214
+ * Dynamic styler instance for external use
215
+ */
216
+ export const $ = createStyler();
217
+ /**
218
+ * Pre-defined style presets for common use cases
219
+ */
220
+ export const StylePresets = {
221
+ success: () => new StyleBuilder()
222
+ .bg('linear-gradient(135deg, #00b894 0%, #00a085 100%)')
223
+ .color('#ffffff')
224
+ .padding('4px 8px')
225
+ .rounded('4px')
226
+ .bold(),
227
+ error: () => new StyleBuilder()
228
+ .bg('linear-gradient(135deg, #e84393 0%, #d63031 100%)')
229
+ .color('#ffffff')
230
+ .padding('4px 8px')
231
+ .rounded('4px')
232
+ .bold(),
233
+ warning: () => new StyleBuilder()
234
+ .bg('linear-gradient(135deg, #fdcb6e 0%, #e17055 100%)')
235
+ .color('#2d3436')
236
+ .padding('4px 8px')
237
+ .rounded('4px')
238
+ .bold(),
239
+ info: () => new StyleBuilder()
240
+ .bg('linear-gradient(135deg, #74b9ff 0%, #0984e3 100%)')
241
+ .color('#ffffff')
242
+ .padding('4px 8px')
243
+ .rounded('4px')
244
+ .bold(),
245
+ debug: () => new StyleBuilder()
246
+ .bg('linear-gradient(135deg, #667eea 0%, #764ba2 100%)')
247
+ .color('#ffffff')
248
+ .padding('4px 8px')
249
+ .rounded('4px')
250
+ .bold(),
251
+ muted: () => new StyleBuilder()
252
+ .color('#6c757d')
253
+ .font('Monaco, Consolas, monospace')
254
+ .size('12px'),
255
+ accent: () => new StyleBuilder()
256
+ .bg('#f8f9fa')
257
+ .color('#495057')
258
+ .padding('2px 6px')
259
+ .rounded('3px')
260
+ .border('1px solid #dee2e6'),
261
+ neon: () => new StyleBuilder()
262
+ .bg('linear-gradient(135deg, #0f3460 0%, #e94560 100%)')
263
+ .color('#00ffff')
264
+ .padding('4px 8px')
265
+ .rounded('4px')
266
+ .bold()
267
+ .shadow('0 0 10px rgba(0, 255, 255, 0.5)'),
268
+ };
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @fileoverview Banner configurations for Advanced Logger
3
+ */
4
+ import type { BannerType, ThemeVariant } from '../types/index.js';
5
+ /**
6
+ * Banner variants for different display capabilities
7
+ */
8
+ export declare const BANNER_VARIANTS: {
9
+ simple: {
10
+ text: string;
11
+ style: string;
12
+ };
13
+ ascii: {
14
+ text: string;
15
+ style: string;
16
+ };
17
+ unicode: {
18
+ text: string;
19
+ style: string;
20
+ };
21
+ svg: {
22
+ text: string;
23
+ style: string;
24
+ };
25
+ animated: {
26
+ text: string;
27
+ style: string;
28
+ };
29
+ };
30
+ /**
31
+ * Theme-specific banners for enhanced visual theming
32
+ */
33
+ export declare const THEME_BANNERS: Record<ThemeVariant, {
34
+ simple: string;
35
+ style: string;
36
+ }>;
37
+ /**
38
+ * Feature detection for banner capabilities
39
+ */
40
+ export declare function detectBannerCapabilities(): BannerType;
41
+ /**
42
+ * Display initialization banner with advanced styling
43
+ */
44
+ export declare function displayInitBanner(bannerType?: BannerType): void;
45
+ //# sourceMappingURL=banners.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banners.d.ts","sourceRoot":"","sources":["../../src/styling/banners.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAoD3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAyBjF,CAAC;AAEF;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,UAAU,CA2BrD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAuC/D"}
@@ -0,0 +1,155 @@
1
+ /**
2
+ * @fileoverview Banner configurations for Advanced Logger
3
+ */
4
+ /**
5
+ * Banner variants for different display capabilities
6
+ */
7
+ export const BANNER_VARIANTS = {
8
+ simple: {
9
+ text: '🚀 ADVANCED LOGGER v2.0.0 - State-of-the-art Console Styling 🚀',
10
+ style: 'background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 20px; border-radius: 8px; font-weight: bold; font-size: 14px;'
11
+ },
12
+ ascii: {
13
+ text: `
14
+ ___ ____ _ __ ___ _ __ _____ _____ ____ __ ___ _____ _____ _____ ____
15
+ / _ \\ / __ \\| | / / / _ \\ | \\ | |/ ____| ____| _ \\ | | / _ \\ / ____| ___| _ | _ \\
16
+ / /_\\ \\ / / _\` | |/ / / /_\\ \\ | \\| | | | |__ | | | | | | / / \\ \\| | __| |_ | |_| | |_) |
17
+ | _ || | (_| | < | _ | | . \` | | | __| | | | | | | | | | | | |_ | _| | /| _ <
18
+ | | | |\\ \\__,_|_|\\_\\ | | | | | |\\ | |___| |____| |_| | | |__\\ \\_/ /| |__| | |___| |\\ \\| |_) |
19
+ \\_| |_/ \\____/ \\_| |_/ |_| \\_|\\_____|______|____/ |_____/\\___/ \\_____|_____|_| \\_|____/
20
+
21
+ Advanced Logger v2.0.0 - Console Excellence`,
22
+ style: 'font-family: "Courier New", Consolas, Monaco, monospace; color: #667eea; font-size: 11px; line-height: 1.2;'
23
+ },
24
+ unicode: {
25
+ text: `
26
+ ╔══════════════════════════════════════════════════════════════════════════╗
27
+ ║ 🚀 ADVANCED LOGGER v2.0.0 ║
28
+ ║ State-of-the-art Console Styling ║
29
+ ╚══════════════════════════════════════════════════════════════════════════╝`,
30
+ style: 'font-family: "Courier New", Consolas, Monaco, monospace; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px; border-radius: 8px; font-size: 12px; line-height: 1.3;'
31
+ },
32
+ svg: {
33
+ text: ' ',
34
+ style: `
35
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80'><defs><linearGradient id='grad' x1='0%' y1='0%' x2='100%' y2='0%'><stop offset='0%' style='stop-color:%23667eea'/><stop offset='100%' style='stop-color:%23764ba2'/></linearGradient></defs><rect width='100%' height='100%' fill='url(%23grad)' rx='8'/><text x='200' y='30' text-anchor='middle' fill='white' font-family='monospace' font-size='14' font-weight='bold'>🚀 ADVANCED LOGGER</text><text x='200' y='50' text-anchor='middle' fill='white' font-family='monospace' font-size='12'>State-of-the-art Console Styling</text><text x='200' y='65' text-anchor='middle' fill='white' font-family='monospace' font-size='10'>v2.0.0</text></svg>");
36
+ background-repeat: no-repeat;
37
+ background-size: 400px 80px;
38
+ padding: 40px 200px;
39
+ color: transparent;
40
+ display: inline-block;
41
+ border-radius: 8px;
42
+ `
43
+ },
44
+ animated: {
45
+ text: ' 🚀 ADVANCED LOGGER v2.0.0 ',
46
+ style: `
47
+ background: linear-gradient(-45deg, #667eea, #764ba2, #667eea, #764ba2);
48
+ background-size: 400% 400%;
49
+ color: white;
50
+ padding: 15px 25px;
51
+ border-radius: 10px;
52
+ font-weight: bold;
53
+ font-size: 14px;
54
+ font-family: monospace;
55
+ animation: gradientShift 3s ease infinite;
56
+ display: inline-block;
57
+ `
58
+ }
59
+ };
60
+ /**
61
+ * Theme-specific banners for enhanced visual theming
62
+ */
63
+ export const THEME_BANNERS = {
64
+ default: {
65
+ simple: '🚀 ADVANCED LOGGER v2.0.0 - State-of-the-art Console Styling 🚀',
66
+ style: 'background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 20px; border-radius: 8px; font-weight: bold;'
67
+ },
68
+ dark: {
69
+ simple: '🌙 ADVANCED LOGGER v2.0.0 - Dark Mode Console Excellence 🌙',
70
+ style: 'background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); color: #e2e8f0; padding: 12px 20px; border-radius: 8px; font-weight: bold; border: 1px solid #4a5568;'
71
+ },
72
+ neon: {
73
+ simple: '⚡ ADVANCED LOGGER v2.0.0 - Cyberpunk Console Experience ⚡',
74
+ style: 'background: linear-gradient(135deg, #0f3460 0%, #e94560 100%); color: #00ffff; padding: 12px 20px; border-radius: 8px; font-weight: bold; text-shadow: 0 0 10px #00ffff;'
75
+ },
76
+ minimal: {
77
+ simple: 'ADVANCED LOGGER v2.0.0 - Clean Console Styling',
78
+ style: 'background: #f7fafc; color: #2d3748; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 4px; font-weight: 500;'
79
+ },
80
+ light: {
81
+ simple: '☀️ ADVANCED LOGGER v2.0.0 - Bright Console Styling ☀️',
82
+ style: 'background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); color: #495057; padding: 12px 20px; border-radius: 8px; font-weight: bold; border: 1px solid #dee2e6;'
83
+ },
84
+ cyberpunk: {
85
+ simple: '🤖 ADVANCED LOGGER v2.0.0 - Neural Console Interface 🤖',
86
+ style: 'background: linear-gradient(135deg, #0d1b2a 0%, #415a77 100%); color: #00d4aa; padding: 12px 20px; border-radius: 8px; font-weight: bold; text-shadow: 0 0 10px #00d4aa; border: 1px solid #00d4aa;'
87
+ }
88
+ };
89
+ /**
90
+ * Feature detection for banner capabilities
91
+ */
92
+ export function detectBannerCapabilities() {
93
+ // Try to detect browser capabilities
94
+ const userAgent = navigator.userAgent;
95
+ const isChrome = /Chrome/.test(userAgent);
96
+ const isFirefox = /Firefox/.test(userAgent);
97
+ const isSafari = /Safari/.test(userAgent) && !/Chrome/.test(userAgent);
98
+ // Check for SVG support (most modern browsers)
99
+ const supportsSVG = !!document.createElementNS &&
100
+ !!document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect;
101
+ // Check for CSS animation support
102
+ const supportsAnimations = typeof document !== 'undefined' &&
103
+ 'animationName' in document.createElement('div').style;
104
+ // Progressive enhancement
105
+ if (supportsAnimations && isChrome) {
106
+ return 'animated';
107
+ }
108
+ else if (supportsSVG && (isChrome || isFirefox)) {
109
+ return 'svg';
110
+ }
111
+ else if (isChrome || isFirefox) {
112
+ return 'unicode';
113
+ }
114
+ else if (isSafari) {
115
+ return 'ascii';
116
+ }
117
+ return 'simple';
118
+ }
119
+ /**
120
+ * Display initialization banner with advanced styling
121
+ */
122
+ export function displayInitBanner(bannerType) {
123
+ const selectedType = bannerType || detectBannerCapabilities();
124
+ const banner = BANNER_VARIANTS[selectedType];
125
+ // Add CSS animation keyframes if needed
126
+ if (selectedType === 'animated') {
127
+ const style = document.createElement('style');
128
+ style.textContent = `
129
+ @keyframes gradientShift {
130
+ 0% { background-position: 0% 50%; }
131
+ 50% { background-position: 100% 50%; }
132
+ 100% { background-position: 0% 50%; }
133
+ }
134
+ `;
135
+ document.head.appendChild(style);
136
+ }
137
+ console.log(`%c${banner.text}`, banner.style);
138
+ // Show feature highlights
139
+ const features = [
140
+ '🎨 Advanced CSS Console Styling',
141
+ '📍 Automatic Stack Trace Parsing',
142
+ '🔧 Scoped Loggers & Prefixes',
143
+ '⚡ Performance Timers',
144
+ '🎯 Verbosity Filtering',
145
+ '🔌 Extensible Handlers',
146
+ '📱 Modern TypeScript Patterns',
147
+ '📤 Export & Clipboard Support'
148
+ ];
149
+ console.group(`%c✨ Features`, 'background: #f8f9fa; color: #495057; padding: 4px 8px; border-radius: 4px; font-weight: bold;');
150
+ features.forEach(feature => {
151
+ console.log(`%c${feature}`, 'color: #6c757d; font-size: 13px;');
152
+ });
153
+ console.groupEnd();
154
+ console.log(''); // Add spacing
155
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @fileoverview Styling system exports for Advanced Logger
3
+ */
4
+ export { StyleBuilder, $, StylePresets } from './StyleBuilder.js';
5
+ export { THEME_PRESETS } from './themes.js';
6
+ export { BANNER_VARIANTS, THEME_BANNERS, detectBannerCapabilities, displayInitBanner } from './banners.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styling/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EACH,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,iBAAiB,EACpB,MAAM,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @fileoverview Styling system exports for Advanced Logger
3
+ */
4
+ export { StyleBuilder, $, StylePresets } from './StyleBuilder.js';
5
+ export { THEME_PRESETS } from './themes.js';
6
+ export { BANNER_VARIANTS, THEME_BANNERS, detectBannerCapabilities, displayInitBanner } from './banners.js';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @fileoverview Theme presets for Advanced Logger
3
+ */
4
+ import type { ThemeVariant } from '../types/index.js';
5
+ import type { LevelStyleConfig } from '../utils/index.js';
6
+ /**
7
+ * Theme configurations for different visual styles
8
+ */
9
+ export declare const THEME_PRESETS: Record<ThemeVariant, Record<string, LevelStyleConfig>>;
10
+ //# sourceMappingURL=themes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/styling/themes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAgOhF,CAAC"}