kimu-core 0.4.1 → 0.4.2

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 (67) hide show
  1. package/.editorconfig +116 -30
  2. package/.gitattributes +81 -11
  3. package/.github/FUNDING.yml +8 -8
  4. package/.github/kimu-copilot-instructions.md +3779 -3779
  5. package/.github/workflows/deploy-demo.yml +39 -39
  6. package/.nvmrc +1 -0
  7. package/.prettierignore +44 -0
  8. package/.prettierrc +16 -0
  9. package/FUNDING.md +31 -31
  10. package/icon.svg +10 -10
  11. package/package.json +9 -2
  12. package/scripts/minify-css-assets.js +82 -82
  13. package/src/core/index.ts +47 -47
  14. package/src/core/kimu-global-styles.ts +136 -136
  15. package/src/core/kimu-reactive.ts +196 -196
  16. package/src/modules-repository/api-axios/CHANGELOG.md +48 -48
  17. package/src/modules-repository/api-axios/QUICK-REFERENCE.md +178 -178
  18. package/src/modules-repository/api-axios/README.md +304 -304
  19. package/src/modules-repository/api-axios/api-axios-service.ts +355 -355
  20. package/src/modules-repository/api-axios/examples.ts +293 -293
  21. package/src/modules-repository/api-axios/index.ts +19 -19
  22. package/src/modules-repository/api-axios/interfaces.ts +71 -71
  23. package/src/modules-repository/api-axios/module.ts +41 -41
  24. package/src/modules-repository/api-core/CHANGELOG.md +42 -42
  25. package/src/modules-repository/api-core/QUICK-REFERENCE.md +192 -192
  26. package/src/modules-repository/api-core/README.md +435 -435
  27. package/src/modules-repository/api-core/api-core-service.ts +289 -289
  28. package/src/modules-repository/api-core/examples.ts +432 -432
  29. package/src/modules-repository/api-core/index.ts +8 -8
  30. package/src/modules-repository/api-core/interfaces.ts +83 -83
  31. package/src/modules-repository/api-core/module.ts +30 -30
  32. package/src/modules-repository/event-bus/README.md +273 -273
  33. package/src/modules-repository/event-bus/event-bus-service.ts +176 -176
  34. package/src/modules-repository/event-bus/module.ts +30 -30
  35. package/src/modules-repository/notification/README.md +423 -423
  36. package/src/modules-repository/notification/module.ts +30 -30
  37. package/src/modules-repository/notification/notification-service.ts +436 -436
  38. package/src/modules-repository/router/README.it.md +61 -10
  39. package/src/modules-repository/router/README.md +61 -10
  40. package/src/modules-repository/router/router-config.ts.example +61 -0
  41. package/src/modules-repository/router/router.ts +18 -0
  42. package/src/modules-repository/state/README.md +409 -409
  43. package/src/modules-repository/state/module.ts +30 -30
  44. package/src/modules-repository/state/state-service.ts +296 -296
  45. package/src/modules-repository/theme/README.md +311 -267
  46. package/src/modules-repository/theme/module.ts +30 -30
  47. package/src/modules-repository/theme/pre-build.js +40 -40
  48. package/src/modules-repository/theme/theme-service.ts +411 -389
  49. package/src/modules-repository/theme/themes/theme-cherry-blossom.css +78 -78
  50. package/src/modules-repository/theme/themes/theme-cozy.css +111 -111
  51. package/src/modules-repository/theme/themes/theme-cyberpunk.css +150 -150
  52. package/src/modules-repository/theme/themes/theme-dark.css +79 -79
  53. package/src/modules-repository/theme/themes/theme-forest.css +171 -171
  54. package/src/modules-repository/theme/themes/theme-gold.css +100 -100
  55. package/src/modules-repository/theme/themes/theme-high-contrast.css +126 -126
  56. package/src/modules-repository/theme/themes/theme-lava.css +101 -101
  57. package/src/modules-repository/theme/themes/theme-lavender.css +90 -90
  58. package/src/modules-repository/theme/themes/theme-light.css +79 -79
  59. package/src/modules-repository/theme/themes/theme-matrix.css +103 -103
  60. package/src/modules-repository/theme/themes/theme-midnight.css +81 -81
  61. package/src/modules-repository/theme/themes/theme-nord.css +94 -94
  62. package/src/modules-repository/theme/themes/theme-ocean.css +84 -84
  63. package/src/modules-repository/theme/themes/theme-retro80s.css +343 -343
  64. package/src/modules-repository/theme/themes/theme-sunset.css +62 -62
  65. package/src/modules-repository/theme/themes-config-default.json +19 -0
  66. package/src/modules-repository/theme/themes-config.d.ts +27 -27
  67. package/src/modules-repository/theme/{themes-config.json → themes-config.json.example} +223 -213
