@frigade/react 2.9.6 → 2.9.7-canary.1

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.ts CHANGED
@@ -7,7 +7,7 @@ import * as _frigade_js from '@frigade/js';
7
7
  import { Flow as Flow$1, FlowStep, PropertyPayload, StatefulFlow } from '@frigade/js';
8
8
  export { _frigade_js as FrigadeJS };
9
9
  import * as Collapsible$1 from '@radix-ui/react-collapsible';
10
- import { UseFloatingOptions } from '@floating-ui/react';
10
+ import { UseFloatingOptions, UseFloatingReturn, UseInteractionsReturn, useTransitionStatus } from '@floating-ui/react';
11
11
  import * as react from '@floating-ui/react';
12
12
  export { react as FloatingUI };
13
13
  import { UseFormReturn, ControllerFieldState, Message, ValidationRule } from 'react-hook-form';
@@ -1557,6 +1557,7 @@ declare namespace CollapsibleStep {
1557
1557
 
1558
1558
  type AlignValue$1 = 'after' | 'before' | 'center' | 'end' | 'start';
1559
1559
  type SideValue$1 = 'bottom' | 'left' | 'right' | 'top';
1560
+ type ExtendedPlacement = `${SideValue$1}-${AlignValue$1}`;
1560
1561
  interface FloatingProps extends UseFloatingOptions {
1561
1562
  align?: AlignValue$1;
1562
1563
  alignOffset?: number;
@@ -1564,6 +1565,13 @@ interface FloatingProps extends UseFloatingOptions {
1564
1565
  side?: SideValue$1;
1565
1566
  sideOffset?: number;
1566
1567
  }
1568
+ interface FloatingReturn extends Omit<UseFloatingReturn, 'placement'> {
1569
+ placement: ExtendedPlacement;
1570
+ getFloatingProps: UseInteractionsReturn['getFloatingProps'];
1571
+ getReferenceProps: UseInteractionsReturn['getReferenceProps'];
1572
+ status: ReturnType<typeof useTransitionStatus>;
1573
+ }
1574
+ declare function useFloating({ align, alignOffset, anchor, nodeId, onOpenChange, open, side, sideOffset, }: FloatingProps): FloatingReturn;
1567
1575
 
1568
1576
  interface PopoverRootProps extends FloatingProps {
1569
1577
  autoScroll?: ScrollIntoViewOptions | boolean;
@@ -2087,4 +2095,4 @@ declare function useGroup(): {
2087
2095
  isLoading: boolean;
2088
2096
  };
2089
2097
 
2090
- export { Announcement, AnnouncementProps, Banner, BannerProps, BaseField, Box, BoxProps, Button, ButtonProps, Card, CardHeaderProps, CardProps, index$2 as Checklist, ClientPortal, ClientPortalProps, CollapsibleProps, CollapsibleStepProps, Collection, Dialog, DialogProps, DismissHandler, FieldTypes, Flex, Flow, FlowChildrenProps, FlowConfig, FlowHandlerProp, FlowHandlerProps, FlowProps, FlowPropsWithoutChildren, Form, FormFieldData, FormFieldProps, FormProps, Hint, Image, Label, Media, NPSProps, Ping, index$3 as Popover, index$1 as Progress, ProgressBadge, ProgressBadgeProps, Provider, ProviderProps, RadioField, SelectField, Spotlight, StepHandler, StepHandlerProp, StepHandlerProps, index as Survey, Text, TextField, TextProps, TextareaField, Theme, Tokens, Tooltip, TooltipProps, Tour, TourProps, Video, themeVariables, tokens, useAutoScroll, useBoundingClientRect, useFlow, useFlowHandlers, useFrigade, useGroup, useStepHandlers, useUser };
2098
+ export { Announcement, AnnouncementProps, Banner, BannerProps, BaseField, Box, BoxProps, Button, ButtonProps, Card, CardHeaderProps, CardProps, index$2 as Checklist, ClientPortal, ClientPortalProps, CollapsibleProps, CollapsibleStepProps, Collection, Dialog, DialogProps, DismissHandler, FieldTypes, Flex, Flow, FlowChildrenProps, FlowConfig, FlowHandlerProp, FlowHandlerProps, FlowProps, FlowPropsWithoutChildren, Form, FormFieldData, FormFieldProps, FormProps, Hint, Image, Label, Media, NPSProps, Ping, index$3 as Popover, index$1 as Progress, ProgressBadge, ProgressBadgeProps, Provider, ProviderProps, RadioField, SelectField, Spotlight, StepHandler, StepHandlerProp, StepHandlerProps, index as Survey, Text, TextField, TextProps, TextareaField, Theme, Tokens, Tooltip, TooltipProps, Tour, TourProps, Video, themeVariables, tokens, useAutoScroll, useBoundingClientRect, useFloating, useFlow, useFlowHandlers, useFrigade, useGroup, useStepHandlers, useUser };