@cosmicdrift/kumiko-renderer-web 0.125.2 → 0.126.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-renderer-web",
3
- "version": "0.125.2",
3
+ "version": "0.126.0",
4
4
  "description": "Web-platform bindings for @cosmicdrift/kumiko-renderer. HTML default-primitives, browser history-based navigation, EventSource-backed live events, and a one-call createKumikoApp that mounts the whole stack via react-dom.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -16,9 +16,9 @@
16
16
  "./styles.css": "./src/styles.css"
17
17
  },
18
18
  "dependencies": {
19
- "@cosmicdrift/kumiko-dispatcher-live": "0.125.2",
20
- "@cosmicdrift/kumiko-headless": "0.125.2",
21
- "@cosmicdrift/kumiko-renderer": "0.125.2",
19
+ "@cosmicdrift/kumiko-dispatcher-live": "0.126.0",
20
+ "@cosmicdrift/kumiko-headless": "0.126.0",
21
+ "@cosmicdrift/kumiko-renderer": "0.126.0",
22
22
  "@radix-ui/react-dialog": "^1.1.15",
23
23
  "@radix-ui/react-dropdown-menu": "^2.1.16",
24
24
  "@radix-ui/react-label": "^2.1.8",
@@ -241,6 +241,25 @@ describe("NavTree", () => {
241
241
  expect(container.querySelectorAll("svg").length).toBe(2);
242
242
  });
243
243
 
244
+ test("palette, link und share rendern Lucide-Icons (Share-/Branding-Nav)", () => {
245
+ const schema = {
246
+ featureName: "app",
247
+ entities: {},
248
+ screens: [
249
+ { id: "branding", type: "entityList", entity: "x", columns: [] },
250
+ { id: "links", type: "entityList", entity: "x", columns: [] },
251
+ { id: "defaults", type: "entityList", entity: "x", columns: [] },
252
+ ],
253
+ navs: [
254
+ { id: "branding", label: "Branding", screen: "branding", order: 10, icon: "palette" },
255
+ { id: "links", label: "Links", screen: "links", order: 20, icon: "link" },
256
+ { id: "defaults", label: "Defaults", screen: "defaults", order: 30, icon: "share" },
257
+ ],
258
+ } as FeatureSchema;
259
+ const { container } = render(<NavTree schema={schema} />);
260
+ expect(container.querySelectorAll("svg").length).toBe(3);
261
+ });
262
+
244
263
  test("unbekannter icon-Key fällt sauber auf den Dot zurück (kein svg)", () => {
245
264
  const schema = {
246
265
  featureName: "showcase",
@@ -41,12 +41,15 @@ import {
41
41
  Layers,
42
42
  LayoutDashboard,
43
43
  LineChart,
44
+ Link,
44
45
  List,
46
+ Palette,
45
47
  PiggyBank,
46
48
  Plus,
47
49
  Receipt,
48
50
  Search,
49
51
  Settings,
52
+ Share2,
50
53
  Shield,
51
54
  Sparkles,
52
55
  Table,
@@ -119,6 +122,9 @@ const NAV_ICONS: Readonly<Record<string, typeof Folder>> = {
119
122
  search: Search,
120
123
  tag: Tag,
121
124
  key: KeyRound,
125
+ link: Link,
126
+ palette: Palette,
127
+ share: Share2,
122
128
  };
123
129
 
124
130
  export type NavTreeProps = {