@arbidocs/react 0.4.71 → 0.4.73

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.
Files changed (40) hide show
  1. package/dist/annotations/index.cjs +48 -48
  2. package/dist/annotations/index.js +2 -2
  3. package/dist/artifacts/index.cjs +7 -7
  4. package/dist/artifacts/index.js +2 -2
  5. package/dist/{chunk-6TFD5OS5.cjs → chunk-GE5TAR7Y.cjs} +3 -2
  6. package/dist/chunk-GE5TAR7Y.cjs.map +1 -0
  7. package/dist/{chunk-3QF5DNAP.js → chunk-IHTBAY57.js} +3 -3
  8. package/dist/{chunk-3QF5DNAP.js.map → chunk-IHTBAY57.js.map} +1 -1
  9. package/dist/{chunk-6ERJUIMQ.js → chunk-IQ5TYPVU.js} +3 -2
  10. package/dist/chunk-IQ5TYPVU.js.map +1 -0
  11. package/dist/{chunk-ULU5LEWF.cjs → chunk-L2PXZWJM.cjs} +25 -25
  12. package/dist/{chunk-ULU5LEWF.cjs.map → chunk-L2PXZWJM.cjs.map} +1 -1
  13. package/dist/{chunk-V4CXOPLB.js → chunk-MHCN7OST.js} +19 -7
  14. package/dist/{chunk-V4CXOPLB.js.map → chunk-MHCN7OST.js.map} +1 -1
  15. package/dist/{chunk-BTRIS3HY.cjs → chunk-QJRP2LLQ.cjs} +19 -6
  16. package/dist/chunk-QJRP2LLQ.cjs.map +1 -0
  17. package/dist/{chunk-LQ5YHB7W.cjs → chunk-WYZJLZ67.cjs} +6 -4
  18. package/dist/chunk-WYZJLZ67.cjs.map +1 -0
  19. package/dist/{chunk-WS6DF5X4.js → chunk-YNNAJJ5Z.js} +6 -4
  20. package/dist/chunk-YNNAJJ5Z.js.map +1 -0
  21. package/dist/document-tools/index.cjs +6 -6
  22. package/dist/document-tools/index.js +3 -3
  23. package/dist/{index-BWv_FKi3.d.cts → index-BVMBElCu.d.cts} +82 -1
  24. package/dist/{index-BWv_FKi3.d.ts → index-BVMBElCu.d.ts} +82 -1
  25. package/dist/index.cjs +641 -314
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +281 -5
  28. package/dist/index.d.ts +281 -5
  29. package/dist/index.js +324 -11
  30. package/dist/index.js.map +1 -1
  31. package/dist/ui/index.cjs +129 -125
  32. package/dist/ui/index.d.cts +1 -1
  33. package/dist/ui/index.d.ts +1 -1
  34. package/dist/ui/index.js +2 -2
  35. package/package.json +4 -3
  36. package/dist/chunk-6ERJUIMQ.js.map +0 -1
  37. package/dist/chunk-6TFD5OS5.cjs.map +0 -1
  38. package/dist/chunk-BTRIS3HY.cjs.map +0 -1
  39. package/dist/chunk-LQ5YHB7W.cjs.map +0 -1
  40. package/dist/chunk-WS6DF5X4.js.map +0 -1
@@ -149,8 +149,10 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
149
149
  "div",
