@gram-ai/elements 1.25.1 → 1.26.0
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.
- package/dist/components/Chat/stories/Charts.stories.d.ts +37 -0
- package/dist/components/Chat/stories/GenerativeUI.stories.d.ts +17 -0
- package/dist/components/Chat/stories/MessageFeedback.stories.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/buttonVariants.d.ts +1 -1
- package/dist/components/ui/charts.stories.d.ts +43 -0
- package/dist/components/ui/generative-ui.stories.d.ts +53 -0
- package/dist/contexts/ChatIdContext.d.ts +11 -0
- package/dist/contexts/contexts.d.ts +1 -0
- package/dist/elements.cjs +1 -1
- package/dist/elements.css +1 -1
- package/dist/elements.js +7 -6
- package/dist/index-BJnv49-A.js +37057 -0
- package/dist/index-BJnv49-A.js.map +1 -0
- package/dist/index-BpJstUh1.cjs +280 -0
- package/dist/index-BpJstUh1.cjs.map +1 -0
- package/dist/index-CUitXazZ.js +30426 -0
- package/dist/index-CUitXazZ.js.map +1 -0
- package/dist/index-ChW-CSuu.cjs +147 -0
- package/dist/index-ChW-CSuu.cjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/plugins/chart/catalog.d.ts +123 -0
- package/dist/plugins/chart/index.d.ts +1 -1
- package/dist/plugins/chart/ui/area-chart.d.ts +16 -0
- package/dist/plugins/chart/ui/bar-chart.d.ts +16 -0
- package/dist/plugins/chart/ui/donut-chart.d.ts +17 -0
- package/dist/plugins/chart/ui/index.d.ts +7 -0
- package/dist/plugins/chart/ui/line-chart.d.ts +17 -0
- package/dist/plugins/chart/ui/pie-chart.d.ts +15 -0
- package/dist/plugins/chart/ui/radar-chart.d.ts +14 -0
- package/dist/plugins/chart/ui/scatter-chart.d.ts +18 -0
- package/dist/plugins/components/MacOSWindowFrame.d.ts +13 -0
- package/dist/plugins/components/PluginLoadingState.d.ts +1 -1
- package/dist/plugins/generative-ui/catalog.d.ts +293 -0
- package/dist/plugins/generative-ui/ui/accordion-wrapper.d.ts +18 -0
- package/dist/plugins/generative-ui/ui/accordion.d.ts +7 -0
- package/dist/plugins/generative-ui/ui/action-button.d.ts +10 -0
- package/dist/plugins/generative-ui/ui/alert-wrapper.d.ts +9 -0
- package/dist/plugins/generative-ui/ui/alert.d.ts +9 -0
- package/dist/plugins/generative-ui/ui/avatar-wrapper.d.ts +9 -0
- package/dist/plugins/generative-ui/ui/avatar.d.ts +11 -0
- package/dist/plugins/generative-ui/ui/badge.d.ts +12 -0
- package/dist/plugins/generative-ui/ui/button-wrapper.d.ts +15 -0
- package/dist/plugins/generative-ui/ui/button.d.ts +10 -0
- package/dist/plugins/generative-ui/ui/card-wrapper.d.ts +10 -0
- package/dist/plugins/generative-ui/ui/card.d.ts +9 -0
- package/dist/plugins/generative-ui/ui/checkbox-wrapper.d.ts +10 -0
- package/dist/plugins/generative-ui/ui/checkbox.d.ts +4 -0
- package/dist/plugins/generative-ui/ui/data-table.d.ts +10 -0
- package/dist/plugins/generative-ui/ui/dialog.d.ts +17 -0
- package/dist/plugins/generative-ui/ui/dropdown-menu.d.ts +25 -0
- package/dist/plugins/generative-ui/ui/grid.d.ts +6 -0
- package/dist/plugins/generative-ui/ui/index.d.ts +40 -0
- package/dist/plugins/generative-ui/ui/input-wrapper.d.ts +11 -0
- package/dist/plugins/generative-ui/ui/input.d.ts +3 -0
- package/dist/plugins/generative-ui/ui/label.d.ts +4 -0
- package/dist/plugins/generative-ui/ui/list.d.ts +6 -0
- package/dist/plugins/generative-ui/ui/metric.d.ts +7 -0
- package/dist/plugins/generative-ui/ui/pagination.d.ts +13 -0
- package/dist/plugins/generative-ui/ui/popover.d.ts +10 -0
- package/dist/plugins/generative-ui/ui/progress.d.ts +10 -0
- package/dist/plugins/generative-ui/ui/radio-group.d.ts +5 -0
- package/dist/plugins/generative-ui/ui/select-wrapper.d.ts +13 -0
- package/dist/plugins/generative-ui/ui/select.d.ts +15 -0
- package/dist/plugins/generative-ui/ui/separator.d.ts +4 -0
- package/dist/plugins/generative-ui/ui/skeleton-wrapper.d.ts +9 -0
- package/dist/plugins/generative-ui/ui/skeleton.d.ts +2 -0
- package/dist/plugins/generative-ui/ui/stack.d.ts +8 -0
- package/dist/plugins/generative-ui/ui/switch.d.ts +6 -0
- package/dist/plugins/generative-ui/ui/table.d.ts +10 -0
- package/dist/plugins/generative-ui/ui/tabs-wrapper.d.ts +21 -0
- package/dist/plugins/generative-ui/ui/tabs.d.ts +11 -0
- package/dist/plugins/generative-ui/ui/text.d.ts +7 -0
- package/dist/plugins/generative-ui/ui/textarea.d.ts +3 -0
- package/dist/plugins/generative-ui/ui/tooltip.d.ts +7 -0
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/{profiler-CijCgLrw.js → profiler-D4Tw5ecI.js} +2 -2
- package/dist/{profiler-CijCgLrw.js.map → profiler-D4Tw5ecI.js.map} +1 -1
- package/dist/{profiler-DAT0DL1W.cjs → profiler-DCWYDZ1F.cjs} +2 -2
- package/dist/{profiler-DAT0DL1W.cjs.map → profiler-DCWYDZ1F.cjs.map} +1 -1
- package/dist/{startRecording-DotsE8QT.cjs → startRecording-3sTskM3H.cjs} +2 -2
- package/dist/{startRecording-DotsE8QT.cjs.map → startRecording-3sTskM3H.cjs.map} +1 -1
- package/dist/{startRecording-gmhENmf0.js → startRecording-BHhcCWQE.js} +2 -2
- package/dist/{startRecording-gmhENmf0.js.map → startRecording-BHhcCWQE.js.map} +1 -1
- package/dist/types/index.d.ts +4 -4
- package/package.json +4 -1
- package/src/components/Chat/stories/Charts.stories.tsx +260 -0
- package/src/components/Chat/stories/ConnectionConfiguration.stories.tsx +6 -6
- package/src/components/Chat/stories/GenerativeUI.stories.tsx +113 -0
- package/src/components/Chat/stories/MessageFeedback.stories.tsx +6 -6
- package/src/components/Chat/stories/ToolApproval.stories.tsx +10 -10
- package/src/components/Chat/stories/Tools.stories.tsx +122 -104
- package/src/components/Chat/stories/Variants.stories.tsx +1 -1
- package/src/components/Replay.stories.tsx +1 -1
- package/src/components/Replay.tsx +18 -13
- package/src/components/ShadowRoot.tsx +5 -1
- package/src/components/assistant-ui/message-feedback.tsx +6 -7
- package/src/components/assistant-ui/thread.tsx +76 -11
- package/src/components/ui/charts.stories.tsx +246 -0
- package/src/components/ui/generative-ui.stories.tsx +557 -0
- package/src/components/ui/generative-ui.tsx +60 -360
- package/src/components/ui/tool-ui.stories.tsx +6 -3
- package/src/contexts/ChatIdContext.tsx +21 -0
- package/src/contexts/ElementsProvider.tsx +77 -37
- package/src/contexts/contexts.ts +2 -0
- package/src/hooks/useAuth.ts +18 -3
- package/src/hooks/useFollowOnSuggestions.ts +6 -1
- package/src/index.ts +1 -0
- package/src/plugins/chart/catalog.ts +141 -0
- package/src/plugins/chart/component.tsx +79 -125
- package/src/plugins/chart/index.ts +141 -89
- package/src/plugins/chart/ui/area-chart.tsx +133 -0
- package/src/plugins/chart/ui/bar-chart.tsx +137 -0
- package/src/plugins/chart/ui/donut-chart.tsx +167 -0
- package/src/plugins/chart/ui/index.ts +7 -0
- package/src/plugins/chart/ui/line-chart.tsx +135 -0
- package/src/plugins/chart/ui/pie-chart.tsx +148 -0
- package/src/plugins/chart/ui/radar-chart.tsx +105 -0
- package/src/plugins/chart/ui/scatter-chart.tsx +132 -0
- package/src/plugins/components/MacOSWindowFrame.tsx +55 -0
- package/src/plugins/components/PluginLoadingState.tsx +9 -13
- package/src/plugins/generative-ui/catalog.ts +277 -0
- package/src/plugins/generative-ui/component.tsx +112 -21
- package/src/plugins/generative-ui/index.ts +20 -141
- package/src/plugins/generative-ui/ui/accordion-wrapper.tsx +57 -0
- package/src/plugins/generative-ui/ui/accordion.tsx +66 -0
- package/src/plugins/generative-ui/ui/action-button.tsx +68 -0
- package/src/plugins/generative-ui/ui/alert-wrapper.tsx +26 -0
- package/src/plugins/generative-ui/ui/alert.tsx +66 -0
- package/src/plugins/generative-ui/ui/avatar-wrapper.tsx +22 -0
- package/src/plugins/generative-ui/ui/avatar.tsx +109 -0
- package/src/plugins/generative-ui/ui/badge.tsx +65 -0
- package/src/plugins/generative-ui/ui/button-wrapper.tsx +32 -0
- package/src/plugins/generative-ui/ui/button.tsx +65 -0
- package/src/plugins/generative-ui/ui/card-wrapper.tsx +36 -0
- package/src/plugins/generative-ui/ui/card.tsx +92 -0
- package/src/plugins/generative-ui/ui/checkbox-wrapper.tsx +39 -0
- package/src/plugins/generative-ui/ui/checkbox.tsx +32 -0
- package/src/plugins/generative-ui/ui/data-table.tsx +53 -0
- package/src/plugins/generative-ui/ui/dialog.tsx +158 -0
- package/src/plugins/generative-ui/ui/dropdown-menu.tsx +257 -0
- package/src/plugins/generative-ui/ui/grid.tsx +29 -0
- package/src/plugins/generative-ui/ui/index.ts +43 -0
- package/src/plugins/generative-ui/ui/input-wrapper.tsx +38 -0
- package/src/plugins/generative-ui/ui/input.tsx +21 -0
- package/src/plugins/generative-ui/ui/label.tsx +24 -0
- package/src/plugins/generative-ui/ui/list.tsx +34 -0
- package/src/plugins/generative-ui/ui/metric.tsx +53 -0
- package/src/plugins/generative-ui/ui/pagination.tsx +127 -0
- package/src/plugins/generative-ui/ui/popover.tsx +89 -0
- package/src/plugins/generative-ui/ui/progress.tsx +57 -0
- package/src/plugins/generative-ui/ui/radio-group.tsx +45 -0
- package/src/plugins/generative-ui/ui/select-wrapper.tsx +41 -0
- package/src/plugins/generative-ui/ui/select.tsx +190 -0
- package/src/plugins/generative-ui/ui/separator.tsx +28 -0
- package/src/plugins/generative-ui/ui/skeleton-wrapper.tsx +30 -0
- package/src/plugins/generative-ui/ui/skeleton.tsx +13 -0
- package/src/plugins/generative-ui/ui/stack.tsx +54 -0
- package/src/plugins/generative-ui/ui/switch.tsx +35 -0
- package/src/plugins/generative-ui/ui/table.tsx +116 -0
- package/src/plugins/generative-ui/ui/tabs-wrapper.tsx +51 -0
- package/src/plugins/generative-ui/ui/tabs.tsx +92 -0
- package/src/plugins/generative-ui/ui/text.tsx +33 -0
- package/src/plugins/generative-ui/ui/textarea.tsx +18 -0
- package/src/plugins/generative-ui/ui/tooltip.tsx +57 -0
- package/src/types/index.ts +4 -4
- package/dist/components/Chat/stories/Plugins.stories.d.ts +0 -12
- package/dist/index-C3UbmFRR.cjs +0 -178
- package/dist/index-C3UbmFRR.cjs.map +0 -1
- package/dist/index-CtyV0c-T.js +0 -27225
- package/dist/index-CtyV0c-T.js.map +0 -1
- package/dist/index-DxJwZ5Kc.js +0 -39975
- package/dist/index-DxJwZ5Kc.js.map +0 -1
- package/dist/index-iUSSoKFz.cjs +0 -251
- package/dist/index-iUSSoKFz.cjs.map +0 -1
- package/src/components/Chat/stories/Plugins.stories.tsx +0 -158
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "success" | "default" | "error" | "destructive" | "secondary" | "warning" | "outline" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
interface BadgeProps extends React.ComponentProps<'span'>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
/** Content text (matches LLM prompt) - rendered as children */
|
|
9
|
+
content?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function Badge({ className, variant, asChild, content, children, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ButtonWrapperProps {
|
|
2
|
+
label: string;
|
|
3
|
+
variant?: 'default' | 'secondary' | 'destructive' | 'outline' | 'ghost';
|
|
4
|
+
size?: 'default' | 'sm' | 'lg' | 'icon';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** Backend action to trigger (future use) */
|
|
7
|
+
action?: string;
|
|
8
|
+
/** Parameters for the action (future use) */
|
|
9
|
+
actionParams?: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Button wrapper that takes label as a prop.
|
|
13
|
+
* The action/actionParams props are for future backend integration.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ButtonWrapper({ label, variant, size, disabled, }: ButtonWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "link" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface CardWrapperProps extends React.ComponentProps<'div'> {
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* CardWrapper is a frameless container for generative UI content.
|
|
7
|
+
* It has no border or shadow since it's rendered inside MacOSWindowFrame.
|
|
8
|
+
* Children are spaced using flex gap for proper composition.
|
|
9
|
+
*/
|
|
10
|
+
export declare function CardWrapper({ title, className, children, ...props }: CardWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface CheckboxWrapperProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
/** Path for form state management (future use) */
|
|
4
|
+
valuePath: string;
|
|
5
|
+
defaultChecked?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Checkbox wrapper that adds label support.
|
|
9
|
+
*/
|
|
10
|
+
export declare function CheckboxWrapper({ label, valuePath, defaultChecked, }: CheckboxWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DataTableProps extends React.ComponentProps<'div'> {
|
|
3
|
+
headers?: string[];
|
|
4
|
+
rows: (string | number)[][];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* DataTable adapts the compound Table component to a simple props-based API
|
|
8
|
+
* for use with the json-render catalog.
|
|
9
|
+
*/
|
|
10
|
+
export declare function DataTable({ headers, rows, className, ...props }: DataTableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<'div'> & {
|
|
13
|
+
showCloseButton?: boolean;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
variant?: 'default' | 'destructive';
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
22
|
+
inset?: boolean;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface GridProps extends React.ComponentProps<'div'> {
|
|
3
|
+
columns?: number;
|
|
4
|
+
gap?: 'sm' | 'md' | 'lg';
|
|
5
|
+
}
|
|
6
|
+
export declare function Grid({ columns, gap, className, ...props }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './alert';
|
|
3
|
+
export * from './avatar';
|
|
4
|
+
export * from './badge';
|
|
5
|
+
export * from './button';
|
|
6
|
+
export * from './card';
|
|
7
|
+
export * from './checkbox';
|
|
8
|
+
export * from './dialog';
|
|
9
|
+
export * from './dropdown-menu';
|
|
10
|
+
export * from './input';
|
|
11
|
+
export * from './label';
|
|
12
|
+
export * from './pagination';
|
|
13
|
+
export * from './popover';
|
|
14
|
+
export * from './progress';
|
|
15
|
+
export * from './radio-group';
|
|
16
|
+
export * from './select';
|
|
17
|
+
export * from './separator';
|
|
18
|
+
export * from './skeleton';
|
|
19
|
+
export * from './switch';
|
|
20
|
+
export * from './table';
|
|
21
|
+
export * from './tabs';
|
|
22
|
+
export * from './textarea';
|
|
23
|
+
export * from './tooltip';
|
|
24
|
+
export * from './accordion-wrapper';
|
|
25
|
+
export * from './action-button';
|
|
26
|
+
export * from './alert-wrapper';
|
|
27
|
+
export * from './avatar-wrapper';
|
|
28
|
+
export * from './button-wrapper';
|
|
29
|
+
export * from './card-wrapper';
|
|
30
|
+
export * from './checkbox-wrapper';
|
|
31
|
+
export * from './data-table';
|
|
32
|
+
export * from './grid';
|
|
33
|
+
export * from './input-wrapper';
|
|
34
|
+
export * from './list';
|
|
35
|
+
export * from './metric';
|
|
36
|
+
export * from './select-wrapper';
|
|
37
|
+
export * from './skeleton-wrapper';
|
|
38
|
+
export * from './stack';
|
|
39
|
+
export * from './tabs-wrapper';
|
|
40
|
+
export * from './text';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface InputWrapperProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
type?: 'text' | 'email' | 'password' | 'number' | 'tel';
|
|
5
|
+
/** Path for form state management (future use) */
|
|
6
|
+
valuePath: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Input wrapper that adds label support.
|
|
10
|
+
*/
|
|
11
|
+
export declare function InputWrapper({ label, placeholder, type, valuePath, }: InputWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MetricProps extends React.ComponentProps<'div'> {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
format?: 'number' | 'currency' | 'percent';
|
|
6
|
+
}
|
|
7
|
+
export declare function Metric({ label, value, format, className, ...props }: MetricProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Button } from './button';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
type PaginationLinkProps = {
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
9
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverHeader, PopoverTitle, PopoverDescription, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Progress as ProgressPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface ProgressProps extends Omit<React.ComponentProps<typeof ProgressPrimitive.Root>, 'max'> {
|
|
4
|
+
/** Label to display above the progress bar (matches LLM prompt) */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Maximum value (matches LLM prompt) */
|
|
7
|
+
max?: number;
|
|
8
|
+
}
|
|
9
|
+
declare function Progress({ className, value, label, max, ...props }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Progress };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SelectWrapperProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
/** Path for form state management (future use) */
|
|
4
|
+
valuePath: string;
|
|
5
|
+
options: Array<{
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Select wrapper that takes options as props and builds the dropdown.
|
|
12
|
+
*/
|
|
13
|
+
export declare function SelectWrapper({ placeholder, valuePath, options, }: SelectWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: 'sm' | 'default';
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Separator };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface SkeletonWrapperProps {
|
|
2
|
+
width?: string;
|
|
3
|
+
height?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Skeleton wrapper that takes width and height as props.
|
|
8
|
+
*/
|
|
9
|
+
export declare function SkeletonWrapper({ width, height, className, }: SkeletonWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface StackProps extends React.ComponentProps<'div'> {
|
|
3
|
+
direction?: 'horizontal' | 'vertical';
|
|
4
|
+
gap?: 'sm' | 'md' | 'lg';
|
|
5
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
6
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around';
|
|
7
|
+
}
|
|
8
|
+
export declare function Stack({ direction, gap, align, justify, className, ...props }: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
size?: 'sm' | 'default';
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Switch };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function Table({ className, ...props }: React.ComponentProps<'table'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TabsWrapperProps {
|
|
3
|
+
defaultValue?: string;
|
|
4
|
+
tabs: Array<{
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}>;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Tabs wrapper that takes a tabs array and renders the tab list automatically.
|
|
12
|
+
*/
|
|
13
|
+
export declare function TabsWrapper({ defaultValue, tabs, children, }: TabsWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface TabContentWrapperProps {
|
|
15
|
+
value: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* TabContent wrapper - passes through to TabsContent.
|
|
20
|
+
*/
|
|
21
|
+
export declare function TabContentWrapper({ value, children }: TabContentWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const tabsListVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "line" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TextProps extends React.ComponentProps<'span'> {
|
|
3
|
+
content?: string;
|
|
4
|
+
/** Matches LLM prompt variants: heading, body, caption, code */
|
|
5
|
+
variant?: 'heading' | 'body' | 'caption' | 'code';
|
|
6
|
+
}
|
|
7
|
+
export declare function Text({ content, variant, className, children, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
package/dist/plugins.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BpJstUh1.cjs");exports.chart=e.chart;exports.generativeUI=e.generativeUI;exports.recommended=e.recommended;
|
|
2
2
|
//# sourceMappingURL=plugins.cjs.map
|
package/dist/plugins.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as Q, Y as D, Z as Y, X as Z, R as $, _ as x, $ as J, a0 as W, a1 as ee, a2 as k, e as M, a3 as te, a4 as I, a5 as ne, Q as se, O as re, y as oe, a6 as ae, a7 as ie } from "./index-
|
|
1
|
+
import { V as Q, Y as D, Z as Y, X as Z, R as $, _ as x, $ as J, a0 as W, a1 as ee, a2 as k, e as M, a3 as te, a4 as I, a5 as ne, Q as se, O as re, y as oe, a6 as ae, a7 as ie } from "./index-BJnv49-A.js";
|
|
2
2
|
function le(e, t, o, a) {
|
|
3
3
|
const f = (d) => {
|
|
4
4
|
t.notify(14, { error: d }), Z("Error reported to customer", { "error.message": d.message });
|
|
@@ -275,4 +275,4 @@ export {
|
|
|
275
275
|
ke as DEFAULT_RUM_PROFILER_CONFIGURATION,
|
|
276
276
|
Ee as createRumProfiler
|
|
277
277
|
};
|
|
278
|
-
//# sourceMappingURL=profiler-
|
|
278
|
+
//# sourceMappingURL=profiler-D4Tw5ecI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiler-CijCgLrw.js","sources":["../../node_modules/.pnpm/@datadog+browser-rum-core@6.24.1/node_modules/@datadog/browser-rum-core/esm/transport/formDataTransport.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/utils/getNumberOfSamples.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/utils/longTaskRegistry.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/profilingCorrelation.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/utils/getDefaultViewName.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/utils/getCustomOrDefaultViewName.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/transport/buildProfileEventAttributes.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/transport/assembly.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/profiler.js"],"sourcesContent":null,"names":["createFormDataTransport","configuration","lifeCycle","createEncoder","streamId","reportError","error","addTelemetryDebug","httpRequest","createHttpRequest","encoder","event","attachments","formData","serializedEvent","jsonStringify","bytesCount","key","value","objectEntries","serializedValue","result","encode","data","resolve","encoderResult","getNumberOfSamples","samples","numberOfSamples","sample","registry","setLongTaskId","longTaskId","startTime","getLongTaskId","cleanupLongTaskRegistryAfterCollection","collectionRelativeTime","performanceStartTime","mayStoreLongTaskIdForProfilerCorrelation","rawRumEvent","RumEventType","PATH_MIXED_ALPHANUMERICS","getDefaultViewName","viewPathUrl","getCustomOrDefaultViewName","customViewName","buildProfileEventAttributes","profilerTrace","applicationId","sessionId","attributes","ids","names","extractViewIdsAndNames","longTaskIds","longTask","id","views","view","assembleProfilingPayload","buildProfileEvent","tags","buildTags","profileAttributes","profileEventTags","buildProfileEventTags","currentDrift","DEFAULT_RUM_PROFILER_CONFIGURATION","createRumProfiler","session","profilingContextManager","profilerConfiguration","transport","isLongAnimationFrameEnabled","supportPerformanceTimingEvent","RumPerformanceEntryType","lastViewEntry","globalCleanupTasks","instance","start","viewEntry","addEventListener","handleVisibilityChange","handleBeforeUnload","startNextProfilerInstance","stop","stopProfilerInstance","task","clocksNow","addEventListeners","existingInstance","cleanupTasks","observer","handlePerformance","getLongTaskEntryType","rawEventCollectedSubscription","viewUpdatedSubscription","collectViewEntry","globalThisProfiler","getGlobalObject","collectProfilerInstance","monitorError","profiler","e","display","setTimeout","handleSampleBufferFull","lastInstance","_a","_b","handleLongTaskEntries","clearTimeout","startClocks","longTasks","collectClocks","trace","endClocks","hasLongTasks","isBelowDurationThreshold","elapsed","isBelowSampleThreshold","handleProfilerTrace","clocksOrigin","nextState","cleanupTask","payload","list","entries","entry","relativeToClocks","isStopped","isRunning","isPaused"],"mappings":";AACO,SAASA,GAAwBC,GAAeC,GAAWC,GAAeC,GAAU;AACvF,QAAMC,IAAc,CAACC,MAAU;AAC3B,IAAAJ,EAAU,OAAO,IAAiD,EAAE,OAAAI,EAAK,CAAE,GAE3EC,EAAkB,8BAA8B,EAAE,iBAAiBD,EAAM,QAAO,CAAE;AAAA,EACtF,GACME,IAAcC,EAAkB,CAACR,EAAc,wBAAwB,GAAGI,CAAW,GACrFK,IAAUP,EAAcC,CAAQ;AACtC,SAAO;AAAA,IACH,MAAM,KAAK,EAAE,OAAAO,GAAO,GAAGC,EAAW,GAAI;AAClC,YAAMC,IAAW,IAAI,SAAQ,GACvBC,IAAkBC,EAAcJ,CAAK;AAC3C,UAAI,CAACG;AACD,cAAM,IAAI,MAAM,2BAA2B;AAE/C,MAAAD,EAAS,OAAO,SAAS,IAAI,KAAK,CAACC,CAAe,GAAG,EAAE,MAAM,mBAAkB,CAAE,GAAG,YAAY;AAChG,UAAIE,IAAaF,EAAgB;AACjC,iBAAW,CAACG,GAAKC,CAAK,KAAKC,EAAcP,CAAW,GAAG;AACnD,cAAMQ,IAAkBL,EAAcG,CAAK;AAC3C,YAAI,CA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AAIjD,EAAS,UAAU;AAGvB,iBAAWkD,KAASD,GAAS;AACzB,YAAIC,EAAM,WAAWzD,EAAsB;AAEvC;AAEJ,cAAMyC,IAAciB,GAAiBD,EAAM,SAAS,GAC9ChG,IAAaE,GAAc8E,EAAY,QAAQ;AAErD,QAAAlC,EAAS,UAAU,KAAK;AAAA,UACpB,IAAI9C;AAAA,UACJ,UAAUgG,EAAM;AAAA,UAChB,WAAWA,EAAM;AAAA,UACjB,aAAAhB;AAAA,QAChB,CAAa;AAAA,MACL;AAAA,EACJ;AACA,WAAS9B,IAAyB;AAC9B,IAAI,SAAS,oBAAoB,YAAYJ,EAAS,UAAU,YAK5DQ,EAAqB,QAAQ,EAAE,MAAMe,CAAY,IAE5C,SAAS,oBAAoB,aAAavB,EAAS,UAAU,YAElEM,EAAyB;AAAA,EAEjC;AACA,WAASD,IAAqB;AAI1B,IAAAC,EAAyB;AAAA,EAC7B;AACA,WAASU,IAAuB;AAC5B,WAAOrB,IAA8B,yBAAyB;AAAA,EAClE;AACA,WAASyD,IAAY;AACjB,WAAOpD,EAAS,UAAU;AAAA,EAC9B;AACA,WAASqD,IAAY;AACjB,WAAOrD,EAAS,UAAU;AAAA,EAC9B;AACA,WAASsD,IAAW;AAChB,WAAOtD,EAAS,UAAU;AAAA,EAC9B;AACA,SAAO,EAAE,OAAAC,GAAO,MAAAM,GAAM,WAAA6C,GAAW,WAAAC,GAAW,UAAAC,EAAQ;AACxD;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
|
|
1
|
+
{"version":3,"file":"profiler-D4Tw5ecI.js","sources":["../../node_modules/.pnpm/@datadog+browser-rum-core@6.24.1/node_modules/@datadog/browser-rum-core/esm/transport/formDataTransport.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/utils/getNumberOfSamples.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/utils/longTaskRegistry.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/profilingCorrelation.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/utils/getDefaultViewName.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/utils/getCustomOrDefaultViewName.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/transport/buildProfileEventAttributes.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/transport/assembly.js","../../node_modules/.pnpm/@datadog+browser-rum@6.24.1/node_modules/@datadog/browser-rum/esm/domain/profiling/profiler.js"],"sourcesContent":null,"names":["createFormDataTransport","configuration","lifeCycle","createEncoder","streamId","reportError","error","addTelemetryDebug","httpRequest","createHttpRequest","encoder","event","attachments","formData","serializedEvent","jsonStringify","bytesCount","key","value","objectEntries","serializedValue","result","encode","data","resolve","encoderResult","getNumberOfSamples","samples","numberOfSamples","sample","registry","setLongTaskId","longTaskId","startTime","getLongTaskId","cleanupLongTaskRegistryAfterCollection","collectionRelativeTime","performanceStartTime","mayStoreLongTaskIdForProfilerCorrelation","rawRumEvent","RumEventType","PATH_MIXED_ALPHANUMERICS","getDefaultViewName","viewPathUrl","getCustomOrDefaultViewName","customViewName","buildProfileEventAttributes","profilerTrace","applicationId","sessionId","attributes","ids","names","extractViewIdsAndNames","longTaskIds","longTask","id","views","view","assembleProfilingPayload","buildProfileEvent","tags","buildTags","profileAttributes","profileEventTags","buildProfileEventTags","currentDrift","DEFAULT_RUM_PROFILER_CONFIGURATION","createRumProfiler","session","profilingContextManager","profilerConfiguration","transport","isLongAnimationFrameEnabled","supportPerformanceTimingEvent","RumPerformanceEntryType","lastViewEntry","globalCleanupTasks","instance","start","viewEntry","addEventListener","handleVisibilityChange","handleBeforeUnload","startNextProfilerInstance","stop","stopProfilerInstance","task","clocksNow","addEventListeners","existingInstance","cleanupTasks","observer","handlePerformance","getLongTaskEntryType","rawEventCollectedSubscription","viewUpdatedSubscription","collectViewEntry","globalThisProfiler","getGlobalObject","collectProfilerInstance","monitorError","profiler","e","display","setTimeout","handleSampleBufferFull","lastInstance","_a","_b","handleLongTaskEntries","clearTimeout","startClocks","longTasks","collectClocks","trace","endClocks","hasLongTasks","isBelowDurationThreshold","elapsed","isBelowSampleThreshold","handleProfilerTrace","clocksOrigin","nextState","cleanupTask","payload","list","entries","entry","relativeToClocks","isStopped","isRunning","isPaused"],"mappings":";AACO,SAASA,GAAwBC,GAAeC,GAAWC,GAAeC,GAAU;AACvF,QAAMC,IAAc,CAACC,MAAU;AAC3B,IAAAJ,EAAU,OAAO,IAAiD,EAAE,OAAAI,EAAK,CAAE,GAE3EC,EAAkB,8BAA8B,EAAE,iBAAiBD,EAAM,QAAO,CAAE;AAAA,EACtF,GACME,IAAcC,EAAkB,CAACR,EAAc,wBAAwB,GAAGI,CAAW,GACrFK,IAAUP,EAAcC,CAAQ;AACtC,SAAO;AAAA,IACH,MAAM,KAAK,EAAE,OAAAO,GAAO,GAAGC,EAAW,GAAI;AAClC,YAAMC,IAAW,IAAI,SAAQ,GACvBC,IAAkBC,EAAcJ,CAAK;AAC3C,UAAI,CAACG;AACD,cAAM,IAAI,MAAM,2BAA2B;AAE/C,MAAAD,EAAS,OAAO,SAAS,IAAI,KAAK,CAACC,CAAe,GAAG,EAAE,MAAM,mBAAkB,CAAE,GAAG,YAAY;AAChG,UAAIE,IAAaF,EAAgB;AACjC,iBAAW,CAACG,GAAKC,CAAK,KAAKC,EAAcP,CAAW,GAAG;AACnD,cAAMQ,IAAkBL,EAAcG,CAAK;AAC3C,YAAI,CAACE;AACD,gBAAM,IAAI,MAAM,gCAAgC;AAEpD,cAAMC,IAAS,MAAMC,GAAOZ,GAASU,CAAe;AACpD,QAAAJ,KAAcK,EAAO,kBACrBR,EAAS,OAAOI,GAA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9ChG,IAAaE,GAAc8E,EAAY,QAAQ;AAErD,QAAAlC,EAAS,UAAU,KAAK;AAAA,UACpB,IAAI9C;AAAA,UACJ,UAAUgG,EAAM;AAAA,UAChB,WAAWA,EAAM;AAAA,UACjB,aAAAhB;AAAA,QAChB,CAAa;AAAA,MACL;AAAA,EACJ;AACA,WAAS9B,IAAyB;AAC9B,IAAI,SAAS,oBAAoB,YAAYJ,EAAS,UAAU,YAK5DQ,EAAqB,QAAQ,EAAE,MAAMe,CAAY,IAE5C,SAAS,oBAAoB,aAAavB,EAAS,UAAU,YAElEM,EAAyB;AAAA,EAEjC;AACA,WAASD,IAAqB;AAI1B,IAAAC,EAAyB;AAAA,EAC7B;AACA,WAASU,IAAuB;AAC5B,WAAOrB,IAA8B,yBAAyB;AAAA,EAClE;AACA,WAASyD,IAAY;AACjB,WAAOpD,EAAS,UAAU;AAAA,EAC9B;AACA,WAASqD,IAAY;AACjB,WAAOrD,EAAS,UAAU;AAAA,EAC9B;AACA,WAASsD,IAAW;AAChB,WAAOtD,EAAS,UAAU;AAAA,EAC9B;AACA,SAAO,EAAE,OAAAC,GAAO,MAAAM,GAAM,WAAA6C,GAAW,WAAAC,GAAW,UAAAC,EAAQ;AACxD;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-
|
|
2
|
-
//# sourceMappingURL=profiler-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-ChW-CSuu.cjs");function K(e,t,i,a){const m=f=>{t.notify(14,{error:f}),s.addTelemetryDebug("Error reported to customer",{"error.message":f.message})},c=s.createHttpRequest([e.profilingEndpointBuilder],m),v=i(a);return{async send({event:f,...h}){const b=new FormData,r=s.jsonStringify(f);if(!r)throw new Error("Failed to serialize event");b.append("event",new Blob([r],{type:"application/json"}),"event.json");let T=r.length;for(const[k,E]of s.objectEntries(h)){const p=s.jsonStringify(E);if(!p)throw new Error("Failed to serialize attachment");const w=await X(v,p);T+=w.outputBytesCount,b.append(k,new Blob([w.output]),k)}c.send({data:b,bytesCount:T})}}}function X(e,t){return new Promise(i=>{e.write(t),e.finish(a=>{i(a)})})}function J(e){let t=0;for(const i of e)i.stackId!==void 0&&t++;return t}const y=new Map;function Q(e,t){y.set(t,e)}function W(e){return y.get(e)}function O(e){for(const t of y.keys())t<e&&y.delete(t)}function Y({rawRumEvent:e,startTime:t}){if(e.type!==s.RumEventType.LONG_TASK)return;const i=e.long_task.id;Q(i,t)}const Z=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;function $(e){return e?e.replace(Z,"/?"):"/"}const R=(e,t)=>e||$(t);function x(e,t,i){const a={application:{id:t}};i&&(a.session={id:i});const{ids:m,names:c}=ee(e.views);m.length&&(a.view={id:m,name:c});const v=e.longTasks.map(f=>f.id).filter(f=>f!==void 0);return v.length&&(a.long_task={id:v}),a}function ee(e){const t={ids:[],names:[]};for(const i of e)t.ids.push(i.viewId),i.viewName&&t.names.push(i.viewName);return t.names=Array.from(new Set(t.names)),t}function te(e,t,i){return{event:ne(e,t,i),"wall-time.json":e}}function ne(e,t,i){const a=s.buildTags(t),m=x(e,t.applicationId,i),c=se(a);return{...m,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:c.join(","),_dd:{clock_drift:s.currentDrift()}}}function se(e){return e.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}const D={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function re(e,t,i,a,m,c=D){const v=K(e,t,m,6),f=s.supportPerformanceTimingEvent(s.RumPerformanceEntryType.LONG_ANIMATION_FRAME);let h;const b=[];let r={state:"stopped"};function T(n){r.state!=="running"&&(h=n?{startClocks:n.startClocks,viewId:n.id,viewName:R(n.name,document.location.pathname)}:void 0,b.push(s.addEventListener(e,window,"visibilitychange",j).stop,s.addEventListener(e,window,"beforeunload",F).stop),p())}async function k(){await I("stopped"),b.forEach(n=>n()),O(s.clocksNow().relative),a.set({status:"stopped",error_reason:void 0})}function E(n){if(n.state==="running")return{cleanupTasks:n.cleanupTasks,observer:n.observer};const o=[];let l;if(e.trackLongTasks){l=new PerformanceObserver(A),l.observe({entryTypes:[C()]});const d=t.subscribe(12,g=>{Y(g)});o.push(()=>l?.disconnect()),o.push(d.unsubscribe)}const u=t.subscribe(2,d=>{const g={viewId:d.id,viewName:R(d.name,document.location.pathname),startClocks:d.startClocks};P(g),h=g});return o.push(u.unsubscribe),{cleanupTasks:o,observer:l}}function p(){const n=s.getGlobalObject().Profiler;if(!n)throw a.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");w(r).catch(s.monitorError);const{cleanupTasks:o,observer:l}=E(r);let u;try{u=new n({sampleInterval:c.sampleIntervalMs,maxBufferSize:Math.round(c.collectIntervalMs*1.5/c.sampleIntervalMs)})}catch(d){d instanceof Error&&d.message.includes("disabled by Document Policy")?(s.display.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",d),a.set({status:"error",error_reason:"missing-document-policy-header"})):a.set({status:"error",error_reason:"unexpected-exception"});return}a.set({status:"running",error_reason:void 0}),r={state:"running",startClocks:s.clocksNow(),profiler:u,timeoutId:s.setTimeout(p,c.collectIntervalMs),longTasks:[],views:[],cleanupTasks:o,observer:l},P(h),u.addEventListener("samplebufferfull",S)}async function w(n){var o,l;if(n.state!=="running")return;_((l=(o=n.observer)===null||o===void 0?void 0:o.takeRecords())!==null&&l!==void 0?l:[]),s.clearTimeout(n.timeoutId),n.profiler.removeEventListener("samplebufferfull",S);const{startClocks:u,longTasks:d,views:g}=n,z=s.clocksNow();await n.profiler.stop().then(N=>{const L=s.clocksNow(),G=d.length>0,H=s.elapsed(u.timeStamp,L.timeStamp)<c.minProfileDurationMs,q=J(N.samples)<c.minNumberOfSamples;!G&&(H||q)||(M(Object.assign(N,{startClocks:u,endClocks:L,clocksOrigin:s.clocksOrigin(),longTasks:d,views:g,sampleInterval:c.sampleIntervalMs})),O(z.relative))}).catch(s.monitorError)}async function I(n){r.state==="running"&&(r.cleanupTasks.forEach(o=>o()),await w(r),r={state:n})}function P(n){r.state!=="running"||!n||r.views.push(n)}function M(n){var o;const l=(o=i.findTrackedSession())===null||o===void 0?void 0:o.id,u=te(n,e,l);v.send(u)}function S(){p()}function A(n){_(n.getEntries())}function _(n){if(r.state==="running")for(const o of n){if(o.duration<c.sampleIntervalMs)continue;const l=s.relativeToClocks(o.startTime),u=W(l.relative);r.longTasks.push({id:u,duration:o.duration,entryType:o.entryType,startClocks:l})}}function j(){document.visibilityState==="hidden"&&r.state==="running"?I("paused").catch(s.monitorError):document.visibilityState==="visible"&&r.state==="paused"&&p()}function F(){p()}function C(){return f?"long-animation-frame":"longtask"}function U(){return r.state==="stopped"}function B(){return r.state==="running"}function V(){return r.state==="paused"}return{start:T,stop:k,isStopped:U,isRunning:B,isPaused:V}}exports.DEFAULT_RUM_PROFILER_CONFIGURATION=D;exports.createRumProfiler=re;
|
|
2
|
+
//# sourceMappingURL=profiler-DCWYDZ1F.cjs.map
|