@pactor-app/ui 1.46.0 → 1.48.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/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { Accordion, AccordionItemData, AccordionProps, Affix, AffixProps, Alert, AlertDialog, AlertDialogProps, AlertProps, AlertVariant, Anchor, AnchorItemData, AnchorProps, AspectRatio, AspectRatioProps, Audio, AudioProps, Avatar, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, BadgeVariant, Breadcrumb, BreadcrumbItemData, BreadcrumbProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, CalendarProps, Card, CardProps, Carousel, CarouselImage, CarouselItemData, CarouselProps, Cascader, CascaderOption, CascaderProps, ChatInput, ChatInputProps, Checkbox, CheckboxProps, ChipFilter, ChipFilterItem, ChipFilterProps, ChipNode, ChipNodeProps, ClearHoverButton, ClearHoverButtonProps, CodeBlock, CodeBlockProps, Col, ColBreakpoint, ColProps, ColResponsiveValue, Collapsible, CollapsibleProps, ColorPicker, ColorPickerProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupData, CommandItemData, CommandProps, Container, ContainerProps, ContainerSize, Content, ContentProps, ContextMenu, ContextMenuItemData, ContextMenuProps, ControlSize, DataTable, DataTableColumn, DataTablePagination, DataTableProps, DataTableSort, DataTableSortOrder, DatePicker, DatePickerPreset, DatePickerPresetKey, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DateRangeValue, Descriptions, DescriptionsItemData, DescriptionsProps, Dialog, DialogProps, DiffViewer, DiffViewerProps, DocumentPageData, DocumentPreview, DocumentPreviewProps, Drawer, DrawerPlacement, DrawerProps, DropdownMenu, DropdownMenuItemData, DropdownMenuProps, Empty, EmptyProps, Field, FieldProps, FieldRule, FilePreview, FilePreviewKind, FilePreviewProps, Flex, FlexProps, Footer, FooterProps, For, ForProps, Form, FormContextValue, FormProps, Gallery, GalleryItemData, GalleryProps, Grid, GridProps, Header, HeaderBrandPosition, HeaderDropdown, HeaderDropdownItem, HeaderLocale, HeaderMenuItem, HeaderProps, HeaderTheme, HeaderUser, HeaderUserItem, HoverCard, HoverCardProps, ICONS, Icon, IconProps, IconSize, Image, ImageLightbox, ImageLightboxProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupProps, InputOTP, InputOTPProps, InputProps, Item, ItemProps, JSONViewer, JSONViewerProps, Kbd, KbdProps, Label, LabelProps, Layout, LayoutProps, Link, LinkProps, List, ListItemData, ListProps, LoadingOverlay, LoadingOverlayProps, MentionOption, Mentions, MentionsProps, Menu, MenuItem, MenuProps, Menubar, MenubarLeafItem, MenubarMenuData, MenubarProps, Message, MessageProps, NavigationMenu, NavigationMenuChildItem, NavigationMenuItemData, NavigationMenuProps, Notification, NotificationProps, NumberInput, NumberInputProps, Page, PageProps, Pagination, PaginationProps, Popconfirm, PopconfirmProps, Popover, PopoverProps, Progress, ProgressProps, QRCode, QRCodeProps, RadioGroup, RadioGroupOption, RadioGroupProps, RailTooltip, Rate, RateProps, Resizable, ResizablePanelData, ResizableProps, Result, ResultProps, ResultStatus, RichText, RichTextProps, Row, RowAlign, RowJustify, RowProps, ScrollArea, ScrollAreaProps, Segmented, SegmentedOption, SegmentedProps, Select, SelectOption, SelectProps, Separator, SeparatorProps, Sheet, SheetProps, SheetSide, Sidebar, SidebarBrand, SidebarNavItem, SidebarProps, Sider, SiderProps, Skeleton, SkeletonProps, SkeletonShape, Slider, SliderProps, Sonner, SonnerProps, Space, SpaceProps, Spinner, SpinnerProps, SpinnerSize, Statistic, StatisticProps, Status, StatusProps, StatusType, StepItemData, StepStatus, Steps, StepsProps, Switch, SwitchProps, TabItem, Table, TableColumn, TablePagination, TablePaginationInfo, TableProps, Tabs, TabsProps, Tag, TagColor, TagProps, Text, TextProps, TextType, Textarea, TextareaProps, TimePicker, TimePickerProps, Timeline, TimelineItemData, TimelineProps, Toggle, ToggleGroup, ToggleGroupOption, ToggleGroupProps, ToggleProps, Tooltip, TooltipProps, Tour, TourProps, TourStep, Transfer, TransferOption, TransferProps, Tree, TreeNodeData, TreeProps, TreeSelect, TreeSelectOption, TreeSelectProps, Typography, TypographyProps, TypographyVariant, Upload, UploadFileMeta, UploadProps, Video, VideoProps, Watermark, WatermarkProps, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useOptionalRenderer, useSidebarDrawer } from './components/index.cjs';
1
+ export { Accordion, AccordionItemData, AccordionProps, Affix, AffixProps, Alert, AlertDialog, AlertDialogProps, AlertProps, AlertVariant, Anchor, AnchorItemData, AnchorProps, AspectRatio, AspectRatioProps, Audio, AudioProps, Avatar, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, BadgeVariant, Breadcrumb, BreadcrumbItemData, BreadcrumbProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, CalendarProps, Card, CardProps, Carousel, CarouselImage, CarouselItemData, CarouselProps, Cascader, CascaderOption, CascaderProps, ChatInput, ChatInputProps, Checkbox, CheckboxProps, ChipFilter, ChipFilterItem, ChipFilterProps, ChipNode, ChipNodeProps, ClearHoverButton, ClearHoverButtonProps, CodeBlock, CodeBlockProps, Col, ColBreakpoint, ColProps, ColResponsiveValue, Collapsible, CollapsibleProps, ColorPicker, ColorPickerProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupData, CommandItemData, CommandProps, Container, ContainerProps, ContainerSize, Content, ContentProps, ContextMenu, ContextMenuItemData, ContextMenuProps, ControlSize, DataTable, DataTableColumn, DataTablePagination, DataTableProps, DataTableSort, DataTableSortOrder, DatePicker, DatePickerPreset, DatePickerPresetKey, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DateRangeValue, Descriptions, DescriptionsItemData, DescriptionsProps, Dialog, DialogProps, DiffViewer, DiffViewerProps, DocumentPageData, DocumentPreview, DocumentPreviewProps, Drawer, DrawerPlacement, DrawerProps, DropdownMenu, DropdownMenuItemData, DropdownMenuProps, Empty, EmptyProps, Field, FieldProps, FieldRule, FilePreview, FilePreviewKind, FilePreviewProps, Flex, FlexProps, Footer, FooterProps, For, ForProps, Form, FormContextValue, FormProps, Gallery, GalleryItemData, GalleryProps, Grid, GridProps, Header, HeaderBrandPosition, HeaderDropdown, HeaderDropdownItem, HeaderLocale, HeaderMenuItem, HeaderProps, HeaderTheme, HeaderUser, HeaderUserItem, HoverCard, HoverCardProps, ICONS, Icon, IconProps, IconSize, Image, ImageLightbox, ImageLightboxProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupProps, InputOTP, InputOTPProps, InputProps, Item, ItemProps, JSONViewer, JSONViewerProps, Kbd, KbdProps, Label, LabelProps, Layout, LayoutProps, Link, LinkProps, List, ListItemData, ListProps, LoadingOverlay, LoadingOverlayProps, MentionOption, Mentions, MentionsProps, Menu, MenuItem, MenuItemAction, MenuItemActionEvent, MenuProps, Menubar, MenubarLeafItem, MenubarMenuData, MenubarProps, Message, MessageProps, NavigationMenu, NavigationMenuChildItem, NavigationMenuItemData, NavigationMenuProps, Notification, NotificationProps, NumberInput, NumberInputProps, Page, PageProps, Pagination, PaginationProps, Popconfirm, PopconfirmProps, Popover, PopoverProps, Progress, ProgressProps, QRCode, QRCodeProps, RadioGroup, RadioGroupOption, RadioGroupProps, RailTooltip, Rate, RateProps, Resizable, ResizablePanelData, ResizableProps, Result, ResultProps, ResultStatus, RichText, RichTextProps, Row, RowAlign, RowJustify, RowProps, ScrollArea, ScrollAreaProps, Segmented, SegmentedOption, SegmentedProps, Select, SelectOption, SelectProps, Separator, SeparatorProps, Sheet, SheetProps, SheetSide, Sidebar, SidebarBrand, SidebarNavItem, SidebarProps, Sider, SiderProps, Skeleton, SkeletonProps, SkeletonShape, Slider, SliderProps, Sonner, SonnerProps, Space, SpaceProps, Spinner, SpinnerProps, SpinnerSize, Statistic, StatisticProps, Status, StatusProps, StatusType, StepItemData, StepStatus, Steps, StepsProps, Switch, SwitchProps, TabItem, Table, TableColumn, TablePagination, TablePaginationInfo, TableProps, Tabs, TabsProps, Tag, TagColor, TagProps, Text, TextProps, TextType, Textarea, TextareaProps, TimePicker, TimePickerProps, Timeline, TimelineItemData, TimelineProps, Toggle, ToggleGroup, ToggleGroupOption, ToggleGroupProps, ToggleProps, Tooltip, TooltipProps, Tour, TourProps, TourStep, Transfer, TransferOption, TransferProps, Tree, TreeNodeData, TreeProps, TreeSelect, TreeSelectOption, TreeSelectProps, Typography, TypographyProps, TypographyVariant, Upload, UploadFileMeta, UploadProps, Video, VideoProps, Watermark, WatermarkProps, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useOptionalRenderer, useSidebarDrawer } from './components/index.cjs';
2
2
  export { MarkdownDslComponent as Markdown, MarkdownDslComponentProps as MarkdownProps } from '@pactor-app/markdown';
