@team-monolith/cds 1.30.3 → 1.30.4

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.
@@ -12,7 +12,7 @@ import Button from "../../../../../components/Button";
12
12
  import { FormSelection } from "./FormSelection";
13
13
  import Tooltip from "../../../../../components/Tooltip";
14
14
  import { useState } from "react";
15
- import _ from "lodash";
15
+ import { uid } from "uid";
16
16
  export default function SettingForm(props) {
17
17
  const { selections, nodeKey, onClose } = props;
18
18
  const [editor] = useLexicalComposerContext();
@@ -63,15 +63,13 @@ export default function SettingForm(props) {
63
63
  remove(index);
64
64
  }
65
65
  : undefined }, field.uid)))] }), _jsx(Button, { color: "grey", size: "small", startIcon: _jsx(AddFillIcon, {}), label: "\uC120\uD0DD\uC9C0 \uCD94\uAC00", onClick: () => {
66
- var _a, _b;
67
66
  append({
68
67
  isAnswer: false,
69
68
  show: {
70
69
  image: null,
71
70
  text: "",
72
71
  },
73
- // 중복되는 value 방지하기 위해 존재하는 value 중 가장 큰 값에 1을 더한 값을 할당합니다.
74
- value: (parseInt((_b = (_a = _.maxBy(fields, "value")) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "0") + 1).toString(),
72
+ value: uid(),
75
73
  });
76
74
  } }), hasMultipleAnswers && (_jsxs(Alert, { children: [_jsx(AlarmWarningFillIcon, { css: css `
77
75
  width: 14px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.30.3",
3
+ "version": "1.30.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,