@kaijudo/react-game-types 0.4.0 → 0.4.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## 0.4.1 (2025-12-27)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - # Patch Release: Correct Version ([c1c4975](https://github.com/vreddi/kaijudo/commit/c1c4975))
6
+
7
+ This release corrects the version from the incorrectly published 0.1.0 back to the intended 0.4.1.
8
+
9
+ ## Changes
10
+
11
+ - Correct version to 0.4.1 (patch bump from 0.4.0)
12
+ - Fixes the versioning issue caused by missing independent release group configuration
13
+
14
+ ### ❤️ Thank You
15
+
16
+ - Vishrut Reddi @vreddi
17
+
1
18
  ## 0.4.0 (2025-12-25)
2
19
 
3
20
  ### 🚀 Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaijudo/react-game-types",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,7 +19,8 @@
19
19
  "tailwind-merge": "^3.0.2",
20
20
  "class-variance-authority": "^0.7.1",
21
21
  "react": "^19.2.0",
22
- "react-dom": "^19.2.0"
22
+ "react-dom": "^19.2.0",
23
+ "@kaijudo/react-storybook": "0.0.1"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@storybook/addon-essentials": "*",
@@ -0,0 +1,114 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { UtilityPage } from "@kaijudo/react-storybook";
3
+ import { Era, Rarity, Race } from "../src/index.js";
4
+
5
+ const meta = {
6
+ title: "Utilities/Game Types",
7
+ component: UtilityPage,
8
+ parameters: {
9
+ layout: "fullscreen",
10
+ },
11
+ tags: ["autodocs"],
12
+ } satisfies Meta<typeof UtilityPage>;
13
+
14
+ export default meta;
15
+ type Story = StoryObj<typeof meta>;
16
+
17
+ export const TypesDocumentation: Story = {
18
+ render: () => (
19
+ <UtilityPage
20
+ name="Game Types"
21
+ description="TypeScript type definitions for Kaijudo game entities including eras, rarities, and races."
22
+ >
23
+ <div className="min-h-screen bg-white">
24
+ <div className="max-w-7xl mx-auto px-8 py-8">
25
+ <div className="space-y-12">
26
+ {/* Era Section */}
27
+ <section>
28
+ <h2 className="text-3xl font-bold mb-4">Era</h2>
29
+ <p className="text-gray-600 mb-6">
30
+ Represents different periods in the Duel Masters franchise
31
+ timeline.
32
+ </p>
33
+ <div className="bg-gray-50 rounded-lg p-6">
34
+ <div className="space-y-4">
35
+ {Object.entries(Era).map(([key, value]) => (
36
+ <div
37
+ key={key}
38
+ className="border-b border-gray-200 pb-4 last:border-0"
39
+ >
40
+ <div className="flex items-center gap-4">
41
+ <code className="text-sm font-mono bg-white px-3 py-1 rounded border">
42
+ {key}
43
+ </code>
44
+ <span className="text-gray-500">=</span>
45
+ <code className="text-sm font-mono bg-white px-3 py-1 rounded border text-blue-600">
46
+ "{String(value)}"
47
+ </code>
48
+ </div>
49
+ </div>
50
+ ))}
51
+ </div>
52
+ </div>
53
+ </section>
54
+
55
+ {/* Rarity Section */}
56
+ <section>
57
+ <h2 className="text-3xl font-bold mb-4">Rarity</h2>
58
+ <p className="text-gray-600 mb-6">
59
+ Card rarity levels in the game.
60
+ </p>
61
+ <div className="bg-gray-50 rounded-lg p-6">
62
+ <div className="space-y-4">
63
+ {Object.entries(Rarity).map(([key, value]) => (
64
+ <div
65
+ key={key}
66
+ className="border-b border-gray-200 pb-4 last:border-0"
67
+ >
68
+ <div className="flex items-center gap-4">
69
+ <code className="text-sm font-mono bg-white px-3 py-1 rounded border">
70
+ {key}
71
+ </code>
72
+ <span className="text-gray-500">=</span>
73
+ <code className="text-sm font-mono bg-white px-3 py-1 rounded border text-blue-600">
74
+ "{String(value)}"
75
+ </code>
76
+ </div>
77
+ </div>
78
+ ))}
79
+ </div>
80
+ </div>
81
+ </section>
82
+
83
+ {/* Race Section */}
84
+ <section>
85
+ <h2 className="text-3xl font-bold mb-4">Race</h2>
86
+ <p className="text-gray-600 mb-6">
87
+ Creature race types in the game.
88
+ </p>
89
+ <div className="bg-gray-50 rounded-lg p-6">
90
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
91
+ {Object.entries(Race).map(([key, value]) => (
92
+ <div
93
+ key={key}
94
+ className="border border-gray-200 rounded p-4 bg-white"
95
+ >
96
+ <div className="flex flex-col gap-2">
97
+ <code className="text-sm font-mono font-semibold">
98
+ {key}
99
+ </code>
100
+ <code className="text-xs font-mono text-blue-600">
101
+ "{String(value)}"
102
+ </code>
103
+ </div>
104
+ </div>
105
+ ))}
106
+ </div>
107
+ </div>
108
+ </section>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </UtilityPage>
113
+ ),
114
+ };