@wipco/sdui 0.9.0 → 0.9.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2185,6 +2185,8 @@ function SduiNodeRenderer({
2185
2185
  props[name] = (arg) => actions.forEach(
2186
2186
  (a) => dispatch(resolveValue(a, scope), arg)
2187
2187
  );
2188
+ } else if (name === "rowClick" && (isAction(raw) || isActionList(raw))) {
2189
+ props[name] = raw;
2188
2190
  } else {
2189
2191
  let resolved = resolveValue(raw, scope);
2190
2192
  if (resolved === null) {
@@ -2499,7 +2501,11 @@ function SduiRenderer({
2499
2501
  const dispatchRef = useRef(() => {
2500
2502
  });
2501
2503
  const dispatch = useCallback(
2502
- (action, arg) => {
2504
+ (rawAction, arg) => {
2505
+ const action = resolveValue(
2506
+ rawAction,
2507
+ EMPTY_SCOPE
2508
+ );
2503
2509
  switch (action.action) {
2504
2510
  case "navigate":
2505
2511
  if (!isSafeNavigationTarget(action.to)) {
@@ -2668,7 +2674,7 @@ function SduiRenderer({
2668
2674
  break;
2669
2675
  }
2670
2676
  },
2671
- [pushToast, onCustomAction, customValidators, setEntries]
2677
+ [pushToast, onCustomAction, customValidators, setEntries, resolveValue]
2672
2678
  );
2673
2679
  dispatchRef.current = dispatch;
2674
2680
  const engine = useMemo(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipco/sdui",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "WIPCO 서버 주도 UI(SDUI) 렌더러 — JSON 페이지 스펙을 React 컴포넌트로 렌더링",
5
5
  "keywords": [
6
6
  "sdui",