feat: add editor placeholder

This commit is contained in:
AykutSarac 2024-12-09 23:16:35 +03:00
parent 61cb1b1da7
commit f25750d994
No known key found for this signature in database
2 changed files with 10 additions and 9 deletions

18
pnpm-lock.yaml generated
View File

@ -22,7 +22,7 @@ importers:
version: 7.11.2(react@18.3.1)
'@monaco-editor/react':
specifier: ^4.6.0
version: 4.6.0(monaco-editor@0.50.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
version: 4.6.0(monaco-editor@0.52.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@sentry/nextjs':
specifier: ^7.118.0
version: 7.118.0(next@14.2.10(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)
@ -1975,8 +1975,8 @@ packages:
resolution: {integrity: sha512-2emPTb1reeLLYwHxyVx993iYyCHEiRRO+y8NFXFPL5kl5q14sgTK76cXyEKkeKCHeRw35SfdkUJ10Q1KfHuiIQ==}
engines: {node: '>= 0.4'}
monaco-editor@0.50.0:
resolution: {integrity: sha512-8CclLCmrRRh+sul7C08BmPBP3P8wVWfBHomsTcndxg5NRCEPfu/mc2AGU8k37ajjDVXcXFc12ORAMUkmk+lkFA==}
monaco-editor@0.52.2:
resolution: {integrity: sha512-GEQWEZmfkOGLdd3XK8ryrfWz3AIP8YymVXiPHEdewrUq7mh0qrKrfHLNCXcbB6sTnMLnOZ3ztSiKcciFUkIJwQ==}
mousetrap@1.6.5:
resolution: {integrity: sha512-QNo4kEepaIBwiT8CDhP98umTetp+JNfQYBWvC1pc6/OAibuXtRcxZ58Qz8skvEHYvURne/7R8T5VoOI7rDsEUA==}
@ -3076,15 +3076,15 @@ snapshots:
dependencies:
react: 18.3.1
'@monaco-editor/loader@1.4.0(monaco-editor@0.50.0)':
'@monaco-editor/loader@1.4.0(monaco-editor@0.52.2)':
dependencies:
monaco-editor: 0.50.0
monaco-editor: 0.52.2
state-local: 1.0.7
'@monaco-editor/react@4.6.0(monaco-editor@0.50.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
'@monaco-editor/react@4.6.0(monaco-editor@0.52.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
dependencies:
'@monaco-editor/loader': 1.4.0(monaco-editor@0.50.0)
monaco-editor: 0.50.0
'@monaco-editor/loader': 1.4.0(monaco-editor@0.52.2)
monaco-editor: 0.52.2
react: 18.3.1
react-dom: 18.3.1(react@18.3.1)
@ -4847,7 +4847,7 @@ snapshots:
hasown: 2.0.2
isarray: 2.0.5
monaco-editor@0.50.0: {}
monaco-editor@0.52.2: {}
mousetrap@1.6.5: {}

View File

@ -18,6 +18,7 @@ const editorOptions: EditorProps["options"] = {
minimap: { enabled: false },
stickyScroll: { enabled: false },
scrollBeyondLastLine: false,
placeholder: "Start typing...",
};
const TextEditor = () => {