3
3
  export { AdminBrand, AdminLayout, AdminLayoutBreakpoint, AdminLayoutConfig, AdminLayoutMode, AdminLayoutProps, BlankLayout, BlankLayoutProps, ChatLayout, ChatLayoutBrand, ChatLayoutMenuItem, ChatLayoutProps, LandingLayout, LandingLayoutProps, LayoutComponent, LayoutRegistry, LoginBrand, LoginLayout, LoginLayoutProps, collectDefaultOpenKeys, createLayoutRegistry, findMenuChain, registerBuiltinLayouts, resolveLayout } from './layout/index.cjs';
4
4
  export { InteractionProvider, InteractionProviderProps, OVERLAY_CANCEL_PAYLOAD, OverlayConfig, OverlayEntry, OverlayHost, OverlayHostProps, OverlayListener, OverlayManager, ResolvePageFn, UiBridge, UiMessage, UiModal, createUiBridge, registerInteractionActions } from './interaction/index.cjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Accordion, AccordionItemData, AccordionProps, Affix, AffixProps, Alert, AlertDialog, AlertDialogProps, AlertProps, AlertVariant, Anchor, AnchorItemData, AnchorProps, AspectRatio, AspectRatioProps, Audio, AudioProps, Avatar, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, BadgeVariant, Breadcrumb, BreadcrumbItemData, BreadcrumbProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, CalendarProps, Card, CardProps, Carousel, CarouselImage, CarouselItemData, CarouselProps, Cascader, CascaderOption, CascaderProps, ChatInput, ChatInputProps, Checkbox, CheckboxProps, ChipFilter, ChipFilterItem, ChipFilterProps, ChipNode, ChipNodeProps, ClearHoverButton, ClearHoverButtonProps, CodeBlock, CodeBlockProps, Col, ColBreakpoint, ColProps, ColResponsiveValue, Collapsible, CollapsibleProps, ColorPicker, ColorPickerProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupData, CommandItemData, CommandProps, Container, ContainerProps, ContainerSize, Content, ContentProps, ContextMenu, ContextMenuItemData, ContextMenuProps, ControlSize, DataTable, DataTableColumn, DataTablePagination, DataTableProps, DataTableSort, DataTableSortOrder, DatePicker, DatePickerPreset, DatePickerPresetKey, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DateRangeValue, Descriptions, DescriptionsItemData, DescriptionsProps, Dialog, DialogProps, DiffViewer, DiffViewerProps, DocumentPageData, DocumentPreview, DocumentPreviewProps, Drawer, DrawerPlacement, DrawerProps, DropdownMenu, DropdownMenuItemData, DropdownMenuProps, Empty, EmptyProps, Field, FieldProps, FieldRule, FilePreview, FilePreviewKind, FilePreviewProps, Flex, FlexProps, Footer, FooterProps, For, ForProps, Form, FormContextValue, FormProps, Gallery, GalleryItemData, GalleryProps, Grid, GridProps, Header, HeaderBrandPosition, HeaderDropdown, HeaderDropdownItem, HeaderLocale, HeaderMenuItem, HeaderProps, HeaderTheme, HeaderUser, HeaderUserItem, HoverCard, HoverCardProps, ICONS, Icon, IconProps, IconSize, Image, ImageLightbox, ImageLightboxProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupProps, InputOTP, InputOTPProps, InputProps, Item, ItemProps, JSONViewer, JSONViewerProps, Kbd, KbdProps, Label, LabelProps, Layout, LayoutProps, Link, LinkProps, List, ListItemData, ListProps, LoadingOverlay, LoadingOverlayProps, MentionOption, Mentions, MentionsProps, Menu, MenuItem, MenuProps, Menubar, MenubarLeafItem, MenubarMenuData, MenubarProps, Message, MessageProps, NavigationMenu, NavigationMenuChildItem, NavigationMenuItemData, NavigationMenuProps, Notification, NotificationProps, NumberInput, NumberInputProps, Page, PageProps, Pagination, PaginationProps, Popconfirm, PopconfirmProps, Popover, PopoverProps, Progress, ProgressProps, QRCode, QRCodeProps, RadioGroup, RadioGroupOption, RadioGroupProps, RailTooltip, Rate, RateProps, Resizable, ResizablePanelData, ResizableProps, Result, ResultProps, ResultStatus, RichText, RichTextProps, Row, RowAlign, RowJustify, RowProps, ScrollArea, ScrollAreaProps, Segmented, SegmentedOption, SegmentedProps, Select, SelectOption, SelectProps, Separator, SeparatorProps, Sheet, SheetProps, SheetSide, Sidebar, SidebarBrand, SidebarNavItem, SidebarProps, Sider, SiderProps, Skeleton, SkeletonProps, SkeletonShape, Slider, SliderProps, Sonner, SonnerProps, Space, SpaceProps, Spinner, SpinnerProps, SpinnerSize, Statistic, StatisticProps, Status, StatusProps, StatusType, StepItemData, StepStatus, Steps, StepsProps, Switch, SwitchProps, TabItem, Table, TableColumn, TablePagination, TablePaginationInfo, TableProps, Tabs, TabsProps, Tag, TagColor, TagProps, Text, TextProps, TextType, Textarea, TextareaProps, TimePicker, TimePickerProps, Timeline, TimelineItemData, TimelineProps, Toggle, ToggleGroup, ToggleGroupOption, ToggleGroupProps, ToggleProps, Tooltip, TooltipProps, Tour, TourProps, TourStep, Transfer, TransferOption, TransferProps, Tree, TreeNodeData, TreeProps, TreeSelect, TreeSelectOption, TreeSelectProps, Typography, TypographyProps, TypographyVariant, Upload, UploadFileMeta, UploadProps, Video, VideoProps, Watermark, WatermarkProps, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useOptionalRenderer, useSidebarDrawer } from './components/index.js';
