@wistia/ui 0.8.18 → 0.8.19

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.mts CHANGED
@@ -94,6 +94,8 @@ type UseFocusTrapOptions = {
94
94
  };
95
95
  declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) => (node: HTMLElement | null | undefined) => void;
96
96
 
97
+ declare const useForceUpdate: () => (() => void);
98
+
97
99
  type HoverProps = {
98
100
  onFocus: () => void;
99
101
  onMouseEnter: () => void;
@@ -3221,4 +3223,4 @@ declare const WistiaLogo: {
3221
3223
  displayName: string;
3222
3224
  };
3223
3225
 
3224
- export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useFocusTrap, useFormState, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
3226
+ export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useFocusTrap, useForceUpdate, useFormState, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -94,6 +94,8 @@ type UseFocusTrapOptions = {
94
94
  };
95
95
  declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) => (node: HTMLElement | null | undefined) => void;
96
96
 
97
+ declare const useForceUpdate: () => (() => void);
98
+
97
99
  type HoverProps = {
98
100
  onFocus: () => void;
99
101
  onMouseEnter: () => void;
@@ -3221,4 +3223,4 @@ declare const WistiaLogo: {
3221
3223
  displayName: string;
3222
3224
  };
3223
3225
 
3224
- export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useFocusTrap, useFormState, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
3226
+ export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useFocusTrap, useForceUpdate, useFormState, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.8.18
3
+ * @license @wistia/ui v0.8.19
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2245,10 +2245,19 @@ var useFocusTrap = (active = true, options = {}) => {
2245
2245
  return setRef;
2246
2246
  };
2247
2247
 
2248
+ // src/hooks/useForceUpdate/useForceUpdate.ts
2249
+ import { useCallback as useCallback5, useState as useState4 } from "react";
2250
+ var useForceUpdate = () => {
2251
+ const [, dispatch] = useState4(/* @__PURE__ */ Object.create(null));
2252
+ return useCallback5(() => {
2253
+ dispatch(/* @__PURE__ */ Object.create(null));
2254
+ }, [dispatch]);
2255
+ };
2256
+
2248
2257
  // src/hooks/useIsHovered/useIsHovered.ts
2249
- import { useState as useState4 } from "react";
2258
+ import { useState as useState5 } from "react";
2250
2259
  var useIsHovered = () => {
2251
- const [isHovered, setIsHovered] = useState4(false);
2260
+ const [isHovered, setIsHovered] = useState5(false);
2252
2261
  const onFocus = () => setIsHovered(true);
2253
2262
  const onMouseEnter = () => setIsHovered(true);
2254
2263
  const onMouseMove = () => setIsHovered(true);
@@ -2267,7 +2276,7 @@ var useIsHovered = () => {
2267
2276
  };
2268
2277
 
2269
2278
  // src/hooks/useKey/useKey.ts
2270
- import { useCallback as useCallback5 } from "react";
2279
+ import { useCallback as useCallback6 } from "react";
2271
2280
 
2272
2281
  // src/private/hooks/useEvent/useEvent.ts
2273
2282
  import { useEffect as useEffect4, useRef as useRef4 } from "react";
@@ -2317,7 +2326,7 @@ var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}
2317
2326
 
2318
2327
  // src/hooks/useKey/useKey.ts
2319
2328
  var useKey = (key, eventHandler, { eventName = "keydown", eventTarget, eventOptions } = {}) => {
2320
- const memoizedEventHandler = useCallback5(
2329
+ const memoizedEventHandler = useCallback6(
2321
2330
  (handlerEvent) => {
2322
2331
  if (["INPUT", "TEXTAREA", "SELECT"].includes(document.activeElement?.nodeName ?? "") || document.activeElement?.isContentEditable) {
2323
2332
  return;
@@ -2342,9 +2351,9 @@ var useKey = (key, eventHandler, { eventName = "keydown", eventTarget, eventOpti
2342
2351
  };
2343
2352
 
2344
2353
  // src/hooks/useLocalStorage/useLocalStorage.ts
2345
- import { useState as useState5 } from "react";
2354
+ import { useState as useState6 } from "react";
2346
2355
  var useLocalStorage = (key, initialValue, storage = window.localStorage) => {
2347
- const [storedValue, setStoredValue] = useState5(() => {
2356
+ const [storedValue, setStoredValue] = useState6(() => {
2348
2357
  try {
2349
2358
  const item = storage.getItem(key);
2350
2359
  return item !== null && !!item ? JSON.parse(item) : initialValue;
@@ -2388,7 +2397,7 @@ var useLockBodyScroll = (locked) => {
2388
2397
  import { isBoolean } from "@wistia/type-guards";
2389
2398
 
2390
2399
  // src/hooks/useWindowSize/useWindowSize.ts
2391
- import { useState as useState6, useLayoutEffect as useLayoutEffect2 } from "react";
2400
+ import { useState as useState7, useLayoutEffect as useLayoutEffect2 } from "react";
2392
2401
  import { debounce } from "throttle-debounce";
2393
2402
 
2394
2403
  // src/private/helpers/isClient/isClient.ts
@@ -2396,7 +2405,7 @@ var isClient = () => typeof window !== "undefined" && typeof document !== "undef
2396
2405
 
2397
2406
  // src/hooks/useWindowSize/useWindowSize.ts
2398
2407
  var useWindowSize = (interval = 0) => {
2399
- const [dimensions, setDimensions] = useState6({
2408
+ const [dimensions, setDimensions] = useState7({
2400
2409
  width: isClient() ? window.innerWidth : 0,
2401
2410
  height: isClient() ? window.innerHeight : 0
2402
2411
  });
@@ -2491,7 +2500,7 @@ var usePreviousValue = (value) => {
2491
2500
  };
2492
2501
 
2493
2502
  // src/hooks/useToast/useToast.tsx
2494
- import { useCallback as useCallback6 } from "react";
2503
+ import { useCallback as useCallback7 } from "react";
2495
2504
  import { toast as sonnerToast } from "sonner";
2496
2505
 
2497
2506
  // src/private/components/Toast/Toast.tsx
@@ -2770,7 +2779,7 @@ Toast.displayName = "Toast";
2770
2779
  // src/hooks/useToast/useToast.tsx
2771
2780
  import { jsx as jsx6 } from "react/jsx-runtime";
2772
2781
  var useToast = () => {
2773
- return useCallback6(
2782
+ return useCallback7(
2774
2783
  ({ message, action, colorScheme, icon, position = "bottom-left", duration = 3e3 }) => {
2775
2784
  sonnerToast.custom(
2776
2785
  () => {
@@ -7333,7 +7342,7 @@ var ActionButton = forwardRef3(
7333
7342
  ActionButton.displayName = "ActionButton";
7334
7343
 
7335
7344
  // src/components/Avatar/Avatar.tsx
7336
- import { useState as useState7, useMemo as useMemo3, useEffect as useEffect7 } from "react";
7345
+ import { useState as useState8, useMemo as useMemo3, useEffect as useEffect7 } from "react";
7337
7346
  import { isNil as isNil8, isNotNil as isNotNil8 } from "@wistia/type-guards";
7338
7347
  import styled9 from "styled-components";
7339
7348
 
@@ -7541,7 +7550,7 @@ var Avatar = ({
7541
7550
  onImageLoad,
7542
7551
  ...props
7543
7552
  }) => {
7544
- const [imageLoadState, setImageLoadState] = useState7("loading");
7553
+ const [imageLoadState, setImageLoadState] = useState8("loading");
7545
7554
  useEffect7(() => {
7546
7555
  setImageLoadState("loading");
7547
7556
  }, [imageUrl]);
@@ -8346,7 +8355,7 @@ var Checkbox = forwardRef7(
8346
8355
  Checkbox.displayName = "Checkbox";
8347
8356
 
8348
8357
  // src/components/ClickRegion/ClickRegion.tsx
8349
- import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback7, useEffect as useEffect8 } from "react";
8358
+ import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback8, useEffect as useEffect8 } from "react";
8350
8359
  var ClickRegion = ({ children, targetRef }) => {
8351
8360
  useEffect8(() => {
8352
8361
  if (targetRef.current && targetRef.current.tagName === "A") {
@@ -8356,7 +8365,7 @@ var ClickRegion = ({ children, targetRef }) => {
8356
8365
  } else {
8357
8366
  }
8358
8367
  }, [targetRef]);
8359
- const handleClick = useCallback7(
8368
+ const handleClick = useCallback8(
8360
8369
  (event) => {
8361
8370
  const node = targetRef.current;
8362
8371
  if (event.target instanceof HTMLAnchorElement && !event.target.hasAttribute("data-click-region-target-link") || event.target instanceof HTMLButtonElement && !event.target.hasAttribute("data-click-region-target-button")) {
@@ -8985,7 +8994,7 @@ Divider.displayName = "Divider";
8985
8994
 
8986
8995
  // src/components/EditableHeading/EditableHeading.tsx
8987
8996
  import styled31, { css as css27 } from "styled-components";
8988
- import { useState as useState8, useRef as useRef7 } from "react";
8997
+ import { useState as useState9, useRef as useRef7 } from "react";
8989
8998
 
8990
8999
  // src/components/Tooltip/Tooltip.tsx
8991
9000
  import {
@@ -9343,10 +9352,10 @@ var EditableHeading = ({
9343
9352
  __forceEditing = false,
9344
9353
  editingDisabled = false
9345
9354
  }) => {
9346
- const [isEditing, setIsEditing] = useState8(false);
9347
- const [value, setValue] = useState8(children);
9348
- const [previousValue, setPreviousValue] = useState8(children);
9349
- const [headingHeight, setHeadingHeight] = useState8("60");
9355
+ const [isEditing, setIsEditing] = useState9(false);
9356
+ const [value, setValue] = useState9(children);
9357
+ const [previousValue, setPreviousValue] = useState9(children);
9358
+ const [headingHeight, setHeadingHeight] = useState9("60");
9350
9359
  const headingRef = useRef7(null);
9351
9360
  const handleSetEditing = (editing) => {
9352
9361
  if (editingDisabled) return;
@@ -9426,7 +9435,7 @@ var EditableHeading = ({
9426
9435
  };
9427
9436
 
9428
9437
  // src/components/Form/Form.tsx
9429
- import { forwardRef as forwardRef12, useRef as useRef8, useMemo as useMemo4, createContext as createContext3, useState as useState9, useId as useId2 } from "react";
9438
+ import { forwardRef as forwardRef12, useRef as useRef8, useMemo as useMemo4, createContext as createContext3, useState as useState10, useId as useId2 } from "react";
9430
9439
  import styled33 from "styled-components";
9431
9440
  import { isNotUndefined as isNotUndefined7, isUndefined as isUndefined3 } from "@wistia/type-guards";
9432
9441
 
@@ -9486,8 +9495,8 @@ var FormComponent = ({
9486
9495
  fullWidth = false,
9487
9496
  ...props
9488
9497
  }, forwardedRef) => {
9489
- const [errors, setErrors] = useState9({});
9490
- const [hasSubmitted, setHasSubmitted] = useState9(false);
9498
+ const [errors, setErrors] = useState10({});
9499
+ const [hasSubmitted, setHasSubmitted] = useState10(false);
9491
9500
  const innerRef = useRef8();
9492
9501
  const ref = forwardedRef ?? innerRef;
9493
9502
  const autoId = useId2();
@@ -9564,12 +9573,12 @@ FormComponent.displayName = "Form";
9564
9573
  var Form = forwardRef12(FormComponent);
9565
9574
 
9566
9575
  // src/components/Form/useFormState.tsx
9567
- import { useCallback as useCallback8, useState as useState10 } from "react";
9576
+ import { useCallback as useCallback9, useState as useState11 } from "react";
9568
9577
  var useFormState = (action, initialData = {}) => {
9569
- const [data, setData] = useState10(initialData);
9570
- const [isPending, setIsPending] = useState10(false);
9571
- const [error, setError] = useState10(null);
9572
- const formAction = useCallback8(
9578
+ const [data, setData] = useState11(initialData);
9579
+ const [isPending, setIsPending] = useState11(false);
9580
+ const [error, setError] = useState11(null);
9581
+ const formAction = useCallback9(
9573
9582
  async (nextFormData) => {
9574
9583
  if (nextFormData === null) {
9575
9584
  setData(initialData);
@@ -9960,7 +9969,7 @@ IconButton.displayName = "IconButton";
9960
9969
 
9961
9970
  // src/components/InputClickToCopy/InputClickToCopy.tsx
9962
9971
  import styled38 from "styled-components";
9963
- import { forwardRef as forwardRef14, useEffect as useEffect9, useState as useState11 } from "react";
9972
+ import { forwardRef as forwardRef14, useEffect as useEffect9, useState as useState12 } from "react";
9964
9973
  import { isFunction as isFunction3 } from "@wistia/type-guards";
9965
9974
  import { jsx as jsx230 } from "react/jsx-runtime";
9966
9975
  var StyledInput2 = styled38(Input)`
@@ -9975,7 +9984,7 @@ var StyledInput2 = styled38(Input)`
9975
9984
  var COPY_SUCCESS_DURATION = 2e3;
9976
9985
  var InputClickToCopy = forwardRef14(
9977
9986
  ({ value, onCopy, ...props }, ref) => {
9978
- const [isCopied, setIsCopied] = useState11(false);
9987
+ const [isCopied, setIsCopied] = useState12(false);
9979
9988
  useEffect9(() => {
9980
9989
  if (isCopied) {
9981
9990
  const timeout = setTimeout(() => {
@@ -10214,7 +10223,7 @@ var MenuLabel = ({ children, ...props }) => {
10214
10223
  MenuLabel.displayName = "MenuLabel";
10215
10224
 
10216
10225
  // src/components/Menu/SubMenu.tsx
10217
- import { useState as useState12 } from "react";
10226
+ import { useState as useState13 } from "react";
10218
10227
  import styled43 from "styled-components";
10219
10228
  import {
10220
10229
  DropdownMenuPortal as DropdownMenuPortal2,
@@ -10400,7 +10409,7 @@ var SubMenu = ({
10400
10409
  ...props
10401
10410
  }) => {
10402
10411
  const { isSmAndUp } = useMq();
10403
- const [isExpanded, setIsExpanded] = useState12(false);
10412
+ const [isExpanded, setIsExpanded] = useState13(false);
10404
10413
  const { compact } = useMenuContext();
10405
10414
  return isSmAndUp ? /* @__PURE__ */ jsxs27(DropdownMenuSub, { onOpenChange, children: [
10406
10415
  /* @__PURE__ */ jsxs27(SubMenuTrigger, { ...props, children: [
@@ -11189,13 +11198,13 @@ import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11189
11198
  import { isNil as isNil14 } from "@wistia/type-guards";
11190
11199
 
11191
11200
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11192
- import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState13 } from "react";
11201
+ import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState14 } from "react";
11193
11202
  import { jsx as jsx248 } from "react/jsx-runtime";
11194
11203
  var SelectedItemStyleContext = createContext7(null);
11195
11204
  var SelectedItemStyleProvider = ({
11196
11205
  children
11197
11206
  }) => {
11198
- const [selectedItemMeasurements, setSelectedItemMeasurements] = useState13(null);
11207
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = useState14(null);
11199
11208
  const selectedItemIndicatorStyle = useMemo8(
11200
11209
  () => selectedItemMeasurements != null ? {
11201
11210
  height: `${selectedItemMeasurements.offsetHeight}px`,
@@ -11915,7 +11924,7 @@ var TableRow = ({ children, ...props }) => {
11915
11924
  };
11916
11925
 
11917
11926
  // src/components/Tabs/Tabs.tsx
11918
- import { forwardRef as forwardRef27, useState as useState14 } from "react";
11927
+ import { forwardRef as forwardRef27, useState as useState15 } from "react";
11919
11928
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11920
11929
  import { isNotNil as isNotNil29, isNil as isNil15 } from "@wistia/type-guards";
11921
11930
  import styled69 from "styled-components";
@@ -12114,7 +12123,7 @@ var Tabs = forwardRef27(
12114
12123
  ...props
12115
12124
  }, ref) => {
12116
12125
  const tabItems = extractTabItems(children);
12117
- const [internalSelectedValue, setInternalSelectedValue] = useState14(defaultSelectedValue);
12126
+ const [internalSelectedValue, setInternalSelectedValue] = useState15(defaultSelectedValue);
12118
12127
  const modeProps = defaultSelectedValue !== void 0 ? {
12119
12128
  defaultValue: defaultSelectedValue,
12120
12129
  onValueChange: setInternalSelectedValue
@@ -12943,6 +12952,7 @@ export {
12943
12952
  useClipboard,
12944
12953
  useFilePicker,
12945
12954
  useFocusTrap,
12955
+ useForceUpdate,
12946
12956
  useFormState,
12947
12957
  useImperativeFilePicker,
12948
12958
  useIsHovered,