150
150
  {
151
151
  className: chunkS6A6FSG7_cjs.cn(
152
- // Sticks to the bottom of a scrolling dialog so the actions stay reachable.
153
- "sticky bottom-0 z-10 -mx-6 -mb-6 flex flex-col-reverse gap-2 bg-background px-6 pb-6 pt-3 sm:flex-row sm:justify-end",
152
+ // Sticks to the bottom of a scrolling dialog so the actions stay reachable. `-bottom-6`
153
+ // matches `-mb-6`: sticky offsets count from inside the dialog's p-6 padding, so
154
+ // `bottom-0` would lift the footer 1.5rem over the content above it.
155
+ "sticky -bottom-6 z-10 -mx-6 -mb-6 flex flex-col-reverse gap-2 bg-background px-6 pb-6 pt-3 sm:flex-row sm:justify-end",
154
156
  className
155
157
  ),
156
158
  ...props
@@ -188,5 +190,5 @@ exports.DialogPortal = DialogPortal;
188
190
  exports.DialogTitle = DialogTitle;
189
191
  exports.DialogTrigger = DialogTrigger;
190
192
  exports.buttonVariants = buttonVariants;
191
- //# sourceMappingURL=chunk-LQ5YHB7W.cjs.map
192
- //# sourceMappingURL=chunk-LQ5YHB7W.cjs.map
193
+ //# sourceMappingURL=chunk-WYZJLZ67.cjs.map
194
+ //# sourceMappingURL=chunk-WYZJLZ67.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/button.tsx","../src/lib/toast-interaction.ts","../src/ui/dialog.tsx"],"names":["cva","React","Slot","jsx","cn","DialogPrimitive","usePortalContainer","React2","jsxs","X"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAM,cAAA,GAAiBA,0BAAA;AAAA,EACrB,yVAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA;AAAA;AAAA,MAGR,OAAA,EAAS;AAAA,QACP,OAAA,EAAS,wDAAA;AAAA,QACT,MAAA,EAAQ,8DAAA;AAAA,QACR,WAAA,EAAa,oEAAA;AAAA,QACb,OAAA,EAAS,mDAAA;AAAA,QACT,SAAA,EAAW,4CAAA;AAAA,QACX,KAAA,EAAO,gBAAA;AAAA,QACP,IAAA,EAAM;AAAA,OACR;AAAA;AAAA;AAAA;AAAA,MAIA,IAAA,EAAM;AAAA,QACJ,OAAA,EAAS,oCAAA;AAAA,QACT,EAAA,EAAI,kEAAA;AAAA,QACJ,EAAA,EAAI,2CAAA;AAAA,QACJ,IAAA,EAAM;AAAA;AACR,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,OAAA,EAAS,SAAA;AAAA,MACT,IAAA,EAAM;AAAA;AACR;AAEJ;AAOA,IAAM,MAAA,GAAeC,iBAAA,CAAA,UAAA;AAAA,EACnB,CAAC,EAAE,SAAA,EAAW,OAAA,EAAS,IAAA,EAAM,UAAU,KAAA,EAAO,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AAChE,IAAA,MAAM,IAAA,GAAO,UAAUC,cAAA,GAAO,QAAA;AAC9B,IAAA,uBACEC,cAAA,CAAC,IAAA,EAAA,EAAK,SAAA,EAAWC,oBAAA,CAAG,eAAe,EAAE,OAAA,EAAS,IAAA,EAAM,SAAA,EAAW,CAAC,CAAA,EAAG,GAAA,EAAW,GAAG,KAAA,EAAO,CAAA;AAAA,EAE5F;AACF;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WC,oBAAA,CAAG,kDAAA,EAAoD,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO;AAEhG,YAAA,CAAa,WAAA,GAAc,cAAA;AAE3B,IAAM,eAAe,CAAC,EAAE,WAAW,GAAG,KAAA,uBACpCD,cAAAA;AAAA,EAAC,KAAA;AAAA,EAAA;AAAA,IACC,SAAA,EAAWC,oBAAA;AAAA;AAAA;AAAA;AAAA,MAIT,uHAAA;AAAA,MACA;AAAA,KACF;AAAA,IACC,GAAG;AAAA;AACN;AAEF,YAAA,CAAa,WAAA,GAAc,cAAA;AAE3B,IAAM,WAAA,GAAoBG,6BAGxB,CAAC,EAAE,WAAW,GAAG,KAAA,EAAM,EAAG,GAAA,qBAC1BJ,cAAAA;AAAA,EAAiBE,0BAAA,CAAA,KAAA;AAAA,EAAhB;AAAA,IACC,GAAA;AAAA,IACA,SAAA,EAAWD,oBAAA,CAAG,gEAAA,EAAkE,SAAS,CAAA;AAAA,IACxF,GAAG;AAAA;AACN,CACD;AACD,WAAA,CAAY,cAA8BC,0BAAA,CAAA,KAAA,CAAM,WAAA;AAEhD,IAAM,iBAAA,GAA0BE,6BAG9B,CAAC,EAAE,WAAW,GAAG,KAAA,EAAM,EAAG,GAAA,qBAC1BJ,cAAAA;AAAA,EAAiBE,0BAAA,CAAA,WAAA;AAAA,EAAhB;AAAA,IACC,GAAA;AAAA,IACA,SAAA,EAAWD,oBAAA,CAAG,+BAAA,EAAiC,SAAS,CAAA;AAAA,IACvD,GAAG;AAAA;AACN,CACD;AACD,iBAAA,CAAkB,cAA8BC,0BAAA,CAAA,WAAA,CAAY,WAAA","file":"chunk-WYZJLZ67.cjs","sourcesContent":["import * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '../lib/utils'\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n {\n variants: {\n // One filled primary per view; everything else is tonal, hairline or ghost. No\n // static shadows: separation is tone, and shadows are reserved for floating layers.\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n accent: 'bg-ai-accent text-ai-accent-foreground hover:bg-ai-accent/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n outline: 'border border-border bg-background hover:bg-muted',\n secondary: 'bg-muted text-foreground hover:bg-muted/70',\n ghost: 'hover:bg-muted',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n // Touch screens get a 44px target (coarse pointers only), mouse keeps the compact 36px.\n // `!` so the floor also wins over a caller's compact `h-7` or a container's\n // `[&_button]:h-7` rule: a compact toolbar on a phone must still be tappable.\n size: {\n default: 'h-9 px-4 py-2 pointer-coarse:h-11!',\n sm: 'h-8 rounded-md px-3 pointer-coarse:h-11! pointer-coarse:min-w-11',\n lg: 'h-10 rounded-md px-8 pointer-coarse:h-12!',\n icon: 'h-9 w-9 pointer-coarse:h-11! pointer-coarse:w-11!',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button'\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />\n )\n }\n)\nButton.displayName = 'Button'\n\nexport { Button, buttonVariants }\n","/**\n * True when an interaction landed on a sonner toast. The toaster renders in its own\n * portal, outside every dialog, so Radix counts a click (or the focus move from\n * clicking a toast's close button) as an \"outside\" interaction and dismisses the open\n * dialog — e.g. clicking the \"Welcome\" toast closed the create-workspace dialog\n * underneath it.\n */\nexport function isToastInteraction(event: Event): boolean {\n const original = (event as CustomEvent<{ originalEvent?: Event }>).detail?.originalEvent\n const target = original?.target ?? event.target\n return target instanceof Element && target.closest('[data-sonner-toaster]') !== null\n}\n","import * as React from 'react'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { X } from 'lucide-react'\n\nimport { cn } from '../lib/utils'\nimport { isToastInteraction } from '../lib/toast-interaction'\nimport { usePortalContainer } from './portal-container'\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\n/** Portals to the nearest PortalContainerProvider's container (a popped-out window), else `<body>`. */\nfunction DialogPortal({\n container,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n const fallback = usePortalContainer()\n return <DialogPrimitive.Portal container={container ?? fallback} {...props} />\n}\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\n/**\n * Where the dialog sits on a PHONE (< 640px). Wider screens always get a centred dialog.\n * - `center`: centred box with a 1rem margin (small prompts and confirmations).\n * - `sheet`: bottom sheet, full width, rounded top corners (forms and pickers).\n * - `full`: full-height sheet that stops below the status bar (large editors, wizards).\n */\nexport type DialogPresentation = 'center' | 'sheet' | 'full' | 'right'\n\nconst PHONE_PRESENTATION: Record<DialogPresentation, string> = {\n right:\n 'inset-y-0 left-auto right-0 h-dvh max-h-dvh w-full max-w-[28rem] translate-x-0 translate-y-0 rounded-none border-y-0 border-r-0 data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right data-[state=open]:zoom-in-100 data-[state=closed]:zoom-out-100',\n center: '',\n sheet:\n 'max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:w-full max-sm:max-w-full max-sm:border-x-0 max-sm:border-b-0 max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-xl max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] max-sm:max-h-[calc(100dvh-env(safe-area-inset-top,0px)-2.5rem)] max-sm:data-[state=open]:slide-in-from-bottom-10 max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:zoom-out-100',\n full: 'max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:border-x-0 max-sm:border-b-0 max-sm:h-[calc(100dvh-env(safe-area-inset-top,0px)-1rem)] max-sm:w-full max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-xl max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] max-sm:max-h-none max-sm:data-[state=open]:slide-in-from-bottom-10 max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:zoom-out-100',\n}\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n hideCloseButton?: boolean\n /** Phone presentation (see {@link DialogPresentation}). Defaults to `center`. */\n presentation?: DialogPresentation\n }\n>(\n (\n { className, children, hideCloseButton, presentation = 'center', onInteractOutside, ...props },\n ref\n ) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n data-slot=\"dialog-content\"\n data-presentation={presentation}\n onInteractOutside={(event) => {\n if (isToastInteraction(event)) event.preventDefault()\n onInteractOutside?.(event)\n }}\n className={cn(\n // Always inside the viewport: width and height are capped by the DYNAMIC viewport (mobile\n // browser chrome) and the notch / home-indicator insets; the content scrolls inside.\n 'fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-2rem-env(safe-area-inset-left,0px)-env(safe-area-inset-right,0px))] max-w-lg max-h-[calc(min(100dvh,100svh,100vh)-2rem-env(safe-area-inset-top,0px)-env(safe-area-inset-bottom,0px))] translate-x-[-50%] translate-y-[-50%] will-change-transform grid-cols-[minmax(0,1fr)] gap-4 overflow-x-hidden overflow-y-auto overscroll-contain scrollbar-themed border bg-background p-6 shadow-xl duration-200 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 rounded-md',\n PHONE_PRESENTATION[presentation],\n className\n )}\n {...props}\n >\n {children}\n {!hideCloseButton && (\n <DialogPrimitive.Close\n // `fixed` inside the transformed dialog is positioned against the dialog box, not its\n // scrolling content: the close button never scrolls away.\n className=\"fixed right-4 top-4 z-20 inline-flex items-center justify-center rounded-sm pointer-coarse:right-2 pointer-coarse:top-2 pointer-coarse:size-11 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\"\n data-testid=\"dialog-close-button\"\n >\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close dialog</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n )\n)\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex min-w-0 flex-col space-y-1.5 pr-8 text-left', className)} {...props} />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n // Sticks to the bottom of a scrolling dialog so the actions stay reachable. `-bottom-6`\n // matches `-mb-6`: sticky offsets count from inside the dialog's p-6 padding, so\n // `bottom-0` would lift the footer 1.5rem over the content above it.\n 'sticky -bottom-6 z-10 -mx-6 -mb-6 flex flex-col-reverse gap-2 bg-background px-6 pb-6 pt-3 sm:flex-row sm:justify-end',\n className\n )}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('break-words text-lg font-semibold leading-tight tracking-tight', className)}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n"]}
@@ -126,8 +126,10 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
126
126
  "div",
127
127
  {
128
128
  className: cn(
129
- // Sticks to the bottom of a scrolling dialog so the actions stay reachable.
130
- "sticky bottom-0 z-10 -mx-6 -mb-6 flex flex-col-reverse gap-2 bg-background px-6 pb-6 pt-3 sm:flex-row sm:justify-end",
129
+ // Sticks to the bottom of a scrolling dialog so the actions stay reachable. `-bottom-6`
130
+ // matches `-mb-6`: sticky offsets count from inside the dialog's p-6 padding, so
131
+ // `bottom-0` would lift the footer 1.5rem over the content above it.
132
+ "sticky -bottom-6 z-10 -mx-6 -mb-6 flex flex-col-reverse gap-2 bg-background px-6 pb-6 pt-3 sm:flex-row sm:justify-end",
131
133
  className
132
134
  ),
133
135
  ...props
@@ -154,5 +156,5 @@ var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @
154
156
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
155
157
 
156
158
  export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants };
157
- //# sourceMappingURL=chunk-WS6DF5X4.js.map
158
- //# sourceMappingURL=chunk-WS6DF5X4.js.map
159
+ //# sourceMappingURL=chunk-YNNAJJ5Z.js.map
160
+ //# sourceMappingURL=chunk-YNNAJJ5Z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/button.tsx","../src/lib/toast-interaction.ts","../src/ui/dialog.tsx"],"names":["React","jsx"],"mappings":";;;;;;;;;AAMA,IAAM,cAAA,GAAiB,GAAA;AAAA,EACrB,yVAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA;AAAA;AAAA,MAGR,OAAA,EAAS;AAAA,QACP,OAAA,EAAS,wDAAA;AAAA,QACT,MAAA,EAAQ,8DAAA;AAAA,QACR,WAAA,EAAa,oEAAA;AAAA,QACb,OAAA,EAAS,mDAAA;AAAA,QACT,SAAA,EAAW,4CAAA;AAAA,QACX,KAAA,EAAO,gBAAA;AAAA,QACP,IAAA,EAAM;AAAA,OACR;AAAA;AAAA;AAAA;AAAA,MAIA,IAAA,EAAM;AAAA,QACJ,OAAA,EAAS,oCAAA;AAAA,QACT,EAAA,EAAI,kEAAA;AAAA,QACJ,EAAA,EAAI,2CAAA;AAAA,QACJ,IAAA,EAAM;AAAA;AACR,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,OAAA,EAAS,SAAA;AAAA,MACT,IAAA,EAAM;AAAA;AACR;AAEJ;AAOA,IAAM,MAAA,GAAeA,MAAA,CAAA,UAAA;AAAA,EACnB,CAAC,EAAE,SAAA,EAAW,OAAA,EAAS,IAAA,EAAM,UAAU,KAAA,EAAO,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AAChE,IAAA,MAAM,IAAA,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'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '../lib/utils'\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n {\n variants: {\n // One filled primary per view; everything else is tonal, hairline or ghost. No\n // static shadows: separation is tone, and shadows are reserved for floating layers.\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n accent: 'bg-ai-accent text-ai-accent-foreground hover:bg-ai-accent/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n outline: 'border border-border bg-background hover:bg-muted',\n secondary: 'bg-muted text-foreground hover:bg-muted/70',\n ghost: 'hover:bg-muted',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n // Touch screens get a 44px target (coarse pointers only), mouse keeps the compact 36px.\n // `!` so the floor also wins over a caller's compact `h-7` or a container's\n // `[&_button]:h-7` rule: a compact toolbar on a phone must still be tappable.\n size: {\n default: 'h-9 px-4 py-2 pointer-coarse:h-11!',\n sm: 'h-8 rounded-md px-3 pointer-coarse:h-11! pointer-coarse:min-w-11',\n lg: 'h-10 rounded-md px-8 pointer-coarse:h-12!',\n icon: 'h-9 w-9 pointer-coarse:h-11! pointer-coarse:w-11!',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button'\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />\n )\n }\n)\nButton.displayName = 'Button'\n\nexport { Button, buttonVariants }\n","/**\n * True when an interaction landed on a sonner toast. The toaster renders in its own\n * portal, outside every dialog, so Radix counts a click (or the focus move from\n * clicking a toast's close button) as an \"outside\" interaction and dismisses the open\n * dialog — e.g. clicking the \"Welcome\" toast closed the create-workspace dialog\n * underneath it.\n */\nexport function isToastInteraction(event: Event): boolean {\n const original = (event as CustomEvent<{ originalEvent?: Event }>).detail?.originalEvent\n const target = original?.target ?? event.target\n return target instanceof Element && target.closest('[data-sonner-toaster]') !== null\n}\n","import * as React from 'react'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { X } from 'lucide-react'\n\nimport { cn } from '../lib/utils'\nimport { isToastInteraction } from '../lib/toast-interaction'\nimport { usePortalContainer } from './portal-container'\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\n/** Portals to the nearest PortalContainerProvider's container (a popped-out window), else `<body>`. */\nfunction DialogPortal({\n container,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n const fallback = usePortalContainer()\n return <DialogPrimitive.Portal container={container ?? fallback} {...props} />\n}\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\n/**\n * Where the dialog sits on a PHONE (< 640px). Wider screens always get a centred dialog.\n * - `center`: centred box with a 1rem margin (small prompts and confirmations).\n * - `sheet`: bottom sheet, full width, rounded top corners (forms and pickers).\n * - `full`: full-height sheet that stops below the status bar (large editors, wizards).\n */\nexport type DialogPresentation = 'center' | 'sheet' | 'full' | 'right'\n\nconst PHONE_PRESENTATION: Record<DialogPresentation, string> = {\n right:\n 'inset-y-0 left-auto right-0 h-dvh max-h-dvh w-full max-w-[28rem] translate-x-0 translate-y-0 rounded-none border-y-0 border-r-0 data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right data-[state=open]:zoom-in-100 data-[state=closed]:zoom-out-100',\n center: '',\n sheet:\n 'max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:w-full max-sm:max-w-full max-sm:border-x-0 max-sm:border-b-0 max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-xl max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] max-sm:max-h-[calc(100dvh-env(safe-area-inset-top,0px)-2.5rem)] max-sm:data-[state=open]:slide-in-from-bottom-10 max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:zoom-out-100',\n full: 'max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:border-x-0 max-sm:border-b-0 max-sm:h-[calc(100dvh-env(safe-area-inset-top,0px)-1rem)] max-sm:w-full max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-xl max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] max-sm:max-h-none max-sm:data-[state=open]:slide-in-from-bottom-10 max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:zoom-out-100',\n}\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n hideCloseButton?: boolean\n /** Phone presentation (see {@link DialogPresentation}). Defaults to `center`. */\n presentation?: DialogPresentation\n }\n>(\n (\n { className, children, hideCloseButton, presentation = 'center', onInteractOutside, ...props },\n ref\n ) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n data-slot=\"dialog-content\"\n data-presentation={presentation}\n onInteractOutside={(event) => {\n if (isToastInteraction(event)) event.preventDefault()\n onInteractOutside?.(event)\n }}\n className={cn(\n // Always inside the viewport: width and height are capped by the DYNAMIC viewport (mobile\n // browser chrome) and the notch / home-indicator insets; the content scrolls inside.\n 'fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-2rem-env(safe-area-inset-left,0px)-env(safe-area-inset-right,0px))] max-w-lg max-h-[calc(min(100dvh,100svh,100vh)-2rem-env(safe-area-inset-top,0px)-env(safe-area-inset-bottom,0px))] translate-x-[-50%] translate-y-[-50%] will-change-transform grid-cols-[minmax(0,1fr)] gap-4 overflow-x-hidden overflow-y-auto overscroll-contain scrollbar-themed border bg-background p-6 shadow-xl duration-200 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 rounded-md',\n PHONE_PRESENTATION[presentation],\n className\n )}\n {...props}\n >\n {children}\n {!hideCloseButton && (\n <DialogPrimitive.Close\n // `fixed` inside the transformed dialog is positioned against the dialog box, not its\n // scrolling content: the close button never scrolls away.\n className=\"fixed right-4 top-4 z-20 inline-flex items-center justify-center rounded-sm pointer-coarse:right-2 pointer-coarse:top-2 pointer-coarse:size-11 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\"\n data-testid=\"dialog-close-button\"\n >\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close dialog</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n )\n)\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex min-w-0 flex-col space-y-1.5 pr-8 text-left', className)} {...props} />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n // Sticks to the bottom of a scrolling dialog so the actions stay reachable. `-bottom-6`\n // matches `-mb-6`: sticky offsets count from inside the dialog's p-6 padding, so\n // `bottom-0` would lift the footer 1.5rem over the content above it.\n 'sticky -bottom-6 z-10 -mx-6 -mb-6 flex flex-col-reverse gap-2 bg-background px-6 pb-6 pt-3 sm:flex-row sm:justify-end',\n className\n )}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('break-words text-lg font-semibold leading-tight tracking-tight', className)}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n"]}
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkULU5LEWF_cjs = require('../chunk-ULU5LEWF.cjs');
3
+ var chunkL2PXZWJM_cjs = require('../chunk-L2PXZWJM.cjs');
4
4
  var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
5
5
  var chunkT4IJHRRD_cjs = require('../chunk-T4IJHRRD.cjs');
6
6
  require('../chunk-5DCRIWCA.cjs');
7
7
  require('../chunk-VOFNX4P6.cjs');
8
- require('../chunk-LQ5YHB7W.cjs');
8
+ var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
9
+ require('../chunk-WYZJLZ67.cjs');
9
10
  require('../chunk-Z3LLUO32.cjs');
10
11
  require('../chunk-HJDR5HEO.cjs');
11
12
  require('../chunk-S6A6FSG7.cjs');
12
- var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
13
13
  var react = require('react');
14
14
  var jsxRuntime = require('react/jsx-runtime');
15
15
  var reactQuery = require('@tanstack/react-query');
@@ -308,7 +308,7 @@ async function call(request) {
308
308
  return await request();
309
309
  } catch (e) {
310
310
  if (e instanceof TypeError || typeof navigator !== "undefined" && !navigator.onLine) {
311
- throw new chunkULU5LEWF_cjs.AnnotationStoreOfflineError();
311
+ throw new chunkL2PXZWJM_cjs.AnnotationStoreOfflineError();
312
312
  }
313
313
  throw e;
314
314
  }
@@ -391,7 +391,7 @@ function createMarkupStore({ version, client, onSaved }) {
391
391
  const deleted = new Set(
392
392
  [...seen].filter((id) => !mine.annotations.some((a) => a.id === id))
393
393
  );
394
- const merged = chunkULU5LEWF_cjs.mergeLayers({ base, mine, theirs: latest.layer, deleted });
394
+ const merged = chunkL2PXZWJM_cjs.mergeLayers({ base, mine, theirs: latest.layer, deleted });
395
395
  revision = latest.revision;
396
396
  canEdit = latest.canEdit;
397
397
  base = latest.layer;
@@ -461,7 +461,7 @@ async function addToMarkup(documentId, version, marks, client) {
461
461
  ...chunkSSOPIPEX_cjs.emptyLayer(documentId, (/* @__PURE__ */ new Date()).toISOString()),
462
462
  annotations: marks
463
463
  };
464
- const merged = chunkULU5LEWF_cjs.mergeLayers({ base: null, mine: current, theirs: incoming });
464
+ const merged = chunkL2PXZWJM_cjs.mergeLayers({ base: null, mine: current, theirs: incoming });
465
465
  const added = merged.annotations.length - current.annotations.length;
466
466
  if (added > 0) await store.save(chunkSSOPIPEX_cjs.parseLayer({ ...merged, schema: chunkSSOPIPEX_cjs.LAYER_SCHEMA_VERSION }));
467
467
  return added;
@@ -1,13 +1,13 @@
1
- import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-3QF5DNAP.js';
1
+ import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-IHTBAY57.js';
2
2
  import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-COWZGCL5.js';
3
3
  import { parseVersionRef } from '../chunk-HKUD2NZN.js';
4
4
  import '../chunk-G6FHNURH.js';
5
5
  import '../chunk-WUTL62MC.js';
6
- import '../chunk-WS6DF5X4.js';
6
+ import { useDeploymentDomain } from '../chunk-WBYNKFUO.js';
7
+ import '../chunk-YNNAJJ5Z.js';
7
8
  import '../chunk-QRCMKEE6.js';
8
9
  import '../chunk-47CCGUWR.js';
9
10
  import '../chunk-SN5YV6FF.js';
10
- import { useDeploymentDomain } from '../chunk-WBYNKFUO.js';
11
11
  import { createContext, useMemo, useContext, useState, useCallback, useEffect, useSyncExternalStore } from 'react';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
  import { onlineManager, useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
@@ -25,6 +25,77 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
25
25
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
26
26
  import { Components } from 'react-markdown';
27
27
 
28
+ /**
29
+ * Identity verification types, SDK-free so presentational blocks can take an
30
+ * `IdentityVerificationFlow` through `@arbidocs/react/ui`. `IdentityStatus` mirrors the backend's
31
+ * `IdentityStatusResponse` (`GET /v1/user/identity`).
32
+ */
33
+ type IdentityState = 'none' | 'in_progress' | 'in_review' | 'name_mismatch' | 'declined' | 'verified';
34
+ interface IdentityStatus {
35
+ enabled: boolean;
36
+ /** Owns a Pro project to charge the fee to (free users don't get the feature). */
37
+ eligible: boolean;
38
+ required: boolean;
39
+ /** The one-time fee incl. UK VAT. */
40
+ price_pence: number;
41
+ currency: string;
42
+ attempts_per_fee: number;
43
+ state: IdentityState;
44
+ attempts_left: number;
45
+ /** A fee charge waiting for the bank's 3-D Secure confirmation. */
46
+ pending_payment_url?: string | null;
47
+ /** The tick: passed a check, and the account name still matches it. */
48
+ verified: boolean;
49
+ document_country?: string | null;
50
+ /** Only in `name_mismatch`: the name on the document, offered as the account name. */
51
+ document_given_name?: string | null;
52
+ document_family_name?: string | null;
53
+ }
54
+ interface IdentityPurchase {
55
+ status: 'paid' | 'requires_action';
56
+ payment_url?: string | null;
57
+ }
58
+ type IdentityStep = 'pay' | 'verify' | 'result';
59
+ type IdentityBusy = 'pay' | 'start' | 'refresh' | 'accept' | 'remove' | null;
60
+ /** A refused or failed call: the backend's code (`PRO_REQUIRED`, `PAYMENT_DECLINED`, …) and text. */
61
+ interface IdentityProblem {
62
+ code?: string;
63
+ message: string;
64
+ }
65
+ /** The verification dialog's state and actions (`useIdentityVerificationFlow`). */
66
+ interface IdentityVerificationFlow {
67
+ status: IdentityStatus | undefined;
68
+ isLoading: boolean;
69
+ /** The fee as the UI shows it ("£5.00 incl. VAT"), once the status is known. */
70
+ price: string | null;
71
+ isOpen: boolean;
72
+ open: () => void;
73
+ close: () => void;
74
+ step: IdentityStep;
75
+ busy: IdentityBusy;
76
+ problem: IdentityProblem | null;
77
+ /** The bank wants the fee confirmed (3-D Secure) on this page; then call `recheckPayment`. */
78
+ paymentUrl: string | null;
79
+ pay: () => void;
80
+ recheckPayment: () => void;
81
+ /** Id for the element Didit renders into (render it with a height while `step === 'verify'`). */
82
+ verifyContainerId: string;
83
+ /** Attach the Didit host element; the flow mounts the SDK into it once the session is open. */
84
+ verifyContainerRef: (el: HTMLElement | null) => void;
85
+ /** Didit could not run here (blocked camera, add-in frame): offer `openInNewTab`. */
86
+ embedFailed: boolean;
87
+ openInNewTab: () => void;
88
+ /** Ask for the result now ("I've finished"). */
89
+ checkResult: () => void;
90
+ /** Try again after a decline (uses one of the attempts left). */
91
+ retry: () => void;
92
+ /** Take the document's name as the account name (name_mismatch). */
93
+ acceptName: () => void;
94
+ /** Keep the account name: closes without the tick (renaming later can still match). */
95
+ keepName: () => void;
96
+ remove: () => void;
97
+ }
98
+
28
99
  /**
29
100
  * Minimal, dependency-free tooltip — a drop-in API replacement for a Radix
30
101
  * wrapper (same exports/props: Tooltip, TooltipTrigger, TooltipContent,
@@ -917,6 +988,8 @@ interface UserEntityProps {
917
988
  colorClass?: string;
918
989
  /** Whether this user is an agent — drives the dashed ring + bot badge. */
919
990
  isAgent?: boolean;
991
+ /** Verified tick (passed an ID check under this name): a badge after the name in the pill. */
992
+ isVerified?: boolean;
920
993
  /** Inline border/text colour for agent avatars (from the app's agentAvatarColors). */
921
994
  agentStyle?: React__default.CSSProperties;
922
995
  /**
@@ -940,6 +1013,14 @@ interface UserEntityProps {
940
1013
  }
941
1014
  declare const UserEntity: React__default.NamedExoticComponent<UserEntityProps>;
942
1015
 
1016
+ interface VerifiedBadgeProps {
1017
+ className?: string;
1018
+ /** Accessible name and hover text; default "Identity verified". */
1019
+ label?: string;
1020
+ }
1021
+ /** The verified tick: the user passed an ID check under the name shown. */
1022
+ declare function VerifiedBadge({ className, label }: VerifiedBadgeProps): React$1.JSX.Element;
1023
+
943
1024
  /**
944
1025
  * "AGENT" stamp for an `agt-` peer.
945
1026
  *
@@ -1437,4 +1518,4 @@ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSel
1437
1518
 
1438
1519
  declare function cn(...inputs: ClassValue[]): string;
1439
1520
 
1440
- export { DropdownMenuLabel as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandShortcut as D, Dialog as E, DialogClose as F, DialogContent as G, DialogDescription as H, DialogFooter as I, DialogHeader as J, DialogOverlay as K, DialogPortal as L, type DialogPresentation as M, DialogTitle as N, DialogTrigger as O, type DictateContextValue as P, DictateProvider as Q, DocumentCard as R, type DocumentCardProps as S, DocumentEntity as T, type DocumentEntityProps as U, type DocumentLike as V, DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, AiMarkdown as a, type StatusBadgeComponent as a$, DropdownMenuPortal as a0, DropdownMenuRadioGroup as a1, DropdownMenuRadioItem as a2, DropdownMenuSeparator as a3, DropdownMenuShortcut as a4, DropdownMenuSub as a5, DropdownMenuSubContent as a6, DropdownMenuSubTrigger as a7, DropdownMenuTrigger as a8, ENTITY_MAPPINGS as a9, PopoverTrigger as aA, PortalContainerProvider as aB, type PresenceDisplayStatus as aC, PresenceLabel as aD, Progress as aE, ProjectEntity as aF, type ProjectEntityProps as aG, type ProjectRelation as aH, RadioGroup as aI, RadioGroupItem as aJ, type Rag as aK, RagDot as aL, RelevanceDot as aM, ScrollArea as aN, ScrollBar as aO, Select as aP, SelectContent as aQ, SelectGroup as aR, SelectItem as aS, SelectLabel as aT, SelectScrollDownButton as aU, SelectScrollUpButton as aV, SelectSeparator as aW, SelectTrigger as aX, SelectValue as aY, Separator as aZ, Slider as a_, EntityIcon as aa, type EntityIconComponent as ab, EntityPill as ac, type EntityRegistryOverride as ad, type EntityType as ae, HoverCard as af, HoverCardContent as ag, HoverCardTrigger as ah, IconToggle as ai, type IconToggleProps as aj, Input as ak, type InputProps as al, Label as am, MarkMenu as an, type MarkMenuItem as ao, type MarkMenuProps as ap, MarkdownRenderer as aq, type MarkdownRendererProps as ar, MarkdownStreamingContext as as, NEUTRAL_GRAY as at, PLACEHOLDER_COLOR as au, PassageCard as av, type PassageCardProps as aw, Popover as ax, PopoverAnchor as ay, PopoverContent as az, Avatar as b, trimOpenCitation as b$, type StatusBadgeProps as b0, StatusPill as b1, type StatusPillProps as b2, type StatusVariant as b3, Switch as b4, TAG_TYPE_ICONS as b5, TAG_TYPE_LABELS as b6, Table as b7, TableBody as b8, TableCaption as b9, type UserMenuProps as bA, type UserMenuStatus as bB, VISIBILITY_ICONS as bC, VisibilityIcon as bD, VisibilityToggle as bE, type VisibilityToggleProps as bF, badgeVariants as bG, buttonVariants as bH, cardVariants as bI, closeOpenEmphasis as bJ, cn as bK, configureEntityRegistry as bL, configureRagLabels as bM, configureStatusRegistry as bN, getDocIcon as bO, getEntityColor as bP, getEntityColorStyles as bQ, getEntityIcon as bR, getEntityLabel as bS, getStatusVariant as bT, getTagTypeIcon as bU, getTagTypeLabel as bV, getWorkspaceColor as bW, markdownBaseComponents as bX, normalizeCitationMarkup as bY, splitMarkdownBlocks as bZ, toggleVariants as b_, TableCell as ba, TableFooter as bb, TableHead as bc, TableHeader as bd, TableRow as be, Tabs as bf, TabsContent as bg, TabsList as bh, TabsTrigger as bi, TagEntity as bj, type TagEntityProps as bk, type TagLike as bl, Textarea as bm, type TextareaProps as bn, ThreadVisibilityIcon as bo, Toggle as bp, ToggleGroup as bq, ToggleGroupItem as br, Tooltip as bs, TooltipContent as bt, TooltipProvider as bu, TooltipTrigger as bv, UserEntity as bw, type UserEntityProps as bx, UserMenu as by, type UserMenuItem as bz, AvatarFallback as c, usePortalContainer as c0, AvatarImage as d, Badge as e, type BadgeProps as f, Button as g, type ButtonProps as h, CardContent as i, CardDescription as j, CardFooter as k, CardHeader as l, type CardProps as m, CardTitle as n, Checkbox as o, Collapsible as p, CollapsibleContent as q, CollapsibleTrigger as r, Command as s, CommandDialog as t, CommandEmpty as u, CommandGroup as v, CommandInput as w, CommandItem as x, CommandList as y, CommandSeparator as z };
1521
+ export { DropdownMenuLabel as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandShortcut as D, Dialog as E, DialogClose as F, DialogContent as G, DialogDescription as H, DialogFooter as I, DialogHeader as J, DialogOverlay as K, DialogPortal as L, type DialogPresentation as M, DialogTitle as N, DialogTrigger as O, type DictateContextValue as P, DictateProvider as Q, DocumentCard as R, type DocumentCardProps as S, DocumentEntity as T, type DocumentEntityProps as U, type DocumentLike as V, DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, AiMarkdown as a, SelectScrollDownButton as a$, DropdownMenuPortal as a0, DropdownMenuRadioGroup as a1, DropdownMenuRadioItem as a2, DropdownMenuSeparator as a3, DropdownMenuShortcut as a4, DropdownMenuSub as a5, DropdownMenuSubContent as a6, DropdownMenuSubTrigger as a7, DropdownMenuTrigger as a8, ENTITY_MAPPINGS as a9, NEUTRAL_GRAY as aA, PLACEHOLDER_COLOR as aB, PassageCard as aC, type PassageCardProps as aD, Popover as aE, PopoverAnchor as aF, PopoverContent as aG, PopoverTrigger as aH, PortalContainerProvider as aI, type PresenceDisplayStatus as aJ, PresenceLabel as aK, Progress as aL, ProjectEntity as aM, type ProjectEntityProps as aN, type ProjectRelation as aO, RadioGroup as aP, RadioGroupItem as aQ, type Rag as aR, RagDot as aS, RelevanceDot as aT, ScrollArea as aU, ScrollBar as aV, Select as aW, SelectContent as aX, SelectGroup as aY, SelectItem as aZ, SelectLabel as a_, EntityIcon as aa, type EntityIconComponent as ab, EntityPill as ac, type EntityRegistryOverride as ad, type EntityType as ae, HoverCard as af, HoverCardContent as ag, HoverCardTrigger as ah, IconToggle as ai, type IconToggleProps as aj, type IdentityBusy as ak, type IdentityProblem as al, type IdentityPurchase as am, type IdentityState as an, type IdentityStatus as ao, type IdentityStep as ap, type IdentityVerificationFlow as aq, Input as ar, type InputProps as as, Label as at, MarkMenu as au, type MarkMenuItem as av, type MarkMenuProps as aw, MarkdownRenderer as ax, type MarkdownRendererProps as ay, MarkdownStreamingContext as az, Avatar as b, getEntityLabel as b$, SelectScrollUpButton as b0, SelectSeparator as b1, SelectTrigger as b2, SelectValue as b3, Separator as b4, Slider as b5, type StatusBadgeComponent as b6, type StatusBadgeProps as b7, StatusPill as b8, type StatusPillProps as b9, TooltipContent as bA, TooltipProvider as bB, TooltipTrigger as bC, UserEntity as bD, type UserEntityProps as bE, UserMenu as bF, type UserMenuItem as bG, type UserMenuProps as bH, type UserMenuStatus as bI, VISIBILITY_ICONS as bJ, VerifiedBadge as bK, type VerifiedBadgeProps as bL, VisibilityIcon as bM, VisibilityToggle as bN, type VisibilityToggleProps as bO, badgeVariants as bP, buttonVariants as bQ, cardVariants as bR, closeOpenEmphasis as bS, cn as bT, configureEntityRegistry as bU, configureRagLabels as bV, configureStatusRegistry as bW, getDocIcon as bX, getEntityColor as bY, getEntityColorStyles as bZ, getEntityIcon as b_, type StatusVariant as ba, Switch as bb, TAG_TYPE_ICONS as bc, TAG_TYPE_LABELS as bd, Table as be, TableBody as bf, TableCaption as bg, TableCell as bh, TableFooter as bi, TableHead as bj, TableHeader as bk, TableRow as bl, Tabs as bm, TabsContent as bn, TabsList as bo, TabsTrigger as bp, TagEntity as bq, type TagEntityProps as br, type TagLike as bs, Textarea as bt, type TextareaProps as bu, ThreadVisibilityIcon as bv, Toggle as bw, ToggleGroup as bx, ToggleGroupItem as by, Tooltip as bz, AvatarFallback as c, getStatusVariant as c0, getTagTypeIcon as c1, getTagTypeLabel as c2, getWorkspaceColor as c3, markdownBaseComponents as c4, normalizeCitationMarkup as c5, splitMarkdownBlocks as c6, toggleVariants as c7, trimOpenCitation as c8, usePortalContainer as c9, AvatarImage as d, Badge as e, type BadgeProps as f, Button as g, type ButtonProps as h, CardContent as i, CardDescription as j, CardFooter as k, CardHeader as l, type CardProps as m, CardTitle as n, Checkbox as o, Collapsible as p, CollapsibleContent as q, CollapsibleTrigger as r, Command as s, CommandDialog as t, CommandEmpty as u, CommandGroup as v, CommandInput as w, CommandItem as x, CommandList as y, CommandSeparator as z };
@@ -25,6 +25,77 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
25
25
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
26
26
  import { Components } from 'react-markdown';
27
27
 
28
+ /**
29
+ * Identity verification types, SDK-free so presentational blocks can take an
30
+ * `IdentityVerificationFlow` through `@arbidocs/react/ui`. `IdentityStatus` mirrors the backend's
31
+ * `IdentityStatusResponse` (`GET /v1/user/identity`).
32
+ */
33
+ type IdentityState = 'none' | 'in_progress' | 'in_review' | 'name_mismatch' | 'declined' | 'verified';
34
+ interface IdentityStatus {
35
+ enabled: boolean;
36
+ /** Owns a Pro project to charge the fee to (free users don't get the feature). */
37
+ eligible: boolean;
38
+ required: boolean;
39
+ /** The one-time fee incl. UK VAT. */
40
+ price_pence: number;
41
+ currency: string;
42
+ attempts_per_fee: number;
43
+ state: IdentityState;
44
+ attempts_left: number;
45
+ /** A fee charge waiting for the bank's 3-D Secure confirmation. */
46
+ pending_payment_url?: string | null;
47
+ /** The tick: passed a check, and the account name still matches it. */
48
+ verified: boolean;
49
+ document_country?: string | null;
50
+ /** Only in `name_mismatch`: the name on the document, offered as the account name. */
51
+ document_given_name?: string | null;
52
+ document_family_name?: string | null;
53
+ }
54
+ interface IdentityPurchase {
55
+ status: 'paid' | 'requires_action';
56
+ payment_url?: string | null;
57
+ }
58
+ type IdentityStep = 'pay' | 'verify' | 'result';
59
+ type IdentityBusy = 'pay' | 'start' | 'refresh' | 'accept' | 'remove' | null;
60
+ /** A refused or failed call: the backend's code (`PRO_REQUIRED`, `PAYMENT_DECLINED`, …) and text. */
61
+ interface IdentityProblem {
62
+ code?: string;
63
+ message: string;
64
+ }
65
+ /** The verification dialog's state and actions (`useIdentityVerificationFlow`). */
66
+ interface IdentityVerificationFlow {
67
+ status: IdentityStatus | undefined;
68
+ isLoading: boolean;
69
+ /** The fee as the UI shows it ("£5.00 incl. VAT"), once the status is known. */
70
+ price: string | null;
71
+ isOpen: boolean;
72
+ open: () => void;
73
+ close: () => void;
74
+ step: IdentityStep;
75
+ busy: IdentityBusy;
76
+ problem: IdentityProblem | null;
77
+ /** The bank wants the fee confirmed (3-D Secure) on this page; then call `recheckPayment`. */
78
+ paymentUrl: string | null;
79
+ pay: () => void;
80
+ recheckPayment: () => void;
81
+ /** Id for the element Didit renders into (render it with a height while `step === 'verify'`). */
82
+ verifyContainerId: string;
83
+ /** Attach the Didit host element; the flow mounts the SDK into it once the session is open. */
84
+ verifyContainerRef: (el: HTMLElement | null) => void;
85
+ /** Didit could not run here (blocked camera, add-in frame): offer `openInNewTab`. */
86
+ embedFailed: boolean;
87
+ openInNewTab: () => void;
88
+ /** Ask for the result now ("I've finished"). */
89
+ checkResult: () => void;
90
+ /** Try again after a decline (uses one of the attempts left). */
91
+ retry: () => void;
92
+ /** Take the document's name as the account name (name_mismatch). */
93
+ acceptName: () => void;
94
+ /** Keep the account name: closes without the tick (renaming later can still match). */
95
+ keepName: () => void;
96
+ remove: () => void;
97
+ }
98
+
28
99
  /**
29
100
  * Minimal, dependency-free tooltip — a drop-in API replacement for a Radix
30
101
  * wrapper (same exports/props: Tooltip, TooltipTrigger, TooltipContent,
@@ -917,6 +988,8 @@ interface UserEntityProps {
917
988
  colorClass?: string;
918
989
  /** Whether this user is an agent — drives the dashed ring + bot badge. */
919
990
  isAgent?: boolean;
991
+ /** Verified tick (passed an ID check under this name): a badge after the name in the pill. */
992
+ isVerified?: boolean;
920
993
  /** Inline border/text colour for agent avatars (from the app's agentAvatarColors). */
921
994
  agentStyle?: React__default.CSSProperties;
922
995
  /**
@@ -940,6 +1013,14 @@ interface UserEntityProps {
940
1013
  }
941
1014
  declare const UserEntity: React__default.NamedExoticComponent<UserEntityProps>;
942
1015
 
1016
+ interface VerifiedBadgeProps {
1017
+ className?: string;
1018
+ /** Accessible name and hover text; default "Identity verified". */
1019
+ label?: string;
1020
+ }
1021
+ /** The verified tick: the user passed an ID check under the name shown. */
1022
+ declare function VerifiedBadge({ className, label }: VerifiedBadgeProps): React$1.JSX.Element;
1023
+
943
1024
  /**
944
1025
  * "AGENT" stamp for an `agt-` peer.
945
1026
  *
@@ -1437,4 +1518,4 @@ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSel
1437
1518
 
1438
1519
  declare function cn(...inputs: ClassValue[]): string;
1439
1520
 
1440
- export { DropdownMenuLabel as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandShortcut as D, Dialog as E, DialogClose as F, DialogContent as G, DialogDescription as H, DialogFooter as I, DialogHeader as J, DialogOverlay as K, DialogPortal as L, type DialogPresentation as M, DialogTitle as N, DialogTrigger as O, type DictateContextValue as P, DictateProvider as Q, DocumentCard as R, type DocumentCardProps as S, DocumentEntity as T, type DocumentEntityProps as U, type DocumentLike as V, DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, AiMarkdown as a, type StatusBadgeComponent as a$, DropdownMenuPortal as a0, DropdownMenuRadioGroup as a1, DropdownMenuRadioItem as a2, DropdownMenuSeparator as a3, DropdownMenuShortcut as a4, DropdownMenuSub as a5, DropdownMenuSubContent as a6, DropdownMenuSubTrigger as a7, DropdownMenuTrigger as a8, ENTITY_MAPPINGS as a9, PopoverTrigger as aA, PortalContainerProvider as aB, type PresenceDisplayStatus as aC, PresenceLabel as aD, Progress as aE, ProjectEntity as aF, type ProjectEntityProps as aG, type ProjectRelation as aH, RadioGroup as aI, RadioGroupItem as aJ, type Rag as aK, RagDot as aL, RelevanceDot as aM, ScrollArea as aN, ScrollBar as aO, Select as aP, SelectContent as aQ, SelectGroup as aR, SelectItem as aS, SelectLabel as aT, SelectScrollDownButton as aU, SelectScrollUpButton as aV, SelectSeparator as aW, SelectTrigger as aX, SelectValue as aY, Separator as aZ, Slider as a_, EntityIcon as aa, type EntityIconComponent as ab, EntityPill as ac, type EntityRegistryOverride as ad, type EntityType as ae, HoverCard as af, HoverCardContent as ag, HoverCardTrigger as ah, IconToggle as ai, type IconToggleProps as aj, Input as ak, type InputProps as al, Label as am, MarkMenu as an, type MarkMenuItem as ao, type MarkMenuProps as ap, MarkdownRenderer as aq, type MarkdownRendererProps as ar, MarkdownStreamingContext as as, NEUTRAL_GRAY as at, PLACEHOLDER_COLOR as au, PassageCard as av, type PassageCardProps as aw, Popover as ax, PopoverAnchor as ay, PopoverContent as az, Avatar as b, trimOpenCitation as b$, type StatusBadgeProps as b0, StatusPill as b1, type StatusPillProps as b2, type StatusVariant as b3, Switch as b4, TAG_TYPE_ICONS as b5, TAG_TYPE_LABELS as b6, Table as b7, TableBody as b8, TableCaption as b9, type UserMenuProps as bA, type UserMenuStatus as bB, VISIBILITY_ICONS as bC, VisibilityIcon as bD, VisibilityToggle as bE, type VisibilityToggleProps as bF, badgeVariants as bG, buttonVariants as bH, cardVariants as bI, closeOpenEmphasis as bJ, cn as bK, configureEntityRegistry as bL, configureRagLabels as bM, configureStatusRegistry as bN, getDocIcon as bO, getEntityColor as bP, getEntityColorStyles as bQ, getEntityIcon as bR, getEntityLabel as bS, getStatusVariant as bT, getTagTypeIcon as bU, getTagTypeLabel as bV, getWorkspaceColor as bW, markdownBaseComponents as bX, normalizeCitationMarkup as bY, splitMarkdownBlocks as bZ, toggleVariants as b_, TableCell as ba, TableFooter as bb, TableHead as bc, TableHeader as bd, TableRow as be, Tabs as bf, TabsContent as bg, TabsList as bh, TabsTrigger as bi, TagEntity as bj, type TagEntityProps as bk, type TagLike as bl, Textarea as bm, type TextareaProps as bn, ThreadVisibilityIcon as bo, Toggle as bp, ToggleGroup as bq, ToggleGroupItem as br, Tooltip as bs, TooltipContent as bt, TooltipProvider as bu, TooltipTrigger as bv, UserEntity as bw, type UserEntityProps as bx, UserMenu as by, type UserMenuItem as bz, AvatarFallback as c, usePortalContainer as c0, AvatarImage as d, Badge as e, type BadgeProps as f, Button as g, type ButtonProps as h, CardContent as i, CardDescription as j, CardFooter as k, CardHeader as l, type CardProps as m, CardTitle as n, Checkbox as o, Collapsible as p, CollapsibleContent as q, CollapsibleTrigger as r, Command as s, CommandDialog as t, CommandEmpty as u, CommandGroup as v, CommandInput as w, CommandItem as x, CommandList as y, CommandSeparator as z };
1521
+ export { DropdownMenuLabel as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandShortcut as D, Dialog as E, DialogClose as F, DialogContent as G, DialogDescription as H, DialogFooter as I, DialogHeader as J, DialogOverlay as K, DialogPortal as L, type DialogPresentation as M, DialogTitle as N, DialogTrigger as O, type DictateContextValue as P, DictateProvider as Q, DocumentCard as R, type DocumentCardProps as S, DocumentEntity as T, type DocumentEntityProps as U, type DocumentLike as V, DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, AiMarkdown as a, SelectScrollDownButton as a$, DropdownMenuPortal as a0, DropdownMenuRadioGroup as a1, DropdownMenuRadioItem as a2, DropdownMenuSeparator as a3, DropdownMenuShortcut as a4, DropdownMenuSub as a5, DropdownMenuSubContent as a6, DropdownMenuSubTrigger as a7, DropdownMenuTrigger as a8, ENTITY_MAPPINGS as a9, NEUTRAL_GRAY as aA, PLACEHOLDER_COLOR as aB, PassageCard as aC, type PassageCardProps as aD, Popover as aE, PopoverAnchor as aF, PopoverContent as aG, PopoverTrigger as aH, PortalContainerProvider as aI, type PresenceDisplayStatus as aJ, PresenceLabel as aK, Progress as aL, ProjectEntity as aM, type ProjectEntityProps as aN, type ProjectRelation as aO, RadioGroup as aP, RadioGroupItem as aQ, type Rag as aR, RagDot as aS, RelevanceDot as aT, ScrollArea as aU, ScrollBar as aV, Select as aW, SelectContent as aX, SelectGroup as aY, SelectItem as aZ, SelectLabel as a_, EntityIcon as aa, type EntityIconComponent as ab, EntityPill as ac, type EntityRegistryOverride as ad, type EntityType as ae, HoverCard as af, HoverCardContent as ag, HoverCardTrigger as ah, IconToggle as ai, type IconToggleProps as aj, type IdentityBusy as ak, type IdentityProblem as al, type IdentityPurchase as am, type IdentityState as an, type IdentityStatus as ao, type IdentityStep as ap, type IdentityVerificationFlow as aq, Input as ar, type InputProps as as, Label as at, MarkMenu as au, type MarkMenuItem as av, type MarkMenuProps as aw, MarkdownRenderer as ax, type MarkdownRendererProps as ay, MarkdownStreamingContext as az, Avatar as b, getEntityLabel as b$, SelectScrollUpButton as b0, SelectSeparator as b1, SelectTrigger as b2, SelectValue as b3, Separator as b4, Slider as b5, type StatusBadgeComponent as b6, type StatusBadgeProps as b7, StatusPill as b8, type StatusPillProps as b9, TooltipContent as bA, TooltipProvider as bB, TooltipTrigger as bC, UserEntity as bD, type UserEntityProps as bE, UserMenu as bF, type UserMenuItem as bG, type UserMenuProps as bH, type UserMenuStatus as bI, VISIBILITY_ICONS as bJ, VerifiedBadge as bK, type VerifiedBadgeProps as bL, VisibilityIcon as bM, VisibilityToggle as bN, type VisibilityToggleProps as bO, badgeVariants as bP, buttonVariants as bQ, cardVariants as bR, closeOpenEmphasis as bS, cn as bT, configureEntityRegistry as bU, configureRagLabels as bV, configureStatusRegistry as bW, getDocIcon as bX, getEntityColor as bY, getEntityColorStyles as bZ, getEntityIcon as b_, type StatusVariant as ba, Switch as bb, TAG_TYPE_ICONS as bc, TAG_TYPE_LABELS as bd, Table as be, TableBody as bf, TableCaption as bg, TableCell as bh, TableFooter as bi, TableHead as bj, TableHeader as bk, TableRow as bl, Tabs as bm, TabsContent as bn, TabsList as bo, TabsTrigger as bp, TagEntity as bq, type TagEntityProps as br, type TagLike as bs, Textarea as bt, type TextareaProps as bu, ThreadVisibilityIcon as bv, Toggle as bw, ToggleGroup as bx, ToggleGroupItem as by, Tooltip as bz, AvatarFallback as c, getStatusVariant as c0, getTagTypeIcon as c1, getTagTypeLabel as c2, getWorkspaceColor as c3, markdownBaseComponents as c4, normalizeCitationMarkup as c5, splitMarkdownBlocks as c6, toggleVariants as c7, trimOpenCitation as c8, usePortalContainer as c9, AvatarImage as d, Badge as e, type BadgeProps as f, Button as g, type ButtonProps as h, CardContent as i, CardDescription as j, CardFooter as k, CardHeader as l, type CardProps as m, CardTitle as n, Checkbox as o, Collapsible as p, CollapsibleContent as q, CollapsibleTrigger as r, Command as s, CommandDialog as t, CommandEmpty as u, CommandGroup as v, CommandInput as w, CommandItem as x, CommandList as y, CommandSeparator as z };