1
+ export { Accordion, AccordionItemData, AccordionProps, Affix, AffixProps, Alert, AlertDialog, AlertDialogProps, AlertProps, AlertVariant, Anchor, AnchorItemData, AnchorProps, AspectRatio, AspectRatioProps, Audio, AudioProps, Avatar, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, BadgeVariant, Breadcrumb, BreadcrumbItemData, BreadcrumbProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, CalendarProps, Card, CardProps, Carousel, CarouselImage, CarouselItemData, CarouselProps, Cascader, CascaderOption, CascaderProps, ChatInput, ChatInputProps, Checkbox, CheckboxProps, ChipFilter, ChipFilterItem, ChipFilterProps, ChipNode, ChipNodeProps, ClearHoverButton, ClearHoverButtonProps, CodeBlock, CodeBlockProps, Col, ColBreakpoint, ColProps, ColResponsiveValue, Collapsible, CollapsibleProps, ColorPicker, ColorPickerProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupData, CommandItemData, CommandProps, Container, ContainerProps, ContainerSize, Content, ContentProps, ContextMenu, ContextMenuItemData, ContextMenuProps, ControlSize, DataTable, DataTableColumn, DataTablePagination, DataTableProps, DataTableSort, DataTableSortOrder, DatePicker, DatePickerPreset, DatePickerPresetKey, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DateRangeValue, Descriptions, DescriptionsItemData, DescriptionsProps, Dialog, DialogProps, DiffViewer, DiffViewerProps, DocumentPageData, DocumentPreview, DocumentPreviewProps, Drawer, DrawerPlacement, DrawerProps, DropdownMenu, DropdownMenuItemData, DropdownMenuProps, Empty, EmptyProps, Field, FieldProps, FieldRule, FilePreview, FilePreviewKind, FilePreviewProps, Flex, FlexProps, Footer, FooterProps, For, ForProps, Form, FormContextValue, FormProps, Gallery, GalleryItemData, GalleryProps, Grid, GridProps, Header, HeaderBrandPosition, HeaderDropdown, HeaderDropdownItem, HeaderLocale, HeaderMenuItem, HeaderProps, HeaderTheme, HeaderUser, HeaderUserItem, HoverCard, HoverCardProps, ICONS, Icon, IconProps, IconSize, Image, ImageLightbox, ImageLightboxProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupProps, InputOTP, InputOTPProps, InputProps, Item, ItemProps, JSONViewer, JSONViewerProps, Kbd, KbdProps, Label, LabelProps, Layout, LayoutProps, Link, LinkProps, List, ListItemData, ListProps, LoadingOverlay, LoadingOverlayProps, MentionOption, Mentions, MentionsProps, Menu, MenuItem, MenuItemAction, MenuItemActionEvent, MenuProps, Menubar, MenubarLeafItem, MenubarMenuData, MenubarProps, Message, MessageProps, NavigationMenu, NavigationMenuChildItem, NavigationMenuItemData, NavigationMenuProps, Notification, NotificationProps, NumberInput, NumberInputProps, Page, PageProps, Pagination, PaginationProps, Popconfirm, PopconfirmProps, Popover, PopoverProps, Progress, ProgressProps, QRCode, QRCodeProps, RadioGroup, RadioGroupOption, RadioGroupProps, RailTooltip, Rate, RateProps, Resizable, ResizablePanelData, ResizableProps, Result, ResultProps, ResultStatus, RichText, RichTextProps, Row, RowAlign, RowJustify, RowProps, ScrollArea, ScrollAreaProps, Segmented, SegmentedOption, SegmentedProps, Select, SelectOption, SelectProps, Separator, SeparatorProps, Sheet, SheetProps, SheetSide, Sidebar, SidebarBrand, SidebarNavItem, SidebarProps, Sider, SiderProps, Skeleton, SkeletonProps, SkeletonShape, Slider, SliderProps, Sonner, SonnerProps, Space, SpaceProps, Spinner, SpinnerProps, SpinnerSize, Statistic, StatisticProps, Status, StatusProps, StatusType, StepItemData, StepStatus, Steps, StepsProps, Switch, SwitchProps, TabItem, Table, TableColumn, TablePagination, TablePaginationInfo, TableProps, Tabs, TabsProps, Tag, TagColor, TagProps, Text, TextProps, TextType, Textarea, TextareaProps, TimePicker, TimePickerProps, Timeline, TimelineItemData, TimelineProps, Toggle, ToggleGroup, ToggleGroupOption, ToggleGroupProps, ToggleProps, Tooltip, TooltipProps, Tour, TourProps, TourStep, Transfer, TransferOption, TransferProps, Tree, TreeNodeData, TreeProps, TreeSelect, TreeSelectOption, TreeSelectProps, Typography, TypographyProps, TypographyVariant, Upload, UploadFileMeta, UploadProps, Video, VideoProps, Watermark, WatermarkProps, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useOptionalRenderer, useSidebarDrawer } from './components/index.js';
2
2
  export { MarkdownDslComponent as Markdown, MarkdownDslComponentProps as MarkdownProps } from '@pactor-app/markdown';
