Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

feat(mobile): Add highlights support for the mobile app (#2494)

Mohamed Bassem459ee50e33a2
diff --git a/apps/mobile/components/bookmarks/BookmarkHtmlHighlighterDom.tsx b/apps/mobile/components/bookmarks/BookmarkHtmlHighlighterDom.tsx
new file mode 100644
index 00000000..adf59911
--- /dev/null
+++ b/apps/mobile/components/bookmarks/BookmarkHtmlHighlighterDom.tsx
@@ -0,0 +1,39 @@
+"use dom";
+
+import "@/globals.css";
+
+import type { Highlight } from "@karakeep/shared-react/components/BookmarkHtmlHighlighter";
+import BookmarkHTMLHighlighter from "@karakeep/shared-react/components/BookmarkHtmlHighlighter";
+
+export default function BookmarkHtmlHighlighterDom({
+ htmlContent,
+ contentStyle,
+ highlights,
+ readOnly,
+ onHighlight,
+ onUpdateHighlight,
+ onDeleteHighlight,
+}: {
+ htmlContent: string;
+ contentStyle?: React.CSSProperties;
+ highlights?: Highlight[];
+ readOnly?: boolean;
+ onHighlight?: (highlight: Highlight) => void;
+ onUpdateHighlight?: (highlight: Highlight) => void;
+ onDeleteHighlight?: (highlight: Highlight) => void;
+ dom?: import("expo/dom").DOMProps;
+}) {
+ return (
+ <div style={{ maxWidth: "100vw", overflowX: "hidden" }}>
+ <BookmarkHTMLHighlighter
+ htmlContent={htmlContent}
+ highlights={highlights}
+ readOnly={readOnly}
+ onHighlight={onHighlight}
+ onUpdateHighlight={onUpdateHighlight}
+ onDeleteHighlight={onDeleteHighlight}
+ style={contentStyle}
+ />
+ </div>
+ );
+}
diff --git a/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx b/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
index 57e00c24..32c21a79 100644
--- a/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
+++ b/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
@@ -9,12 +9,18 @@ import { useReaderSettings, WEBVIEW_FONT_FAMILIES } from "@/lib/readerSettings";
import { useColorScheme } from "@/lib/useColorScheme";
import { useQuery } from "@tanstack/react-query";
+import {
+ useCreateHighlight,
+ useDeleteHighlight,
+ useUpdateHighlight,
+} from "@karakeep/shared-react/hooks/highlights";
import { useTRPC } from "@karakeep/shared-react/trpc";
import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks";
import FullPageError from "../FullPageError";
import FullPageSpinner from "../ui/FullPageSpinner";
import BookmarkAssetImage from "./BookmarkAssetImage";
+import BookmarkHtmlHighlighterDom from "./BookmarkHtmlHighlighterDom";
import { PDFViewer } from "./PDFViewer";
export function BookmarkLinkBrowserPreview({
@@ -80,6 +86,16 @@ export function BookmarkLinkReaderPreview({
}),
);
+ const { data: highlights } = useQuery(
+ api.highlights.getForBookmark.queryOptions({
+ bookmarkId: bookmark.id,
+ }),
+ );
+
+ const { mutate: createHighlight } = useCreateHighlight();
+ const { mutate: updateHighlight } = useUpdateHighlight();
+ const { mutate: deleteHighlight } = useDeleteHighlight();
+
if (isLoading) {
return <FullPageSpinner />;
}
@@ -92,74 +108,44 @@ export function BookmarkLinkReaderPreview({
throw new Error("Wrong content type rendered");
}
- const fontFamily = WEBVIEW_FONT_FAMILIES[readerSettings.fontFamily];
- const fontSize = readerSettings.fontSize;
- const lineHeight = readerSettings.lineHeight;
+ const contentStyle: React.CSSProperties = {
+ fontFamily: WEBVIEW_FONT_FAMILIES[readerSettings.fontFamily],
+ fontSize: `${readerSettings.fontSize}px`,
+ lineHeight: String(readerSettings.lineHeight),
+ color: isDark ? "#e5e7eb" : "#374151",
+ padding: "16px",
+ background: isDark ? "#000000" : "#ffffff",
+ };
return (
<View className="flex-1 bg-background">
- <WebView
- originWhitelist={["*"]}
- source={{
- html: `
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <style>
- body {
- font-family: ${fontFamily};
- font-size: ${fontSize}px;
- line-height: ${lineHeight};
- color: ${isDark ? "#e5e7eb" : "#374151"};
- margin: 0;
- padding: 16px;
- background: ${isDark ? "#000000" : "#ffffff"};
- }
- p { margin: 0 0 1em 0; }
- h1, h2, h3, h4, h5, h6 { margin: 1.5em 0 0.5em 0; line-height: 1.2; }
- img { max-width: 100%; height: auto; border-radius: 8px; }
- a { color: #3b82f6; text-decoration: none; }
- a:hover { text-decoration: underline; }
- blockquote {
- border-left: 4px solid ${isDark ? "#374151" : "#e5e7eb"};
- margin: 1em 0;
- padding-left: 1em;
- color: ${isDark ? "#9ca3af" : "#6b7280"};
- }
- pre, code {
- font-family: ui-monospace, Menlo, Monaco, 'Courier New', monospace;
- background: ${isDark ? "#1f2937" : "#f3f4f6"};
- }
- pre {
- padding: 1em;
- border-radius: 6px;
- overflow-x: auto;
- }
- code {
- padding: 0.2em 0.4em;
- border-radius: 3px;
- font-size: 0.9em;
- }
- pre code {
- padding: 0;
- background: none;
- }
- </style>
- </head>
- <body>
- ${bookmarkWithContent.content.htmlContent}
- </body>
- </html>
- `,
- }}
- style={{
- flex: 1,
- backgroundColor: isDark ? "#000000" : "#ffffff",
- }}
- showsVerticalScrollIndicator={false}
- showsHorizontalScrollIndicator={false}
- decelerationRate={0.998}
+ <BookmarkHtmlHighlighterDom
+ htmlContent={bookmarkWithContent.content.htmlContent ?? ""}
+ contentStyle={contentStyle}
+ highlights={highlights?.highlights ?? []}
+ onHighlight={(h) =>
+ createHighlight({
+ startOffset: h.startOffset,
+ endOffset: h.endOffset,
+ color: h.color,
+ bookmarkId: bookmark.id,
+ text: h.text,
+ note: h.note ?? null,
+ })
+ }
+ onUpdateHighlight={(h) =>
+ updateHighlight({
+ highlightId: h.id,
+ color: h.color,
+ note: h.note,
+ })
+ }
+ onDeleteHighlight={(h) =>
+ deleteHighlight({
+ highlightId: h.id,
+ })
+ }
+ dom={{ scrollEnabled: true }}
/>
</View>
);
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 7f85a2f7..e5708884 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -52,6 +52,7 @@
"lucide-react-native": "^0.513.0",
"nativewind": "^4.2.1",
"react": "^19.2.1",
+ "react-dom": "^19.2.1",
"react-native": "0.81.5",
"react-native-awesome-slider": "^2.5.3",
"react-native-blob-util": "^0.21.2",
@@ -65,6 +66,7 @@
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-svg": "15.12.1",
+ "react-native-web": "^0.21.0",
"react-native-webview": "13.15.0",
"react-native-worklets": "0.5.1",
"sonner-native": "^0.22.2",
diff --git a/apps/mobile/tailwind.config.js b/apps/mobile/tailwind.config.js
index ee6214f0..7471b776 100644
--- a/apps/mobile/tailwind.config.js
+++ b/apps/mobile/tailwind.config.js
@@ -3,7 +3,11 @@ const { hairlineWidth } = require("nativewind/theme");
/** @type {import('tailwindcss').Config} */
module.exports = {
// NOTE: Update this to include the paths to all of your component files.
- content: ["./app/**/*.{js,jsx,ts,tsx}", "./components/**/*.{js,jsx,ts,tsx}"],
+ content: [
+ "./app/**/*.{js,jsx,ts,tsx}",
+ "./components/**/*.{js,jsx,ts,tsx}",
+ "../../packages/shared-react/**/*.{js,jsx,ts,tsx}",
+ ],
presets: [require("nativewind/preset")],
theme: {
extend: {
@@ -47,7 +51,7 @@ module.exports = {
},
},
},
- plugins: [],
+ plugins: [require("@tailwindcss/typography")],
};
function withOpacity(variableName) {
diff --git a/apps/web/app/reader/[bookmarkId]/page.tsx b/apps/web/app/reader/[bookmarkId]/page.tsx
index 0ba72016..ac64c9af 100644
--- a/apps/web/app/reader/[bookmarkId]/page.tsx
+++ b/apps/web/app/reader/[bookmarkId]/page.tsx
@@ -128,7 +128,6 @@ export default function ReaderViewPage() {
<Suspense fallback={<FullPageSpinner />}>
<div className="overflow-x-hidden">
<ReaderView
- className="prose prose-neutral max-w-none break-words dark:prose-invert [&_code]:break-all [&_img]:h-auto [&_img]:max-w-full [&_pre]:overflow-x-auto [&_table]:block [&_table]:overflow-x-auto"
style={{
fontFamily: READER_FONT_FAMILIES[settings.fontFamily],
fontSize: `${settings.fontSize}px`,
diff --git a/apps/web/components/dashboard/preview/LinkContentSection.tsx b/apps/web/components/dashboard/preview/LinkContentSection.tsx
index d6e2b61b..df1445a3 100644
--- a/apps/web/components/dashboard/preview/LinkContentSection.tsx
+++ b/apps/web/components/dashboard/preview/LinkContentSection.tsx
@@ -149,7 +149,7 @@ export default function LinkContentSection({
content = (
<div className="h-full w-full overflow-y-auto overflow-x-hidden px-3 sm:px-4">
<ReaderView
- className="prose prose-neutral mx-auto max-w-none break-words dark:prose-invert [&_code]:break-all [&_img]:h-auto [&_img]:max-w-full [&_pre]:overflow-x-auto [&_table]:block [&_table]:overflow-x-auto"
+ className="mx-auto"
style={{
fontFamily: READER_FONT_FAMILIES[settings.fontFamily],
fontSize: `${settings.fontSize}px`,
diff --git a/apps/web/components/dashboard/preview/ReaderView.tsx b/apps/web/components/dashboard/preview/ReaderView.tsx
index 76070534..9adac916 100644
--- a/apps/web/components/dashboard/preview/ReaderView.tsx
+++ b/apps/web/components/dashboard/preview/ReaderView.tsx
@@ -4,6 +4,7 @@ import { useTranslation } from "@/lib/i18n/client";
import { useQuery } from "@tanstack/react-query";
import { FileX } from "lucide-react";
+import BookmarkHTMLHighlighter from "@karakeep/shared-react/components/BookmarkHtmlHighlighter";
import {
useCreateHighlight,
useDeleteHighlight,
@@ -12,8 +13,6 @@ import {
import { useTRPC } from "@karakeep/shared-react/trpc";
import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
-import BookmarkHTMLHighlighter from "./BookmarkHtmlHighlighter";
-
export default function ReaderView({
bookmarkId,
className,
diff --git a/apps/web/components/dashboard/preview/highlights.ts b/apps/web/components/dashboard/preview/highlights.ts
index e871303e..a9b4d315 100644
--- a/apps/web/components/dashboard/preview/highlights.ts
+++ b/apps/web/components/dashboard/preview/highlights.ts
@@ -1,15 +1 @@
-// Tailwind requires the color to be complete strings (can't be dynamic), so we have to list all the strings here manually.
-export const HIGHLIGHT_COLOR_MAP = {
- bg: {
- red: "bg-red-200",
- green: "bg-green-200",
- blue: "bg-blue-200",
- yellow: "bg-yellow-200",
- } as const,
- ["border-l"]: {
- red: "border-l-red-200",
- green: "border-l-green-200",
- blue: "border-l-blue-200",
- yellow: "border-l-yellow-200",
- } as const,
-};
+export { HIGHLIGHT_COLOR_MAP } from "@karakeep/shared-react/components/highlights";
diff --git a/apps/web/components/ui/button.tsx b/apps/web/components/ui/button.tsx
index 6857d80d..05d0231b 100644
--- a/apps/web/components/ui/button.tsx
+++ b/apps/web/components/ui/button.tsx
@@ -1,8 +1,7 @@
-import type { VariantProps } from "class-variance-authority";
import * as React from "react";
-import { cn } from "@/lib/utils";
-import { Slot } from "@radix-ui/react-slot";
-import { cva } from "class-variance-authority";
+
+import type { ButtonProps } from "@karakeep/shared-react/components/ui/button";
+import { Button } from "@karakeep/shared-react/components/ui/button";
import {
Tooltip,
@@ -11,60 +10,11 @@ import {
TooltipTrigger,
} from "./tooltip";
-const buttonVariants = cva(
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
- {
- variants: {
- variant: {
- none: "",
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
- destructive:
- "bg-destructive text-destructive-foreground hover:bg-destructive/90",
- destructiveOutline:
- "border border-destructive bg-transparent text-destructive hover:bg-destructive/90 hover:text-destructive-foreground",
- outline:
- "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
- secondary:
- "bg-secondary text-secondary-foreground hover:bg-secondary/80",
- ghost:
- "hover:bg-accent hover:text-accent-foreground focus-visible:ring-0 focus-visible:ring-offset-0",
- border: "border border-input hover:bg-accent",
- link: "text-primary underline-offset-4 hover:underline",
- },
- size: {
- none: "",
- default: "h-10 px-4 py-2",
- sm: "h-9 rounded-md px-3",
- lg: "h-11 rounded-md px-8",
- icon: "size-10",
- },
- },
- defaultVariants: {
- variant: "default",
- size: "default",
- },
- },
-);
-
-export interface ButtonProps
- extends React.ButtonHTMLAttributes<HTMLButtonElement>,
- VariantProps<typeof buttonVariants> {
- asChild?: boolean;
-}
-
-const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
- ({ className, variant, size, asChild = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "button";
- return (
- <Comp
- className={cn(buttonVariants({ variant, size, className }))}
- ref={ref}
- {...props}
- />
- );
- },
-);
-Button.displayName = "Button";
+export {
+ Button,
+ buttonVariants,
+ type ButtonProps,
+} from "@karakeep/shared-react/components/ui/button";
const ButtonWithTooltip = React.forwardRef<
HTMLButtonElement,
@@ -83,4 +33,4 @@ const ButtonWithTooltip = React.forwardRef<
});
ButtonWithTooltip.displayName = "ButtonWithTooltip";
-export { Button, buttonVariants, ButtonWithTooltip };
+export { ButtonWithTooltip };
diff --git a/apps/web/components/ui/popover.tsx b/apps/web/components/ui/popover.tsx
index 30645cc8..91b1863b 100644
--- a/apps/web/components/ui/popover.tsx
+++ b/apps/web/components/ui/popover.tsx
@@ -1,30 +1,5 @@
-"use client";
-
-import * as React from "react";
-import { cn } from "@/lib/utils";
-import * as PopoverPrimitive from "@radix-ui/react-popover";
-
-const Popover = PopoverPrimitive.Root;
-
-const PopoverTrigger = PopoverPrimitive.Trigger;
-
-const PopoverContent = React.forwardRef<
- React.ElementRef<typeof PopoverPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
->(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
- <PopoverPrimitive.Portal>
- <PopoverPrimitive.Content
- ref={ref}
- align={align}
- sideOffset={sideOffset}
- className={cn(
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
- className,
- )}
- {...props}
- />
- </PopoverPrimitive.Portal>
-));
-PopoverContent.displayName = PopoverPrimitive.Content.displayName;
-
-export { Popover, PopoverTrigger, PopoverContent };
+export {
+ Popover,
+ PopoverTrigger,
+ PopoverContent,
+} from "@karakeep/shared-react/components/ui/popover";
diff --git a/apps/web/components/ui/textarea.tsx b/apps/web/components/ui/textarea.tsx
index 98d704ae..002907b2 100644
--- a/apps/web/components/ui/textarea.tsx
+++ b/apps/web/components/ui/textarea.tsx
@@ -1,22 +1,4 @@
-import * as React from "react";
-import { cn } from "@/lib/utils";
-
-export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
-
-const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
- ({ className, ...props }, ref) => {
- return (
- <textarea
- className={cn(
- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
- className,
- )}
- ref={ref}
- {...props}
- />
- );
- },
-);
-Textarea.displayName = "Textarea";
-
-export { Textarea };
+export {
+ Textarea,
+ type TextareaProps,
+} from "@karakeep/shared-react/components/ui/textarea";
diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.ts
index 44bb114c..a3e7b259 100644
--- a/apps/web/tailwind.config.ts
+++ b/apps/web/tailwind.config.ts
@@ -3,7 +3,10 @@ import type { Config } from "tailwindcss";
import web from "@karakeep/tailwind-config/web";
const config = {
- content: web.content,
+ content: [
+ ...web.content,
+ "../../packages/shared-react/components/**/*.{ts,tsx}",
+ ],
presets: [web],
} satisfies Config;
diff --git a/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx b/packages/shared-react/components/BookmarkHtmlHighlighter.tsx
similarity index 96%
rename from apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx
rename to packages/shared-react/components/BookmarkHtmlHighlighter.tsx
index 63098ac0..971c6cdf 100644
--- a/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx
+++ b/packages/shared-react/components/BookmarkHtmlHighlighter.tsx
@@ -1,8 +1,4 @@
import React, { useEffect, useRef, useState } from "react";
-import { ActionButton } from "@/components/ui/action-button";
-import { Button } from "@/components/ui/button";
-import { Popover, PopoverContent } from "@/components/ui/popover";
-import { Textarea } from "@/components/ui/textarea";
import { cn } from "@/lib/utils";
import { PopoverAnchor } from "@radix-ui/react-popover";
import { Check, Trash2 } from "lucide-react";
@@ -13,6 +9,9 @@ import {
} from "@karakeep/shared/types/highlights";
import { HIGHLIGHT_COLOR_MAP } from "./highlights";
+import { Button } from "./ui/button";
+import { Popover, PopoverContent } from "./ui/popover";
+import { Textarea } from "./ui/textarea";
interface HighlightFormProps {
position: { x: number; y: number } | null;
@@ -106,15 +105,14 @@ const HighlightForm: React.FC<HighlightFormProps> = ({
</Button>
</div>
{selectedHighlight && onDelete && (
- <ActionButton
- loading={false}
+ <Button
size="sm"
onClick={onDelete}
variant="ghost"
title="Delete highlight"
>
<Trash2 className="size-4 text-destructive" />
- </ActionButton>
+ </Button>
)}
</div>
</PopoverContent>
@@ -395,7 +393,10 @@ function BookmarkHTMLHighlighter({
ref={contentRef}
dangerouslySetInnerHTML={{ __html: htmlContent }}
onPointerUp={handlePointerUp}
- className={className}
+ className={cn(
+ "prose prose-neutral max-w-none break-words dark:prose-invert [&_code]:break-all [&_img]:h-auto [&_img]:max-w-full [&_pre]:overflow-x-auto [&_table]:block [&_table]:overflow-x-auto",
+ className,
+ )}
style={style}
/>
<HighlightForm
diff --git a/packages/shared-react/components/highlights.ts b/packages/shared-react/components/highlights.ts
new file mode 100644
index 00000000..e871303e
--- /dev/null
+++ b/packages/shared-react/components/highlights.ts
@@ -0,0 +1,15 @@
+// Tailwind requires the color to be complete strings (can't be dynamic), so we have to list all the strings here manually.
+export const HIGHLIGHT_COLOR_MAP = {
+ bg: {
+ red: "bg-red-200",
+ green: "bg-green-200",
+ blue: "bg-blue-200",
+ yellow: "bg-yellow-200",
+ } as const,
+ ["border-l"]: {
+ red: "border-l-red-200",
+ green: "border-l-green-200",
+ blue: "border-l-blue-200",
+ yellow: "border-l-yellow-200",
+ } as const,
+};
diff --git a/packages/shared-react/components/ui/button.tsx b/packages/shared-react/components/ui/button.tsx
new file mode 100644
index 00000000..5bc73bc3
--- /dev/null
+++ b/packages/shared-react/components/ui/button.tsx
@@ -0,0 +1,62 @@
+import type { VariantProps } from "class-variance-authority";
+import * as React from "react";
+import { cn } from "@/lib/utils";
+import { Slot } from "@radix-ui/react-slot";
+import { cva } from "class-variance-authority";
+
+const buttonVariants = cva(
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
+ {
+ variants: {
+ variant: {
+ none: "",
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
+ destructive:
+ "bg-destructive text-destructive-foreground hover:bg-destructive/90",
+ destructiveOutline:
+ "border border-destructive bg-transparent text-destructive hover:bg-destructive/90 hover:text-destructive-foreground",
+ outline:
+ "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
+ secondary:
+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",
+ ghost:
+ "hover:bg-accent hover:text-accent-foreground focus-visible:ring-0 focus-visible:ring-offset-0",
+ border: "border border-input hover:bg-accent",
+ link: "text-primary underline-offset-4 hover:underline",
+ },
+ size: {
+ none: "",
+ default: "h-10 px-4 py-2",
+ sm: "h-9 rounded-md px-3",
+ lg: "h-11 rounded-md px-8",
+ icon: "size-10",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ },
+);
+
+export interface ButtonProps
+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,
+ VariantProps<typeof buttonVariants> {
+ asChild?: boolean;
+}
+
+const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
+ const Comp = asChild ? Slot : "button";
+ return (
+ <Comp
+ className={cn(buttonVariants({ variant, size, className }))}
+ ref={ref}
+ {...props}
+ />
+ );
+ },
+);
+Button.displayName = "Button";
+
+export { Button, buttonVariants };
diff --git a/packages/shared-react/components/ui/popover.tsx b/packages/shared-react/components/ui/popover.tsx
new file mode 100644
index 00000000..30645cc8
--- /dev/null
+++ b/packages/shared-react/components/ui/popover.tsx
@@ -0,0 +1,30 @@
+"use client";
+
+import * as React from "react";
+import { cn } from "@/lib/utils";
+import * as PopoverPrimitive from "@radix-ui/react-popover";
+
+const Popover = PopoverPrimitive.Root;
+
+const PopoverTrigger = PopoverPrimitive.Trigger;
+
+const PopoverContent = React.forwardRef<
+ React.ElementRef<typeof PopoverPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
+>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
+ <PopoverPrimitive.Portal>
+ <PopoverPrimitive.Content
+ ref={ref}
+ align={align}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+ </PopoverPrimitive.Portal>
+));
+PopoverContent.displayName = PopoverPrimitive.Content.displayName;
+
+export { Popover, PopoverTrigger, PopoverContent };
diff --git a/packages/shared-react/components/ui/textarea.tsx b/packages/shared-react/components/ui/textarea.tsx
new file mode 100644
index 00000000..98d704ae
--- /dev/null
+++ b/packages/shared-react/components/ui/textarea.tsx
@@ -0,0 +1,22 @@
+import * as React from "react";
+import { cn } from "@/lib/utils";
+
+export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
+
+const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
+ ({ className, ...props }, ref) => {
+ return (
+ <textarea
+ className={cn(
+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
+ className,
+ )}
+ ref={ref}
+ {...props}
+ />
+ );
+ },
+);
+Textarea.displayName = "Textarea";
+
+export { Textarea };
diff --git a/packages/shared-react/lib/utils.ts b/packages/shared-react/lib/utils.ts
new file mode 100644
index 00000000..88283f01
--- /dev/null
+++ b/packages/shared-react/lib/utils.ts
@@ -0,0 +1,7 @@
+import type { ClassValue } from "clsx";
+import { clsx } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs));
+}
diff --git a/packages/shared-react/package.json b/packages/shared-react/package.json
index ce29a24e..52d8d630 100644
--- a/packages/shared-react/package.json
+++ b/packages/shared-react/package.json
@@ -7,10 +7,16 @@
"dependencies": {
"@karakeep/shared": "workspace:^0.1.0",
"@karakeep/trpc": "workspace:^0.1.0",
+ "@radix-ui/react-popover": "^1.1.14",
+ "@radix-ui/react-slot": "^1.2.3",
"@tanstack/react-query": "5.90.2",
"@trpc/client": "^11.9.0",
"@trpc/tanstack-react-query": "^11.9.0",
- "superjson": "^2.2.1"
+ "class-variance-authority": "^0.7.0",
+ "clsx": "^2.1.0",
+ "lucide-react": "^0.501.0",
+ "superjson": "^2.2.1",
+ "tailwind-merge": "^2.2.1"
},
"devDependencies": {
"@karakeep/prettier-config": "workspace:^0.1.0",
@@ -18,9 +24,13 @@
},
"peerDependencies": {
"react": "^19.2.1",
+ "react-dom": "^19.2.1",
"react-native": "0.79.5"
},
"peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ },
"react-native": {
"optional": true
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 967209ad..57c11502 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -340,10 +340,10 @@ importers:
'@rn-primitives/hooks':
specifier: ^1.3.0
'@rn-primitives/slot':
specifier: ^1.2.0
'@shopify/flash-list':
specifier: 2.0.2
@@ -367,7 +367,7 @@ importers:
version: 1.0.10([email protected])
expo-checkbox:
specifier: ~5.0.8
expo-clipboard:
specifier: ~8.0.8
@@ -385,7 +385,7 @@ importers:
version: 15.0.8([email protected])
expo-image:
specifier: ~3.0.11
expo-image-picker:
specifier: ~17.0.10
version: 17.0.10([email protected])
@@ -397,7 +397,7 @@ importers:
expo-router:
specifier: ~6.0.21
+ version: 6.0.21(6v5g26y54i4hiwa5qnck7mpb5e)
expo-secure-store:
specifier: ~15.0.8
version: 15.0.8([email protected])
@@ -412,7 +412,7 @@ importers:
expo-system-ui:
specifier: ~6.0.9
expo-web-browser:
specifier: ~15.0.10
@@ -425,6 +425,9 @@ importers:
react:
specifier: ^19.2.1
version: 19.2.3
+ react-dom:
+ specifier: ^19.2.1
+ version: 19.2.3([email protected])
react-native:
specifier: 0.81.5
version: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
@@ -464,6 +467,9 @@ importers:
react-native-svg:
specifier: 15.12.1
+ react-native-web:
+ specifier: ^0.21.0
react-native-webview:
specifier: 13.15.0
@@ -1388,6 +1394,12 @@ importers:
'@karakeep/trpc':
specifier: workspace:^0.1.0
version: link:../trpc
+ '@radix-ui/react-popover':
+ specifier: ^1.1.14
+ '@radix-ui/react-slot':
+ specifier: ^1.2.3
+ version: 1.2.4(@types/[email protected])([email protected])
'@tanstack/react-query':
specifier: 5.90.2
version: 5.90.2([email protected])
@@ -1397,15 +1409,30 @@ importers:
'@trpc/tanstack-react-query':
specifier: ^11.9.0
+ class-variance-authority:
+ specifier: ^0.7.0
+ version: 0.7.0
+ clsx:
+ specifier: ^2.1.0
+ version: 2.1.1
+ lucide-react:
+ specifier: ^0.501.0
+ version: 0.501.0([email protected])
react:
specifier: ^19.2.1
version: 19.2.3
+ react-dom:
+ specifier: ^19.2.1
+ version: 19.2.3([email protected])
react-native:
specifier: 0.79.5
version: 0.79.5(@babel/[email protected])(@types/[email protected])([email protected])
superjson:
specifier: ^2.2.1
version: 2.2.1
+ tailwind-merge:
+ specifier: ^2.2.1
+ version: 2.2.1
devDependencies:
'@karakeep/prettier-config':
specifier: workspace:^0.1.0
@@ -5305,6 +5332,9 @@ packages:
'@react-native/[email protected]':
resolution: {integrity: sha512-Z1jQI2NpdFJCVgpY+8Dq/Bt3d+YUi1928Q+/CZm/oh66fzM0RUl54vvuXlPJKybH4pdCZey1eDTPaLHkMPNgWA==}
+ '@react-native/[email protected]':
+ resolution: {integrity: sha512-qoMMXddVKVhZ8PA1AbUCk83trpd6N+1nF2A6k1i6LsQObyS92fELuk8kU/lQs6M7BsMHwqyLCpQJ1uFgNvIQXg==}
+
'@react-native/[email protected]':
resolution: {integrity: sha512-nGXMNMclZgzLUxijQQ38Dm3IAEhgxuySAWQHnljFtfB0JdaMwpe0Ox9H7Tp2OgrEA+EMEv+Od9ElKlHwGKmmvQ==}
@@ -7739,6 +7769,9 @@ packages:
resolution: {integrity: sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==}
+
resolution: {integrity: sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==}
engines: {node: '>=4.8'}
@@ -7780,6 +7813,9 @@ packages:
peerDependencies:
postcss: ^8.4
+ resolution: {integrity: sha512-fJAcud6B3rRu+KHYk+Bwf+WFL2MDCJJ1XG9x137tJQ0xYxor7XziQtuGFbWNdqrvF4Tk26O3H73nfVqXt/fW1A==}
+
resolution: {integrity: sha512-CTJ+AEQJjq5NzLga5pE39qdiSV56F8ywCIsqNIRF0r7BDgWsN25aazToqAFg7ZrtA/U016xudB3ffgweORxX7g==}
engines: {node: '>= 12.13.0'}
@@ -9004,6 +9040,12 @@ packages:
resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==}
+ resolution: {integrity: sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==}
+
+ resolution: {integrity: sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==}
+
resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}
peerDependencies:
@@ -9676,6 +9718,9 @@ packages:
engines: {node: '>=18'}
hasBin: true
+ resolution: {integrity: sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw==}
+
resolution: {integrity: sha512-3ZlhNoF9yxnM8pa8bWp5120/Ob6t4lVl1l/tbLmkml/ei3ud8IWySCHt2lrY5xWRlSU5D9IV2sm5bEbGuTqwTw==}
@@ -9783,6 +9828,9 @@ packages:
resolution: {integrity: sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==}
+ resolution: {integrity: sha512-lhYo5qNTQp3EvSSp3sRvXMbVQTLrvGV6DycRMJ5dm2BLMiJ30wpXKdDdgX+GmJZ5uQMucwRKHamXSst3Sj/Giw==}
+
resolution: {integrity: sha512-+y6WywKZREw5rq7U2jvr2nmZpT7cbWbQQ0N/qfcseYnzHFz2cZz1Et52oY+XttYuYeTkI8Y+R2JNWj68MpQFSg==}
hasBin: true
@@ -12763,6 +12811,9 @@ packages:
resolution: {integrity: sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==}
+
resolution: {integrity: sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==}
@@ -13173,6 +13224,12 @@ packages:
react: '*'
react-native: '*'
+ resolution: {integrity: sha512-SO2t9/17zM4iEnFvlu2DA9jqNbzNhoUP+AItkoCOyFmDMOhUnBBznBDCYN92fGdfAkfQlWzPoez6+zLxFNsZEg==}
+ peerDependencies:
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+
resolution: {integrity: sha512-Vzjgy8mmxa/JO6l5KZrsTC7YemSdq+qB01diA0FqjUTaWGAGwuykpJ73MDj3+mzBSlaDxAEugHzTtkUQkQEQeQ==}
peerDependencies:
@@ -13848,6 +13905,9 @@ packages:
resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==}
+
resolution: {integrity: sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==}
@@ -14317,6 +14377,9 @@ packages:
peerDependencies:
postcss: ^8.4.31
+ resolution: {integrity: sha512-3ZUifmCDCQanjeej1f6kyl/BeP/Vae5EYkQ9iJfUm/QwZvlgnZzyflqAsAWYURdtea8Vkvswu2GrC57h3qffcA==}
+
resolution: {integrity: sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==}
@@ -14745,6 +14808,10 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ resolution: {integrity: sha512-LbBDqdIC5s8iROCUjMbW1f5dJQTEFB1+KO9ogbvlb3nm9n4YHa5p4KTvFPWvh2Hs8gZMBuiB1/8+pdfe/tDPug==}
+ hasBin: true
+
resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==}
@@ -18415,7 +18482,7 @@ snapshots:
'@mdx-js/react': 3.1.0(@types/[email protected])([email protected])
- clsx: 2.1.0
+ clsx: 2.1.1
copy-text-to-clipboard: 3.2.0
infima: 0.2.0-alpha.45
lodash: 4.17.21
@@ -18458,7 +18525,7 @@ snapshots:
'@types/history': 4.7.11
'@types/react': 19.2.5
'@types/react-router-config': 5.0.11
- clsx: 2.1.0
+ clsx: 2.1.1
parse-numeric-range: 1.3.0
prism-react-renderer: 2.4.1([email protected])
react: 19.2.3
@@ -18485,7 +18552,7 @@ snapshots:
algoliasearch: 5.27.0
algoliasearch-helper: 3.25.0([email protected])
- clsx: 2.1.0
+ clsx: 2.1.1
eta: 2.2.0
fs-extra: 11.3.0
lodash: 4.17.21
@@ -18763,7 +18830,7 @@ snapshots:
dependencies:
- '@babel/runtime': 7.27.6
+ '@babel/runtime': 7.28.4
'@emotion/babel-plugin': 11.13.5
'@emotion/cache': 11.14.0
'@emotion/serialize': 1.3.3
@@ -19020,7 +19087,7 @@ snapshots:
wrap-ansi: 7.0.0
ws: 8.18.3
optionalDependencies:
+ expo-router: 6.0.21(6v5g26y54i4hiwa5qnck7mpb5e)
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
transitivePeerDependencies:
- bufferutil
@@ -20344,6 +20411,15 @@ snapshots:
'@types/react': 19.1.8
'@types/react-dom': 19.1.6(@types/[email protected])
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.5
+ '@types/react-dom': 19.1.6(@types/[email protected])
+
dependencies:
'@radix-ui/react-context': 1.1.3(@types/[email protected])([email protected])
@@ -20630,6 +20706,29 @@ snapshots:
'@types/react': 19.1.8
'@types/react-dom': 19.1.6(@types/[email protected])
+ dependencies:
+ '@radix-ui/primitive': 1.1.2
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.5
+ '@types/react-dom': 19.1.6(@types/[email protected])
+
dependencies:
'@floating-ui/react-dom': 2.1.3([email protected]([email protected]))([email protected])
@@ -20648,6 +20747,24 @@ snapshots:
'@types/react': 19.1.8
'@types/react-dom': 19.1.6(@types/[email protected])
+ dependencies:
+ '@floating-ui/react-dom': 2.1.3([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/rect': 1.1.1
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.5
+ '@types/react-dom': 19.1.6(@types/[email protected])
+
dependencies:
@@ -20906,6 +21023,13 @@ snapshots:
optionalDependencies:
'@types/react': 19.1.8
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.5
+
dependencies:
'@radix-ui/primitive': 1.1.2
@@ -21092,6 +21216,13 @@ snapshots:
optionalDependencies:
'@types/react': 19.1.8
+ dependencies:
+ '@radix-ui/rect': 1.1.1
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.5
+
dependencies:
'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
@@ -21099,6 +21230,13 @@ snapshots:
optionalDependencies:
'@types/react': 19.1.8
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.5
+
dependencies:
@@ -21290,6 +21428,8 @@ snapshots:
'@react-native/[email protected]': {}
+ '@react-native/[email protected]': {}
+
'@react-native/[email protected]': {}
'@react-native/[email protected]': {}
@@ -21446,24 +21586,27 @@ snapshots:
dependencies:
'@restatedev/restate-sdk-core': 1.9.0
dependencies:
react: 19.2.3
optionalDependencies:
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
dependencies:
react: 19.2.3
optionalDependencies:
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
dependencies:
react: 19.2.3
optionalDependencies:
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
'@rolldown/[email protected]':
optional: true
@@ -24101,6 +24244,12 @@ snapshots:
crc-32: 1.2.2
readable-stream: 4.7.0
+ dependencies:
+ node-fetch: 2.7.0([email protected])
+ transitivePeerDependencies:
+ - encoding
+
dependencies:
nice-try: 1.0.5
@@ -24141,6 +24290,10 @@ snapshots:
postcss-selector-parser: 7.1.0
postcss-value-parser: 4.2.0
+ dependencies:
+ hyphenate-style-name: 1.1.0
+
dependencies:
icss-utils: 5.1.0([email protected])
@@ -25106,10 +25259,12 @@ snapshots:
semver: 7.7.3
dependencies:
react: 19.2.3
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
+ optionalDependencies:
dependencies:
@@ -25180,11 +25335,13 @@ snapshots:
expo-image-loader: 6.0.0([email protected])
dependencies:
react: 19.2.3
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
+ optionalDependencies:
@@ -25236,7 +25393,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ [email protected](6v5g26y54i4hiwa5qnck7mpb5e):
dependencies:
'@expo/schema-utils': 0.1.8
@@ -25272,6 +25429,7 @@ snapshots:
react-dom: 19.2.3([email protected])
react-native-gesture-handler: 2.28.0([email protected](@babel/[email protected])(@types/[email protected])([email protected]))([email protected])
transitivePeerDependencies:
- '@react-native-masked-view/masked-view'
- '@types/react'
@@ -25305,12 +25463,14 @@ snapshots:
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
react-native-is-edge-to-edge: 1.2.1([email protected](@babel/[email protected])(@types/[email protected])([email protected]))([email protected])
dependencies:
'@react-native/normalize-colors': 0.81.5
debug: 4.4.3
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
+ optionalDependencies:
transitivePeerDependencies:
- supports-color
@@ -25485,6 +25645,20 @@ snapshots:
dependencies:
bser: 2.1.1
+
+ dependencies:
+ cross-fetch: 3.2.0([email protected])
+ fbjs-css-vars: 1.0.2
+ loose-envify: 1.4.0
+ object-assign: 4.1.1
+ promise: 7.3.1
+ setimmediate: 1.0.5
+ ua-parser-js: 1.0.41
+ transitivePeerDependencies:
+ - encoding
+
optionalDependencies:
picomatch: 4.0.3
@@ -26340,6 +26514,8 @@ snapshots:
+
@@ -26419,6 +26595,10 @@ snapshots:
+ dependencies:
+ css-in-js-utils: 3.1.0
+
@@ -30228,6 +30408,10 @@ snapshots:
err-code: 2.0.3
retry: 0.12.0
+ dependencies:
+ asap: 2.0.6
+
dependencies:
asap: 2.0.6
@@ -30449,7 +30633,7 @@ snapshots:
dependencies:
- '@babel/runtime': 7.27.6
+ '@babel/runtime': 7.28.4
react: 19.2.3
@@ -30705,6 +30889,21 @@ snapshots:
react-native: 0.81.5(@babel/[email protected])(@types/[email protected])([email protected])
warn-once: 0.1.1
+ dependencies:
+ '@babel/runtime': 7.28.4
+ '@react-native/normalize-colors': 0.74.89
+ fbjs: 3.0.5([email protected])
+ inline-style-prefixer: 7.0.1
+ memoize-one: 6.0.0
+ nullthrows: 1.1.1
+ postcss-value-parser: 4.2.0
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ styleq: 0.1.3
+ transitivePeerDependencies:
+ - encoding
+
dependencies:
escape-string-regexp: 4.0.0
@@ -30894,7 +31093,7 @@ snapshots:
dependencies:
- '@babel/runtime': 7.27.6
+ '@babel/runtime': 7.28.4
'@types/react-redux': 7.1.34
hoist-non-react-statics: 3.3.2
loose-envify: 1.4.0
@@ -31042,7 +31241,7 @@ snapshots:
dependencies:
- '@babel/runtime': 7.27.6
+ '@babel/runtime': 7.28.4
dom-helpers: 5.2.1
loose-envify: 1.4.0
prop-types: 15.8.1
@@ -31768,6 +31967,8 @@ snapshots:
es-errors: 1.3.0
es-object-atoms: 1.1.1
+
@@ -32293,6 +32494,8 @@ snapshots:
postcss: 8.5.6
postcss-selector-parser: 6.1.2
+
@@ -32769,6 +32972,8 @@ snapshots:
+