@downcity/ui 0.1.28 → 0.1.36

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/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
  - 只负责 UI 组件、样式和组件类型。
18
18
  - `@downcity/agent`
19
19
  - 负责 Agent 运行时,不依赖这个包做执行。
20
- - `@downcity/studio-cli`
20
+ - `downcity`
21
21
  - 可能消费这个包的组件,但平台逻辑不在这里。
22
22
 
23
23
  ## 根目录结构
package/dist/index.cjs CHANGED
@@ -2368,7 +2368,7 @@ function deriveFocusedClusterNodes(items, zoneId) {
2368
2368
  function buildOverviewPatrolRoute(params) {
2369
2369
  const anchor = toStagePoint(params.zoneId, params.placement);
2370
2370
  const hub = toZoneHubPoint(params.zoneId);
2371
- const gate = WORKBOARD_ZONE_GATE_POINTS[params.zoneId];
2371
+ const city = WORKBOARD_ZONE_GATE_POINTS[params.zoneId];
2372
2372
  const laneIndex = Math.round((params.placement.left + params.placement.top) / 32) % 3;
2373
2373
  const laneOffset = (laneIndex - 1) * 10;
2374
2374
  const roadY = params.zoneId === "engaged" || params.zoneId === "steady" ? 460 : 500;
@@ -2380,17 +2380,17 @@ function buildOverviewPatrolRoute(params) {
2380
2380
  anchor,
2381
2381
  { x: anchor.x, y: hub.y },
2382
2382
  hub,
2383
- { x: gate.x, y: hub.y },
2384
- gate,
2385
- { x: gate.x, y: roadY },
2383
+ { x: city.x, y: hub.y },
2384
+ city,
2385
+ { x: city.x, y: roadY },
2386
2386
  { x: plazaLane.x, y: roadY },
2387
2387
  plazaLane,
2388
2388
  WORKBOARD_TOWN_PLAZA_POINT,
2389
2389
  plazaLane,
2390
2390
  { x: plazaLane.x, y: roadY },
2391
- { x: gate.x, y: roadY },
2392
- gate,
2393
- { x: gate.x, y: hub.y },
2391
+ { x: city.x, y: roadY },
2392
+ city,
2393
+ { x: city.x, y: hub.y },
2394
2394
  hub,
2395
2395
  { x: anchor.x, y: hub.y },
2396
2396
  anchor
@@ -2540,7 +2540,7 @@ function WorkboardAtlasPortalSign(props) {
2540
2540
  children: [
2541
2541
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "absolute left-3 top-full h-5 w-2 bg-[#6e4d2f]" }),
2542
2542
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "absolute right-3 top-full h-5 w-2 bg-[#6e4d2f]" }),
2543
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "block text-[9px] uppercase tracking-[0.18em] text-[#6e4d2f]/70", children: "zone gate" }),
2543
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "block text-[9px] uppercase tracking-[0.18em] text-[#6e4d2f]/70", children: "zone city" }),
2544
2544
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "mt-1 block truncate text-sm font-semibold leading-5 tracking-[-0.04em] text-[#352516]", children: zone.title }),
2545
2545
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "mt-1 grid grid-cols-[1fr_auto] items-center gap-2", children: [
2546
2546
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "h-2 border border-[#6e4d2f]/35 bg-[#fff1bd]", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
@@ -2643,7 +2643,7 @@ function WorkboardGameAtlas(props) {
2643
2643
  strokeDasharray: "3 4"
2644
2644
  }
2645
2645
  ) : null
2646
- ] }, `gate-${actor.id}`);
2646
+ ] }, `city-${actor.id}`);
2647
2647
  })
2648
2648
  ]
2649
2649
  }
