@team-monolith/cds 1.119.4 → 1.119.5

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.
@@ -17,9 +17,9 @@ export const ParagraphPlaceholderPlugin = ({ placeholder, }) => {
17
17
  const [editor] = useLexicalComposerContext();
18
18
  const paragraphRef = useRef(null);
19
19
  const theme = useTheme();
20
+ const { t } = useTranslation();
20
21
  const placeholderClassName = useMemo(() => getPlaceholderClassName(theme), [theme]);
21
22
  useEffect(() => {
22
- const { t } = useTranslation();
23
23
  const removeUpdateListener = editor.registerUpdateListener(({ editorState }) => {
24
24
  editorState.read(() => {
25
25
  // 기존에 있던 placeholder를 제거합니다.
@@ -56,6 +56,6 @@ export const ParagraphPlaceholderPlugin = ({ placeholder, }) => {
56
56
  return () => {
57
57
  removeUpdateListener();
58
58
  };
59
- }, [editor, placeholder, placeholderClassName]);
59
+ }, [editor, placeholder, placeholderClassName, t]);
60
60
  return null;
61
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.119.4",
3
+ "version": "1.119.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,