3
3
  export { AdminBrand, AdminLayout, AdminLayoutBreakpoint, AdminLayoutConfig, AdminLayoutMode, AdminLayoutProps, BlankLayout, BlankLayoutProps, ChatLayout, ChatLayoutBrand, ChatLayoutMenuItem, ChatLayoutProps, LandingLayout, LandingLayoutProps, LayoutComponent, LayoutRegistry, LoginBrand, LoginLayout, LoginLayoutProps, collectDefaultOpenKeys, createLayoutRegistry, findMenuChain, registerBuiltinLayouts, resolveLayout } from './layout/index.js';
4
4
  export { InteractionProvider, InteractionProviderProps, OVERLAY_CANCEL_PAYLOAD, OverlayConfig, OverlayEntry, OverlayHost, OverlayHostProps, OverlayListener, OverlayManager, ResolvePageFn, UiBridge, UiMessage, UiModal, createUiBridge, registerInteractionActions } from './interaction/index.js';
package/dist/index.js CHANGED
@@ -42,7 +42,6 @@ import {
42
42
  DiffViewer,
43
43
  DocumentPreview,
44
44
  Drawer,
45
- DropdownMenu,
46
45
  Empty,
47
46
  Field,
48
47
  FilePreview,
@@ -111,7 +110,6 @@ import {
111
110
  Timeline,
112
111
  Toggle,
113
112
  ToggleGroup,
114
- Tooltip,
115
113
  Tour,
116
114
  Transfer,
117
115
  Tree,
@@ -127,7 +125,7 @@ import {
127
125
  registerBuiltinComponents,
128
126
  useFormContext,
129
127
  useOptionalRenderer
130
- } from "./chunk-QB2RZXDD.js";
128
+ } from "./chunk-PF2FHU2X.js";
131
129
  import {
132
130
  InteractionProvider,
133
131
  OVERLAY_CANCEL_PAYLOAD,
@@ -135,7 +133,7 @@ import {
135
133
  OverlayManager,
136
134
  createUiBridge,
137
135
  registerInteractionActions
138
- } from "./chunk-HU2RFIWH.js";
136
+ } from "./chunk-PSEMK4AY.js";
139
137
  import {
140
138
  AdminLayout,
141
139
  BlankLayout,
@@ -147,19 +145,21 @@ import {
147
145
  findMenuChain,
148
146
  registerBuiltinLayouts,
149
147
  resolveLayout
150
- } from "./chunk-JV2V4HCI.js";
148
+ } from "./chunk-RLAOCITX.js";
151
149
  import {
150
+ DropdownMenu,
152
151
  ICONS,
153
152
  Icon,
154
153
  Menu,
155
154
  RailTooltip,
156
155
  Sidebar,
156
+ Tooltip,
157
157
  normalizeIconName,
158
158
  useSidebarDrawer
159
- } from "./chunk-FU4P7CAM.js";
160
- import "./chunk-XA7J5SGA.js";
159
+ } from "./chunk-B2Y6JC36.js";
160
+ import "./chunk-5FQ5SDIZ.js";
161
161
  import "./chunk-YVHPJHW3.js";
