@frigade/react 2.8.0 → 2.8.2

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
@@ -1416,6 +1416,7 @@ interface FlowProps extends FlowPropsWithoutChildren {
1416
1416
  children?: (props: FlowChildrenProps) => ReactNode;
1417
1417
  }
1418
1418
  type ParentProps = {
1419
+ as: FlowPropsWithoutChildren['as'];
1419
1420
  containerProps: Record<string, unknown>;
1420
1421
  dismissible: boolean;
1421
1422
  flowId: string;
@@ -1471,11 +1472,11 @@ interface AnnouncementProps extends FlowPropsWithoutChildren, DialogProps {
1471
1472
  */
1472
1473
  defaultOpen?: boolean;
1473
1474
  }
1474
- declare function Announcement({ flowId, part, ...props }: AnnouncementProps): _emotion_react_jsx_runtime.JSX.Element;
1475
+ declare function Announcement({ flowId, ...props }: AnnouncementProps): _emotion_react_jsx_runtime.JSX.Element;
1475
1476
 
1476
1477
  interface BannerProps extends FlowPropsWithoutChildren {
1477
1478
  }
1478
- declare function Banner({ flowId, part, ...props }: BannerProps): _emotion_react_jsx_runtime.JSX.Element;
1479
+ declare function Banner({ flowId, ...props }: BannerProps): _emotion_react_jsx_runtime.JSX.Element;
1479
1480
 
1480
1481
  interface CardHeaderProps extends BoxProps {
1481
1482
  dismissible?: boolean;
@@ -1802,6 +1803,11 @@ interface NPSProps extends FormProps {
1802
1803
  }
1803
1804
  declare function NPS({ as, flowId, fieldTypes, part, options, positiveLabel, negativeLabel, ...props }: NPSProps): _emotion_react_jsx_runtime.JSX.Element;
1804
1805
 
1806
+ interface PingProps extends BoxProps {
1807
+ clickable?: boolean;
1808
+ }
1809
+ declare function Ping({ clickable, part, style, ...props }: PingProps): _emotion_react_jsx_runtime.JSX.Element;
1810
+
1805
1811
  interface ProgressProps extends BoxProps {
1806
1812
  current: number;
1807
1813
  total: number;
@@ -1889,6 +1895,10 @@ interface ProviderProps {
1889
1895
  * The global theme to use across components. See docs on styling: https://docs.frigade.com/v2/sdk/styling/theming
1890
1896
  */
1891
1897
  theme?: Theme;
1898
+ /**
1899
+ * CSS selector to scope Frigade CSS variables into. Defaults to `:root`.
1900
+ */
1901
+ themeSelector?: string;
1892
1902
  /**
1893
1903
  * The user ID of the user who is interacting with Frigade. If not provided, Frigade will generate a random guest ID and persist it in local storage.
1894
1904
  */
@@ -1925,7 +1935,7 @@ interface ProviderProps {
1925
1935
  */
1926
1936
  __flowStateOverrides?: Record<string, StatefulFlow>;
1927
1937
  }
1928
- declare function Provider({ children, css, defaultCollection, navigate, theme, ...props }: ProviderProps): _emotion_react_jsx_runtime.JSX.Element;
1938
+ declare function Provider({ children, css, defaultCollection, navigate, theme, themeSelector, ...props }: ProviderProps): _emotion_react_jsx_runtime.JSX.Element;
1929
1939
 
1930
1940
  interface OverlayProps extends BoxProps {
1931
1941
  lockScroll?: boolean;
@@ -2077,4 +2087,4 @@ declare function useGroup(): {
2077
2087
  isLoading: boolean;
2078
2088
  };
2079
2089
 
2080
- 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, 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 };
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 };