From 32817398065908b3035800a60c3dd7f3d26b431d Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Mon, 5 May 2025 15:17:05 -0700 Subject: [PATCH] pin all frontend npm packages --- reflex/components/base/error_boundary.py | 2 +- reflex/components/datadisplay/shiki_code_block.py | 4 ++-- reflex/components/moment/moment.py | 2 +- reflex/components/next/video.py | 2 +- reflex/components/radix/primitives/drawer.py | 2 +- reflex/components/suneditor/editor.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/reflex/components/base/error_boundary.py b/reflex/components/base/error_boundary.py index f659c8ad47b..327cac15e48 100644 --- a/reflex/components/base/error_boundary.py +++ b/reflex/components/base/error_boundary.py @@ -33,7 +33,7 @@ def on_error_spec( class ErrorBoundary(Component): """A React Error Boundary component that catches unhandled frontend exceptions.""" - library = "react-error-boundary" + library = "react-error-boundary@6.0.0" tag = "ErrorBoundary" # Fired when the boundary catches an error. diff --git a/reflex/components/datadisplay/shiki_code_block.py b/reflex/components/datadisplay/shiki_code_block.py index de82f0e4730..816f5fa68a4 100644 --- a/reflex/components/datadisplay/shiki_code_block.py +++ b/reflex/components/datadisplay/shiki_code_block.py @@ -421,7 +421,7 @@ class ShikiBaseTransformers(Base): class ShikiJsTransformer(ShikiBaseTransformers): """A Wrapped shikijs transformer.""" - library: str = "@shikijs/transformers" + library: str = "@shikijs/transformers@3.3.0" fns: list[FunctionStringVar] = [ FunctionStringVar.create(fn) for fn in SHIKIJS_TRANSFORMER_FNS ] @@ -538,7 +538,7 @@ class ShikiCodeBlock(Component, MarkdownComponentMap): alias = "ShikiCode" - lib_dependencies: list[str] = ["shiki"] + lib_dependencies: list[str] = ["shiki@3.3.0"] # The language to use. language: Var[LiteralCodeLanguage] = Var.create("python") diff --git a/reflex/components/moment/moment.py b/reflex/components/moment/moment.py index 79f0f73ddf5..86eeab39ddf 100644 --- a/reflex/components/moment/moment.py +++ b/reflex/components/moment/moment.py @@ -29,7 +29,7 @@ class Moment(NoSSRComponent): tag: str | None = "Moment" is_default = True - library: str | None = "react-moment" + library: str | None = "react-moment@1.1.3" lib_dependencies: list[str] = ["moment"] # How often the date update (how often time update / 0 to disable). diff --git a/reflex/components/next/video.py b/reflex/components/next/video.py index 567ab8da9c6..4d4a04e632d 100644 --- a/reflex/components/next/video.py +++ b/reflex/components/next/video.py @@ -10,7 +10,7 @@ class Video(NextComponent): """A video component from NextJS.""" tag = "Video" - library = "next-video" + library = "next-video@2.2.0" is_default = True # the URL src: Var[str] diff --git a/reflex/components/radix/primitives/drawer.py b/reflex/components/radix/primitives/drawer.py index 0b60549d40c..ab89bba4cfa 100644 --- a/reflex/components/radix/primitives/drawer.py +++ b/reflex/components/radix/primitives/drawer.py @@ -19,7 +19,7 @@ class DrawerComponent(RadixPrimitiveComponent): """A Drawer component.""" - library = "vaul" + library = "vaul@1.1.2" lib_dependencies: list[str] = ["@radix-ui/react-dialog@^1.1.6"] diff --git a/reflex/components/suneditor/editor.py b/reflex/components/suneditor/editor.py index 98f2f9412ed..5564f32edcd 100644 --- a/reflex/components/suneditor/editor.py +++ b/reflex/components/suneditor/editor.py @@ -103,7 +103,7 @@ class Editor(NoSSRComponent): refer to the library docs for a complete list. """ - library = "suneditor-react" + library = "suneditor-react@3.6.1" tag = "SunEditor"