162
- import "./chunk-7OBUSV5S.js";
162
+ import "./chunk-YHTRCBKF.js";
163
163
  import "./chunk-WKJUCGV4.js";
164
164
  export {
165
165
  Accordion,
@@ -63,7 +63,11 @@ var OverlayManager = class {
63
63
  );
64
64
  }
65
65
  this.counter += 1;
66
- const entry = { ...config, id: `overlay-${this.counter}` };
66
+ const entry = {
67
+ ...config,
68
+ id: `overlay-${this.counter}`,
69
+ owner: options.owner
70
+ };
67
71
  return new Promise((resolve) => {
68
72
  this.pending.push({
69
73
  entry,
@@ -146,8 +150,13 @@ function registerInteractionActions(actions, manager, ui) {
146
150
  const { content, ...rest } = overlay;
147
151
  const resolved = (0, import_runtime.resolveDeep)(rest, ctx.scope);
148
152
  const config = { ...resolved, content };
153
+ let owner = ctx.context;
154
+ while (owner.parentRuntime !== void 0) {
155
+ owner = owner.parentRuntime;
156
+ }
149
157
  const data = await manager.open(config, {
150
- parentScope: { ...ctx.scope }
158
+ parentScope: { ...ctx.scope },
159
+ owner
151
160
  });
152
161
  return { ok: true, data };
153
162
  });
@@ -417,6 +426,7 @@ var toastTypeClass = {
417
426
  info: "border-l-4 border-l-info",
418
427
  warning: "border-l-4 border-l-warning"
419
428
  };
429
+ var bridgeStacks = /* @__PURE__ */ new WeakMap();
420
430
  function InteractionProvider({
421
431
  bridge,
422
432
  children
@@ -448,11 +458,27 @@ function InteractionProvider({
448
458
  return { modal: modalImpl, message: messageImpl };
449
459
  }, []);
450
460
  (0, import_react.useEffect)(() => {
461
+ let stack = bridgeStacks.get(bridge);
462
+ if (stack === void 0) {
463
+ stack = [];
464
+ bridgeStacks.set(bridge, stack);
465
+ }
466
+ const impl = { modal, message };
467
+ stack.push(impl);
451
468
  bridge.modal = modal;
452
469
  bridge.message = message;
453
470
  return () => {
454
- bridge.modal = void 0;
455
- bridge.message = void 0;
471
+ const list = bridgeStacks.get(bridge);
472
+ if (list === void 0) {
473
+ return;
474
+ }
475
+ const index = list.indexOf(impl);
476
+ if (index !== -1) {
477
+ list.splice(index, 1);
478
+ }
479
+ const top = list[list.length - 1];
480
+ bridge.modal = top?.modal;
481
+ bridge.message = top?.message;
456
482
  };
457
483
  }, [bridge, modal, message]);
458
484
  const handleOk = () => {
@@ -638,7 +664,9 @@ function OverlayHost({ manager, resolvePage }) {
638
664
  },
639
665
  () => `${renderer.context.state.getVersion()}:${renderer.context.data.getVersion()}`
640
666
  );
641
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: stack.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
667
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: stack.filter(
668
+ (entry) => entry.owner === void 0 || entry.owner === renderer.context
669
+ ).map((entry) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
642
670
  OverlayEntryView,
643
671
  {
644
672
  entry,
@@ -656,7 +684,18 @@ function OverlayEntryView({
656
684
  resolvePage
657
685
  }) {
658
686
  const { t } = (0, import_runtime3.useI18n)();
687
+ const childRuntimeRef = (0, import_react2.useRef)(null);
659
688
  const handleCancel = () => manager.close(entry.id);
689
+ const handleConfirm = () => {
690
+ const footer2 = entry.footer ?? {};
691
+ const forms = entry.page ? childRuntimeRef.current?.context.forms : renderer.context.forms;
692
+ const handle = forms?.get(footer2.confirmForm ?? "default");
693
+ if (handle?.submit) {
694
+ handle.submit();
695
+ return;
696
+ }
697
+ manager.close(entry.id, { success: true });
698
+ };
660
699
  let body = null;
661
700
  if (entry.content) {
662
701
  body = renderer.renderChildren([entry.content], {
@@ -669,12 +708,24 @@ function OverlayEntryView({
669
708
  {
670
709
  entry,
671
710
  renderer,
672
- resolvePage
711
+ resolvePage,
712
+ onRuntime: (runtime) => {
713
+ childRuntimeRef.current = runtime;
714
+ }
673
715
  }
674
716
  );
675
717
  }
718
+ const footer = entry.footer ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
719
+ OverlayFooter,
720
+ {
721
+ footer: entry.footer,
722
+ slot: entry.type === "drawer" ? "drawer-footer" : "overlay-modal-footer",
723
+ onCancel: handleCancel,
724
+ onConfirm: handleConfirm
725
+ }
726
+ ) : null;
676
727
  if (entry.type === "drawer") {
677
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ShadcnDrawerView, { entry, onCancel: handleCancel, children: body });
728
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ShadcnDrawerView, { entry, onCancel: handleCancel, footer, children: body });
678
729
  }
679
730
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
680
731
  Dialog,
@@ -711,16 +762,64 @@ function OverlayEntryView({
711
762
  }
712
763
  )
713
764
  ] }),
714
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { "data-slot": "overlay-modal-body", children: body })
765
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { "data-slot": "overlay-modal-body", children: body }),
766
+ footer
715
767
  ]
716
768
  }
717
769
  )