package/dist/index.js CHANGED
@@ -2265,7 +2265,7 @@ function deriveFocusedClusterNodes(items, zoneId) {
2265
2265
  function buildOverviewPatrolRoute(params) {
2266
2266
  const anchor = toStagePoint(params.zoneId, params.placement);
2267
2267
  const hub = toZoneHubPoint(params.zoneId);
2268
- const gate = WORKBOARD_ZONE_GATE_POINTS[params.zoneId];
2268
+ const city = WORKBOARD_ZONE_GATE_POINTS[params.zoneId];
2269
2269
  const laneIndex = Math.round((params.placement.left + params.placement.top) / 32) % 3;
2270
2270
  const laneOffset = (laneIndex - 1) * 10;
2271
2271
  const roadY = params.zoneId === "engaged" || params.zoneId === "steady" ? 460 : 500;
@@ -2277,17 +2277,17 @@ function buildOverviewPatrolRoute(params) {
2277
2277
  anchor,
2278
2278
  { x: anchor.x, y: hub.y },
2279
2279
  hub,
2280
- { x: gate.x, y: hub.y },
2281
- gate,
2282
- { x: gate.x, y: roadY },
2280
+ { x: city.x, y: hub.y },
2281
+ city,
2282
+ { x: city.x, y: roadY },
2283
2283
  { x: plazaLane.x, y: roadY },
2284
2284
  plazaLane,
2285
2285
  WORKBOARD_TOWN_PLAZA_POINT,
2286
2286
  plazaLane,
2287
2287
  { x: plazaLane.x, y: roadY },
2288
- { x: gate.x, y: roadY },
2289
- gate,
2290
- { x: gate.x, y: hub.y },
2288
+ { x: city.x, y: roadY },
2289
+ city,
2290
+ { x: city.x, y: hub.y },
2291
2291
  hub,
2292
2292
  { x: anchor.x, y: hub.y },
2293
2293
  anchor
@@ -2437,7 +2437,7 @@ function WorkboardAtlasPortalSign(props) {
2437
2437
  children: [
2438
2438
  /* @__PURE__ */ jsx21("span", { className: "absolute left-3 top-full h-5 w-2 bg-[#6e4d2f]" }),
2439
2439
  /* @__PURE__ */ jsx21("span", { className: "absolute right-3 top-full h-5 w-2 bg-[#6e4d2f]" }),
2440
- /* @__PURE__ */ jsx21("span", { className: "block text-[9px] uppercase tracking-[0.18em] text-[#6e4d2f]/70", children: "zone gate" }),
2440
+ /* @__PURE__ */ jsx21("span", { className: "block text-[9px] uppercase tracking-[0.18em] text-[#6e4d2f]/70", children: "zone city" }),
2441
2441
  /* @__PURE__ */ jsx21("span", { className: "mt-1 block truncate text-sm font-semibold leading-5 tracking-[-0.04em] text-[#352516]", children: zone.title }),
2442
2442
  /* @__PURE__ */ jsxs8("span", { className: "mt-1 grid grid-cols-[1fr_auto] items-center gap-2", children: [
2443
2443
  /* @__PURE__ */ jsx21("span", { className: "h-2 border border-[#6e4d2f]/35 bg-[#fff1bd]", children: /* @__PURE__ */ jsx21(
@@ -2540,7 +2540,7 @@ function WorkboardGameAtlas(props) {
2540
2540
  strokeDasharray: "3 4"
2541
2541
  }
2542
2542
  ) : null
2543
- ] }, `gate-${actor.id}`);
2543
+ ] }, `city-${actor.id}`);
2544
2544
  })
2545
2545
  ]
2546
2546
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@downcity/ui",
3
- "version": "0.1.28",
3
+ "version": "0.1.36",
4
4
  "description": "Downcity UI SDK for React and Tailwind CSS applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,28 +37,28 @@
37
37
  "src/styles.css"
38
38
  ],
39
39
  "peerDependencies": {
40
- "react": "^19.2.0",
41
- "react-dom": "^19.2.0"
40
+ "react": "^19.2.6",
41
+ "react-dom": "^19.2.6"
42
42
  },
43
43
  "dependencies": {
44
- "@base-ui/react": "^1.3.0",
45
- "@pxlkit/core": "^1.2.2",
46
- "@pxlkit/effects": "^1.2.2",
47
- "@pxlkit/feedback": "^1.2.2",
48
- "@pxlkit/gamification": "^1.2.2",
49
- "@pxlkit/parallax": "^1.2.2",
50
- "@pxlkit/ui": "^1.2.2",
44
+ "@base-ui/react": "^1.5.0",
45
+ "@pxlkit/core": "^1.3.3",
46
+ "@pxlkit/effects": "^1.2.3",
47
+ "@pxlkit/feedback": "^1.2.5",
48
+ "@pxlkit/gamification": "^1.2.4",
49
+ "@pxlkit/parallax": "^1.2.3",
50
+ "@pxlkit/ui": "^1.2.5",
51
51
  "class-variance-authority": "^0.7.1",
52
52
  "clsx": "^2.1.1",
53
- "lucide-react": "^0.577.0",
53
+ "lucide-react": "^1.17.0",
54
54
  "sonner": "^2.0.7",
55
- "tailwind-merge": "^3.5.0"
55
+ "tailwind-merge": "^3.6.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/react": "^19.2.2",
59
- "@types/react-dom": "^19.2.2",
60
- "tsup": "^8.5.0",
61
- "typescript": "^5.9.2"
58
+ "@types/react": "^19.2.15",
59
+ "@types/react-dom": "^19.2.3",
60
+ "tsup": "^8.5.1",
61
+ "typescript": "^6.0.3"
62
62
  },
63
63
  "keywords": [
64
64
  "downcity",