@wipco/sdui-editor 0.46.0 → 0.47.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 (2) hide show
  1. package/dist/index.js +15 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -7405,6 +7405,7 @@ function classifyValue(value) {
7405
7405
  if (typeof value.$state === "string") return "state";
7406
7406
  if ("$item" in value) return "item";
7407
7407
  if ("$index" in value) return "index";
7408
+ if ("$event" in value) return "event";
7408
7409
  if (isPlainObject7(value.$calc)) return "calc";
7409
7410
  return "literal";
7410
7411
  }
@@ -7493,6 +7494,8 @@ function seedFor(kind, current) {
7493
7494
  return { $item: true };
7494
7495
  case "index":
7495
7496
  return { $index: true };
7497
+ case "event":
7498
+ return { $event: true };
7496
7499
  case "calc": {
7497
7500
  const args = current === void 0 ? [] : [current];
7498
7501
  return { $calc: { op: "concat", args } };
@@ -7533,9 +7536,15 @@ var ACTION_METAS = [
7533
7536
  name: "fromEvent",
7534
7537
  label: "\uC774\uBCA4\uD2B8 \uAC12 \uC0AC\uC6A9",
7535
7538
  kind: "boolean",
7536
- description: "\uCF1C\uBA74 \uC785\uB825\uAC12\xB7\uC120\uD0DD\uB41C \uD0ED\xB7\uD398\uC774\uC9C0 \uBC88\uD638 \uB4F1 \uC774\uBCA4\uD2B8\uAC00 \uC900 \uAC12\uC744 \uADF8\uB300\uB85C \uC800\uC7A5\uD55C\uB2E4(\uAC12 \uCE78\uC740 \uBB34\uC2DC\uB41C\uB2E4)."
7539
+ description: '\uCF1C\uBA74 \uC785\uB825\uAC12\xB7\uC120\uD0DD\uB41C \uD0ED\xB7\uD398\uC774\uC9C0 \uBC88\uD638 \uB4F1 \uC774\uBCA4\uD2B8\uAC00 \uC900 \uAC12\uC744 \uADF8\uB300\uB85C \uC800\uC7A5\uD55C\uB2E4(\uAC12 \uCE78\uC740 \uBB34\uC2DC\uB41C\uB2E4). \uAC00\uACF5\uD574\uC11C \uB123\uC73C\uB824\uBA74 \uC774 \uCE78\uC744 \uB044\uACE0 \uAC12\uC5D0 {"$event":true}\uB97C \uC4F4\uB2E4.'
7537
7540
  },
7538
- { name: "value", label: "\uAC12", kind: "value" }
7541
+ { name: "value", label: "\uAC12", kind: "value" },
7542
+ {
7543
+ name: "path",
7544
+ label: "\uC548\uCABD \uC790\uB9AC",
7545
+ kind: "value",
7546
+ description: '\uC8FC\uBA74 \uD56D\uBAA9 \uC804\uCCB4\uAC00 \uC544\uB2C8\uB77C \uADF8 \uC790\uB9AC\uB9CC \uBC14\uAFBC\uB2E4. \uC870\uAC01 \uBC30\uC5F4\uC774\uACE0 \uAC12 \uCC38\uC870\uB97C \uC4F8 \uC218 \uC788\uB2E4 \u2014 ["limits", {"$item": true}, "count"].'
7547
+ }
7539
7548
  ]
7540
7549
  },
7541
7550
  {
@@ -7770,6 +7779,10 @@ function formatValue(value, depth = 0) {
7770
7779
  return ref.$item === true ? "{\uD589}" : `{\uD589.${ref.$item}}`;
7771
7780
  }
7772
7781
  if (kind === "index") return "{\uBC88\uD638}";
7782
+ if (kind === "event") {
7783
+ const ref = value;
7784
+ return ref.$event === true ? "{\uC774\uBCA4\uD2B8 \uAC12}" : `{\uC774\uBCA4\uD2B8 \uAC12.${ref.$event}}`;
7785
+ }
7773
7786
  if (kind === "calc") {
7774
7787
  const calc = asCalc(value);
7775
7788
  const meta = calcOpMeta(calc.op);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipco/sdui-editor",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "description": "SDUI 페이지 스펙 편집기 — 소비 프로젝트가 자기 라우트에 마운트하는 React 컴포넌트",
5
5
  "keywords": [
6
6
  "sdui",
@@ -58,14 +58,14 @@
58
58
  "codemirror": "^6.0.1"
59
59
  },
60
60
  "peerDependencies": {
61
- "@wipco/sdui": "^0.46.0",
61
+ "@wipco/sdui": "^0.47.0",
62
62
  "react": ">=18",
63
63
  "react-dom": ">=18"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/react": "^19.0.0",
67
67
  "@types/react-dom": "^19.0.0",
68
- "@wipco/sdui": "^0.46.0",
68
+ "@wipco/sdui": "^0.47.0",
69
69
  "tsup": "^8.5.0",
70
70
  "tsx": "^4.20.0",
71
71
  "typescript": "^5.7.0"