718
770
  }
719
771
  );
720
772
  }
773
+ function OverlayFooter({
774
+ footer,
775
+ slot,
776
+ onCancel,
777
+ onConfirm
778
+ }) {
779
+ const { t } = (0, import_runtime3.useI18n)();
780
+ if (footer.hideCancel && footer.hideConfirm) {
781
+ return null;
782
+ }
783
+ const confirmBusy = footer.confirmLoading === true;
784
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
785
+ "div",
786
+ {
787
+ "data-slot": slot,
788
+ className: cn(
789
+ "flex items-center justify-end gap-2",
790
+ slot === "drawer-footer" && "border-t border-border px-6 py-4"
791
+ ),
792
+ children: [
793
+ footer.hideCancel ? null : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
794
+ Button,
795
+ {
796
+ variant: "outline",
797
+ disabled: confirmBusy,
798
+ onClick: onCancel,
799
+ "data-slot": "overlay-cancel",
800
+ children: footer.cancelText ?? t("pactor.overlay.cancel")
801
+ }
802
+ ),
803
+ footer.hideConfirm ? null : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
804
+ Button,
805
+ {
806
+ disabled: footer.confirmDisabled === true || confirmBusy,
807
+ onClick: onConfirm,
808
+ "data-slot": "overlay-confirm",
809
+ children: [
810
+ confirmBusy ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Loader2, { className: "animate-spin" }) : null,
811
+ footer.confirmText ?? t("pactor.overlay.confirm")
812
+ ]
813
+ }
814
+ )
815
+ ]
816
+ }
817
+ );
818
+ }
721
819
  function ShadcnDrawerView({
722
820
  entry,
723
821
  onCancel,
822
+ footer,
724
823
  children
725
824
  }) {
726
825
  const { t } = (0, import_runtime3.useI18n)();
@@ -764,7 +863,8 @@ function ShadcnDrawerView({
764
863
  ]
765
864
  }
766
865
  ),
