Skip to content

Commit a4fac5d

Browse files
authored
deprecate suneditor (#5407)
* deprecate suneditor * precommit
1 parent 9e5a410 commit a4fac5d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,5 @@
121121
"reflex/components/recharts/polar.pyi": "77ca6e0d992f5d5c0479de73db4f71ba",
122122
"reflex/components/recharts/recharts.pyi": "bbaec232c2da035b31b5d0e3888f4801",
123123
"reflex/components/sonner/toast.pyi": "6dc6d5d05d9a8d7d364c0326fb2e6503",
124-
"reflex/components/suneditor/editor.pyi": "0a6dcab61cc2d750488601e3808080d9"
124+
"reflex/components/suneditor/editor.pyi": "267b698bb0dd11df73f39980274858b4"
125125
}

reflex/components/suneditor/editor.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from reflex.base import Base
99
from reflex.components.component import Component, NoSSRComponent
1010
from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
11+
from reflex.utils import console
1112
from reflex.utils.format import to_camel_case
1213
from reflex.utils.imports import ImportDict, ImportVar
1314
from reflex.vars.base import Var
@@ -257,6 +258,13 @@ def create(
257258
Raises:
258259
ValueError: If set_options is a state Var.
259260
"""
261+
console.deprecate(
262+
"editor",
263+
"The `editor` component is deprecated.",
264+
deprecation_version="0.7.15",
265+
removal_version="0.8.0",
266+
dedupe=True,
267+
)
260268
if set_options is not None:
261269
if isinstance(set_options, Var):
262270
msg = "EditorOptions cannot be a state Var"

0 commit comments

Comments
 (0)