@@ -1,40 +1,40 @@
1
- /**
2
- * Pre-Build Script for Theme Module
3
- *
4
- * This script runs BEFORE the theme module is compiled.
5
- * It copies CSS theme files to public/themes/ so they're available
6
- * during development and will be included in the Vite build.
7
- *
8
- * This approach keeps the module self-contained and independent.
9
- */
10
- import fs from 'fs';
11
- import path from 'path';
12
-
13
- export default async function preBuild({ moduleDir, rootDir }) {
14
- const themesDir = path.join(moduleDir, 'themes');
15
-
16
- if (!fs.existsSync(themesDir)) {
17
- console.log('⚠️ No themes directory found, skipping theme copy');
18
- return;
19
- }
20
-
21
- const cssFiles = fs.readdirSync(themesDir).filter(f => f.endsWith('.css'));
22
-
23
- if (cssFiles.length === 0) {
24
- console.log('⚠️ No CSS files found in themes directory');
25
- return;
26
- }
27
-
28
- // Copy to public/themes/ (Vite will include them in build automatically)
29
- const publicThemesDir = path.join(rootDir, 'public', 'themes');
30
- fs.mkdirSync(publicThemesDir, { recursive: true });
31
-
32
- for (const cssFile of cssFiles) {
33
- fs.copyFileSync(
34
- path.join(themesDir, cssFile),
35
- path.join(publicThemesDir, cssFile)
36
- );
37
- }
38
-
39
- console.log(`📄 Theme module: Copied ${cssFiles.length} CSS files to public/themes/`);
40
- }
1
+ /**
2
+ * Pre-Build Script for Theme Module
3
+ *
4
+ * This script runs BEFORE the theme module is compiled.
5
+ * It copies CSS theme files to public/themes/ so they're available
6
+ * during development and will be included in the Vite build.
7
+ *
8
+ * This approach keeps the module self-contained and independent.
9
+ */
10
+ import fs from 'fs';
11
+ import path from 'path';
12
+
13
+ export default async function preBuild({ moduleDir, rootDir }) {
14
+ const themesDir = path.join(moduleDir, 'themes');
15
+
16
+ if (!fs.existsSync(themesDir)) {
17
+ console.log('⚠️ No themes directory found, skipping theme copy');
18
+ return;
19
+ }
20
+
21
+ const cssFiles = fs.readdirSync(themesDir).filter(f => f.endsWith('.css'));
22
+
23
+ if (cssFiles.length === 0) {
24
+ console.log('⚠️ No CSS files found in themes directory');
25
+ return;
26
+ }
27
+
28
+ // Copy to public/themes/ (Vite will include them in build automatically)
29
+ const publicThemesDir = path.join(rootDir, 'public', 'themes');
30
+ fs.mkdirSync(publicThemesDir, { recursive: true });
31
+
32
+ for (const cssFile of cssFiles) {
33
+ fs.copyFileSync(
34
+ path.join(themesDir, cssFile),
35
+ path.join(publicThemesDir, cssFile)
36
+ );
37
+ }
38
+
39
+ console.log(`📄 Theme module: Copied ${cssFiles.length} CSS files to public/themes/`);
40
+ }