767
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { "data-slot": "drawer-body", className: "flex-1 overflow-auto p-6", children })
866
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { "data-slot": "drawer-body", className: "flex-1 overflow-auto p-6", children }),
867
+ footer
768
868
  ]
769
869
  }
770
870
  )
@@ -774,7 +874,8 @@ function ShadcnDrawerView({
774
874
  function PageOverlayBody({
775
875
  entry,
776
876
  renderer,
777
- resolvePage
877
+ resolvePage,
878
+ onRuntime
778
879
  }) {
779
880
  const [child, setChild] = (0, import_react2.useState)(null);
780
881
  const [error, setError] = (0, import_react2.useState)(null);
@@ -807,7 +908,9 @@ function PageOverlayBody({
807
908
  http: host.http,
808
909
  route: { params: entry.params ?? {} }
809
910
  });
911
+ created.context.parentRuntime = host;
810
912
  setChild(created);
913
+ onRuntime?.(created);
811
914
  } catch (cause) {
812
915
  if (!cancelled) {
813
916
  setError(cause instanceof Error ? cause : new Error(String(cause)));
@@ -816,6 +919,7 @@ function PageOverlayBody({
816
919
  })();
817
920
  return () => {
818
921
  cancelled = true;
922
+ onRuntime?.(null);
819
923
  void created?.destroy();
820
924
  };
821
925
  }, [entry.id]);
@@ -3,6 +3,30 @@ import { ActionRegistry } from '@pactor-app/runtime';
3
3
  import * as React from 'react';
4
4
  import { ReactNode } from 'react';
5
5
 
6
+ /**
7
+ * Overlay 底部按钮区配置(modal / drawer 通用)。声明 `footer` 即启用按钮区;
8
+ * 取消 / 确认两个按钮缺省都展示,可分别隐藏。
9
+ */
10
+ interface OverlayFooterConfig {
11
+ /** 取消按钮文案(缺省 i18n「取消」);点击 = 取消语义关闭({ success: false }) */
12
+ cancelText?: string;
13
+ /** 确认按钮文案(缺省 i18n「确认」) */
14
+ confirmText?: string;
15
+ /** 隐藏取消按钮 */
16
+ hideCancel?: boolean;
17
+ /** 隐藏确认按钮 */
18
+ hideConfirm?: boolean;
19
+ /** 确认按钮禁用 */
20
+ confirmDisabled?: boolean;
21
+ /** 确认按钮 loading(加载中并禁用;求值时机同 title 等配置字段) */
22
+ confirmLoading?: boolean;
23
+ /**
24
+ * 确认键要提交的表单名(overlay 内容里 Form 的 name,缺省 'default'):
25
+ * 命中 = requestSubmit(校验通过后走表单自身 onSubmit 链,典型以
26
+ * overlay.close 携带表单值收尾);未命中 = 以 `{ success: true }` 关闭
27
+ */
28
+ confirmForm?: string;
29
+ }
6
30
  /**
7
31
  * Overlay 打开配置(设计文档第 45 节,决策 D1)。
8
32
  *
@@ -24,10 +48,18 @@ interface OverlayConfig {
24
48
  };
25
49
  /** 传入 overlay 内容作用域的 `params` 键 */
26
50
  params?: Record<string, unknown>;
51
+ /** 底部按钮区(缺省不渲染;声明后取消/确认缺省都展示) */
52
+ footer?: OverlayFooterConfig;
27
53
  }
28
54
  /** 堆栈条目:配置 + 生成的 id */
29
55
  interface OverlayEntry extends OverlayConfig {
30
56
  id: string;
57
+ /**
58
+ * 打开方身份(缺省为发起 overlay.open 的运行时上下文根):多运行时
59
+ * 共享同一 OverlayManager(如布局嵌套链共用装配单例)时,OverlayHost
60
+ * 只渲染 owner 匹配所在运行时的条目;缺省(程序直开)所有宿主可见
61
+ */
62
+ owner?: unknown;
31
63
  }
32
64
  /** 堆栈变化监听器:open / close 时以最新堆栈快照回调 */
33
65
  type OverlayListener = (stack: readonly OverlayEntry[]) => void;
@@ -62,6 +94,7 @@ declare class OverlayManager {
62
94
  */
63
95
  open(config: OverlayConfig, options?: {
64
96
  parentScope?: Record<string, unknown>;
97
+ owner?: unknown;
65
98
  }): Promise<unknown>;
66
99
  /**
67
100
  * 关闭 overlay 并以 payload resolve 对应的 open Promise:
@@ -148,7 +181,8 @@ interface InteractionProviderProps {
148
181
  * - `message.{success,error,info,warning}`:toast 栈(容器固定右上角,
149
182
  * 自动约 3s 消失,类型色条读语义令牌)。
150
183
  *
151
- * unmount 时清空 bridge,动作退化为受控失败。
184
+ * 多 Provider 共存时 bridge 指向最后挂载者(栈顶),卸载后回退到上一
185
+ * 实现;全部卸载后动作退化为受控失败。
152
186
  */
153
187
  declare function InteractionProvider({ bridge, children, }: InteractionProviderProps): React.JSX.Element;
154
188
 
@@ -3,6 +3,30 @@ import { ActionRegistry } from '@pactor-app/runtime';
3
3
  import * as React from 'react';
4
4
  import { ReactNode } from 'react';
5
5
 
6
+ /**
7
+ * Overlay 底部按钮区配置(modal / drawer 通用)。声明 `footer` 即启用按钮区;
8
+ * 取消 / 确认两个按钮缺省都展示,可分别隐藏。
9
+ */
10
+ interface OverlayFooterConfig {
11
+ /** 取消按钮文案(缺省 i18n「取消」);点击 = 取消语义关闭({ success: false }) */
12
+ cancelText?: string;
13
+ /** 确认按钮文案(缺省 i18n「确认」) */
14
+ confirmText?: string;
15
+ /** 隐藏取消按钮 */
16
+ hideCancel?: boolean;
17
+ /** 隐藏确认按钮 */
18
+ hideConfirm?: boolean;
19
+ /** 确认按钮禁用 */
20
+ confirmDisabled?: boolean;
21
+ /** 确认按钮 loading(加载中并禁用;求值时机同 title 等配置字段) */
22
+ confirmLoading?: boolean;
23
+ /**
24
+ * 确认键要提交的表单名(overlay 内容里 Form 的 name,缺省 'default'):
25
+ * 命中 = requestSubmit(校验通过后走表单自身 onSubmit 链,典型以
26
+ * overlay.close 携带表单值收尾);未命中 = 以 `{ success: true }` 关闭
27
+ */
28
+ confirmForm?: string;
29
+ }
6
30
  /**
7
31
  * Overlay 打开配置(设计文档第 45 节,决策 D1)。
8
32
  *
@@ -24,10 +48,18 @@ interface OverlayConfig {
24
48
  };
25
49
  /** 传入 overlay 内容作用域的 `params` 键 */
26
50
  params?: Record<string, unknown>;
51
+ /** 底部按钮区(缺省不渲染;声明后取消/确认缺省都展示) */
52
+ footer?: OverlayFooterConfig;
27
53
  }
28
54
  /** 堆栈条目:配置 + 生成的 id */
29
55
  interface OverlayEntry extends OverlayConfig {
30
56
  id: string;
57
+ /**
58
+ * 打开方身份(缺省为发起 overlay.open 的运行时上下文根):多运行时
59
+ * 共享同一 OverlayManager(如布局嵌套链共用装配单例)时,OverlayHost
60
+ * 只渲染 owner 匹配所在运行时的条目;缺省(程序直开)所有宿主可见
61
+ */
62
+ owner?: unknown;
31
63
  }
32
64
  /** 堆栈变化监听器:open / close 时以最新堆栈快照回调 */
33
65
  type OverlayListener = (stack: readonly OverlayEntry[]) => void;
@@ -62,6 +94,7 @@ declare class OverlayManager {
62
94
  */
63
95
  open(config: OverlayConfig, options?: {
64
96
  parentScope?: Record<string, unknown>;
97
+ owner?: unknown;
65
98
  }): Promise<unknown>;
66
99
  /**
67
100
  * 关闭 overlay 并以 payload resolve 对应的 open Promise:
@@ -148,7 +181,8 @@ interface InteractionProviderProps {
148
181
  * - `message.{success,error,info,warning}`:toast 栈(容器固定右上角,
149
182
  * 自动约 3s 消失,类型色条读语义令牌)。
150
183
  *
151
- * unmount 时清空 bridge,动作退化为受控失败。
184
+ * 多 Provider 共存时 bridge 指向最后挂载者(栈顶),卸载后回退到上一
185
+ * 实现;全部卸载后动作退化为受控失败。
152
186
  */
153
187
  declare function InteractionProvider({ bridge, children, }: InteractionProviderProps): React.JSX.Element;
154
188
 
@@ -5,7 +5,7 @@ import {
5
5
  OverlayManager,
6
6
  createUiBridge,
7
7
  registerInteractionActions
8
- } from "../chunk-HU2RFIWH.js";
8
+ } from "../chunk-PSEMK4AY.js";
9
9
  import "../chunk-YVHPJHW3.js";
10
10
  import "../chunk-WKJUCGV4.js";
11
11
  export {