@wipco/sdui 1.4.1 → 1.4.2

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 +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2227,6 +2227,9 @@ function isAction(v) {
2227
2227
  function isActionList(v) {
2228
2228
  return Array.isArray(v) && v.length > 0 && v.every(isAction);
2229
2229
  }
2230
+ function deferRunEntry(key, v) {
2231
+ return key === "run" && (isAction(v) || isActionList(v));
2232
+ }
2230
2233
  function isActionEntryList(v) {
2231
2234
  return Array.isArray(v) && v.length > 0 && v.every((x) => isAction(x) || isArgRef(x));
2232
2235
  }
@@ -2708,7 +2711,7 @@ function SduiRenderer({
2708
2711
  if (isPlainObject(value)) {
2709
2712
  const out = {};
2710
2713
  for (const [k, v] of Object.entries(value)) {
2711
- out[k] = deferChainEntry(value, k) ? v : resolveValue(v, scope);
2714
+ out[k] = deferChainEntry(value, k) || deferRunEntry(k, v) ? v : resolveValue(v, scope);
2712
2715
  }
2713
2716
  return out;
2714
2717
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipco/sdui",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "WIPCO 서버 주도 UI(SDUI) 렌더러 — JSON 페이지 스펙을 React 컴포넌트로 렌더링",
5
5
  "keywords": [
6
6
  "sdui",