@ogxjs/core 0.1.2 → 0.3.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 (70) hide show
  1. package/dist/cache/hash.d.ts +66 -0
  2. package/dist/cache/hash.d.ts.map +1 -0
  3. package/dist/cache/hash.js +161 -0
  4. package/dist/cache/index.d.ts +10 -0
  5. package/dist/cache/index.d.ts.map +1 -0
  6. package/dist/cache/index.js +12 -0
  7. package/dist/cache/lru.d.ts +122 -0
  8. package/dist/cache/lru.d.ts.map +1 -0
  9. package/dist/cache/lru.js +269 -0
  10. package/dist/cache/snapshot.d.ts +116 -0
  11. package/dist/cache/snapshot.d.ts.map +1 -0
  12. package/dist/cache/snapshot.js +204 -0
  13. package/dist/cache.d.ts +2 -2
  14. package/dist/cache.js +2 -2
  15. package/dist/css.d.ts +19 -6
  16. package/dist/css.d.ts.map +1 -1
  17. package/dist/font-registry.d.ts +15 -0
  18. package/dist/font-registry.d.ts.map +1 -1
  19. package/dist/font-registry.js +19 -0
  20. package/dist/fonts.d.ts +21 -0
  21. package/dist/fonts.d.ts.map +1 -1
  22. package/dist/fonts.js +33 -0
  23. package/dist/index.d.ts +18 -4
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +23 -10
  26. package/dist/ogx.js +13 -13
  27. package/dist/perf/index.d.ts +8 -0
  28. package/dist/perf/index.d.ts.map +1 -0
  29. package/dist/perf/index.js +7 -0
  30. package/dist/perf/timing.d.ts +160 -0
  31. package/dist/perf/timing.d.ts.map +1 -0
  32. package/dist/perf/timing.js +305 -0
  33. package/dist/presets/blog.js +1 -1
  34. package/dist/presets/docs.d.ts +2 -0
  35. package/dist/presets/docs.d.ts.map +1 -1
  36. package/dist/presets/docs.js +26 -23
  37. package/dist/presets/minimal.d.ts +2 -0
  38. package/dist/presets/minimal.d.ts.map +1 -1
  39. package/dist/presets/minimal.js +8 -16
  40. package/dist/presets/social.d.ts +2 -0
  41. package/dist/presets/social.d.ts.map +1 -1
  42. package/dist/presets/social.js +28 -18
  43. package/dist/render-png.d.ts.map +1 -1
  44. package/dist/render-png.js +9 -1
  45. package/dist/render-svg.d.ts.map +1 -1
  46. package/dist/render-svg.js +11 -1
  47. package/dist/tailwind/class-cache.d.ts +141 -0
  48. package/dist/tailwind/class-cache.d.ts.map +1 -0
  49. package/dist/tailwind/class-cache.js +212 -0
  50. package/dist/tailwind/index.d.ts +14 -1
  51. package/dist/tailwind/index.d.ts.map +1 -1
  52. package/dist/tailwind/index.js +15 -1
  53. package/dist/tailwind/lookup-tables.d.ts +30 -0
  54. package/dist/tailwind/lookup-tables.d.ts.map +1 -0
  55. package/dist/tailwind/lookup-tables.js +427 -0
  56. package/dist/tailwind/parser-v2.d.ts +54 -0
  57. package/dist/tailwind/parser-v2.d.ts.map +1 -0
  58. package/dist/tailwind/parser-v2.js +250 -0
  59. package/dist/tailwind/parser.d.ts +1 -0
  60. package/dist/tailwind/parser.d.ts.map +1 -1
  61. package/dist/tailwind/parser.js +1 -0
  62. package/dist/tailwind/prefix-handlers.d.ts +68 -0
  63. package/dist/tailwind/prefix-handlers.d.ts.map +1 -0
  64. package/dist/tailwind/prefix-handlers.js +931 -0
  65. package/package.json +18 -5
  66. package/dist/fonts/inter/inter-300.ttf +0 -0
  67. package/dist/fonts/inter/inter-400.ttf +0 -0
  68. package/dist/fonts/inter/inter-500.ttf +0 -0
  69. package/dist/fonts/inter/inter-600.ttf +0 -0
  70. package/dist/fonts/inter/inter-700.ttf +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ogxjs/core",
3
- "version": "0.1.2",
4
- "description": "High-performance Open Graph image generator with Tailwind CSS support",
3
+ "version": "0.3.0",
4
+ "description": "High-performance Open Graph image generator with Tailwind CSS support - v0.3.0 Universal Fonts",
5
5
  "author": "Carlos Eduardo",
6
6
  "repository": {
7
7
  "type": "git",
@@ -25,6 +25,18 @@
25
25
  "./png": {
26
26
  "types": "./dist/render-png.d.ts",
27
27
  "import": "./dist/render-png.js"
28
+ },
29
+ "./cache": {
30
+ "types": "./dist/cache/index.d.ts",
31
+ "import": "./dist/cache/index.js"
32
+ },
33
+ "./perf": {
34
+ "types": "./dist/perf/index.d.ts",
35
+ "import": "./dist/perf/index.js"
36
+ },
37
+ "./tailwind": {
38
+ "types": "./dist/tailwind/index.d.ts",
39
+ "import": "./dist/tailwind/index.js"
28
40
  }
29
41
  },
30
42
  "files": [
@@ -35,14 +47,15 @@
35
47
  "satori": "^0.12.1"
36
48
  },
37
49
  "devDependencies": {
38
- "@types/bun": "^1.2.4",
39
50
  "@types/node": "^20.19.27",
40
51
  "@vercel/og": "^0.8.6",
41
52
  "@vitest/ui": "^4.0.16",
42
- "bun-types": "^1.3.5",
43
53
  "tsx": "^4.21.0",
44
54
  "vitest": "^4.0.16"
45
55
  },
56
+ "engines": {
57
+ "node": ">=18.0.0"
58
+ },
46
59
  "peerDependencies": {
47
60
  "typescript": ">=5.0.0"
48
61
  },
@@ -58,7 +71,7 @@
58
71
  "access": "public"
59
72
  },
60
73
  "scripts": {
61
- "build": "tsc && mkdir -p dist/fonts/inter && cp src/fonts/inter/*.ttf dist/fonts/inter/",
74
+ "build": "tsc",
62
75
  "dev": "tsc --watch",
63
76
  "check-types": "tsc --noEmit",
64
77
  "test": "vitest run",
Binary file
Binary file
Binary file
Binary file
Binary file