@wistia/ui 0.8.18 → 0.8.19-beta.f7571ca5.85a64cd

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-beta.f7571ca5.85a64cd
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";
@@ -2285,8 +2294,7 @@ var noOpFn = () => {
2285
2294
  // src/private/hooks/useEvent/useEvent.ts
2286
2295
  var isEventTargetSupported = (eventTarget) => (
2287
2296
  // @ts-expect-error the compiler thinks that addEventListener may not exist on eventTarget, but we still need to check it.
2288
- // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
2289
- !!(typeof eventTarget === "object" && eventTarget?.addEventListener)
2297
+ Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener)
2290
2298
  );
2291
2299
  var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
2292
2300
  const savedEventHandler = useRef4();
@@ -2317,7 +2325,7 @@ var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}
2317
2325
 
2318
2326
  // src/hooks/useKey/useKey.ts
2319
2327
  var useKey = (key, eventHandler, { eventName = "keydown", eventTarget, eventOptions } = {}) => {
2320
- const memoizedEventHandler = useCallback5(
2328
+ const memoizedEventHandler = useCallback6(
2321
2329
  (handlerEvent) => {
2322
2330
  if (["INPUT", "TEXTAREA", "SELECT"].includes(document.activeElement?.nodeName ?? "") || document.activeElement?.isContentEditable) {
2323
2331
  return;
@@ -2342,12 +2350,12 @@ var useKey = (key, eventHandler, { eventName = "keydown", eventTarget, eventOpti
2342
2350
  };
2343
2351
 
2344
2352
  // src/hooks/useLocalStorage/useLocalStorage.ts
2345
- import { useState as useState5 } from "react";
2353
+ import { useState as useState6 } from "react";
2346
2354
  var useLocalStorage = (key, initialValue, storage = window.localStorage) => {
2347
- const [storedValue, setStoredValue] = useState5(() => {
2355
+ const [storedValue, setStoredValue] = useState6(() => {
2348
2356
  try {
2349
2357
  const item = storage.getItem(key);
2350
- return item !== null && !!item ? JSON.parse(item) : initialValue;
2358
+ return item !== null && Boolean(item) ? JSON.parse(item) : initialValue;
2351
2359
  } catch (error) {
2352
2360
  console.log(error);
2353
2361
  return initialValue;
@@ -2388,7 +2396,7 @@ var useLockBodyScroll = (locked) => {
2388
2396
  import { isBoolean } from "@wistia/type-guards";
2389
2397
 
2390
2398
  // src/hooks/useWindowSize/useWindowSize.ts
2391
- import { useState as useState6, useLayoutEffect as useLayoutEffect2 } from "react";
2399
+ import { useState as useState7, useLayoutEffect as useLayoutEffect2 } from "react";
2392
2400
  import { debounce } from "throttle-debounce";
2393
2401
 
2394
2402
  // src/private/helpers/isClient/isClient.ts
@@ -2396,7 +2404,7 @@ var isClient = () => typeof window !== "undefined" && typeof document !== "undef
2396
2404
 
2397
2405
  // src/hooks/useWindowSize/useWindowSize.ts
2398
2406
  var useWindowSize = (interval = 0) => {
2399
- const [dimensions, setDimensions] = useState6({
2407
+ const [dimensions, setDimensions] = useState7({
2400
2408
  width: isClient() ? window.innerWidth : 0,
2401
2409
  height: isClient() ? window.innerHeight : 0
2402
2410
  });
@@ -2491,7 +2499,7 @@ var usePreviousValue = (value) => {
2491
2499
  };
2492
2500
 
2493
2501
  // src/hooks/useToast/useToast.tsx
2494
- import { useCallback as useCallback6 } from "react";
2502
+ import { useCallback as useCallback7 } from "react";
2495
2503
  import { toast as sonnerToast } from "sonner";
2496
2504
 
2497
2505
  // src/private/components/Toast/Toast.tsx
@@ -2770,7 +2778,7 @@ Toast.displayName = "Toast";
2770
2778
  // src/hooks/useToast/useToast.tsx
2771
2779
  import { jsx as jsx6 } from "react/jsx-runtime";
2772
2780
  var useToast = () => {
2773
- return useCallback6(
2781
+ return useCallback7(
2774
2782
  ({ message, action, colorScheme, icon, position = "bottom-left", duration = 3e3 }) => {
2775
2783
  sonnerToast.custom(
2776
2784
  () => {
@@ -7333,7 +7341,7 @@ var ActionButton = forwardRef3(
7333
7341
  ActionButton.displayName = "ActionButton";
7334
7342
 
7335
7343
  // src/components/Avatar/Avatar.tsx
7336
- import { useState as useState7, useMemo as useMemo3, useEffect as useEffect7 } from "react";
7344
+ import { useState as useState8, useMemo as useMemo3, useEffect as useEffect7 } from "react";
7337
7345
  import { isNil as isNil8, isNotNil as isNotNil8 } from "@wistia/type-guards";
7338
7346
  import styled9 from "styled-components";
7339
7347
 
@@ -7541,7 +7549,7 @@ var Avatar = ({
7541
7549
  onImageLoad,
7542
7550
  ...props
7543
7551
  }) => {
7544
- const [imageLoadState, setImageLoadState] = useState7("loading");
7552
+ const [imageLoadState, setImageLoadState] = useState8("loading");
7545
7553
  useEffect7(() => {
7546
7554
  setImageLoadState("loading");
7547
7555
  }, [imageUrl]);
@@ -8346,7 +8354,7 @@ var Checkbox = forwardRef7(
8346
8354
  Checkbox.displayName = "Checkbox";
8347
8355
 
8348
8356
  // src/components/ClickRegion/ClickRegion.tsx
8349
- import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback7, useEffect as useEffect8 } from "react";
8357
+ import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback8, useEffect as useEffect8 } from "react";
8350
8358
  var ClickRegion = ({ children, targetRef }) => {
8351
8359
  useEffect8(() => {
8352
8360
  if (targetRef.current && targetRef.current.tagName === "A") {
@@ -8356,7 +8364,7 @@ var ClickRegion = ({ children, targetRef }) => {
8356
8364
  } else {
8357
8365
  }
8358
8366
  }, [targetRef]);
8359
- const handleClick = useCallback7(
8367
+ const handleClick = useCallback8(
8360
8368
  (event) => {
8361
8369
  const node = targetRef.current;
8362
8370
  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 +8993,7 @@ Divider.displayName = "Divider";
8985
8993
 
8986
8994
  // src/components/EditableHeading/EditableHeading.tsx
8987
8995
  import styled31, { css as css27 } from "styled-components";
8988
- import { useState as useState8, useRef as useRef7 } from "react";
8996
+ import { useState as useState9, useRef as useRef7 } from "react";
8989
8997
 
8990
8998
  // src/components/Tooltip/Tooltip.tsx
8991
8999
  import {
@@ -9343,10 +9351,10 @@ var EditableHeading = ({
9343
9351
  __forceEditing = false,
9344
9352
  editingDisabled = false
9345
9353
  }) => {
9346
- const [isEditing, setIsEditing] = useState8(false);
9347
- const [value, setValue] = useState8(children);
9348
- const [previousValue, setPreviousValue] = useState8(children);
9349
- const [headingHeight, setHeadingHeight] = useState8("60");
9354
+ const [isEditing, setIsEditing] = useState9(false);
9355
+ const [value, setValue] = useState9(children);
9356
+ const [previousValue, setPreviousValue] = useState9(children);
9357
+ const [headingHeight, setHeadingHeight] = useState9("60");
9350
9358
  const headingRef = useRef7(null);
9351
9359
  const handleSetEditing = (editing) => {
9352
9360
  if (editingDisabled) return;
@@ -9426,7 +9434,7 @@ var EditableHeading = ({
9426
9434
  };
9427
9435
 
9428
9436
  // 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";
9437
+ import { forwardRef as forwardRef12, useRef as useRef8, useMemo as useMemo4, createContext as createContext3, useState as useState10, useId as useId2 } from "react";
9430
9438
  import styled33 from "styled-components";
9431
9439
  import { isNotUndefined as isNotUndefined7, isUndefined as isUndefined3 } from "@wistia/type-guards";
9432
9440
 
@@ -9486,8 +9494,8 @@ var FormComponent = ({
9486
9494
  fullWidth = false,
9487
9495
  ...props
9488
9496
  }, forwardedRef) => {
9489
- const [errors, setErrors] = useState9({});
9490
- const [hasSubmitted, setHasSubmitted] = useState9(false);
9497
+ const [errors, setErrors] = useState10({});
9498
+ const [hasSubmitted, setHasSubmitted] = useState10(false);
9491
9499
  const innerRef = useRef8();
9492
9500
  const ref = forwardedRef ?? innerRef;
9493
9501
  const autoId = useId2();
@@ -9564,12 +9572,12 @@ FormComponent.displayName = "Form";
9564
9572
  var Form = forwardRef12(FormComponent);
9565
9573
 
9566
9574
  // src/components/Form/useFormState.tsx
9567
- import { useCallback as useCallback8, useState as useState10 } from "react";
9575
+ import { useCallback as useCallback9, useState as useState11 } from "react";
9568
9576
  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(
9577
+ const [data, setData] = useState11(initialData);
9578
+ const [isPending, setIsPending] = useState11(false);
9579
+ const [error, setError] = useState11(null);
9580
+ const formAction = useCallback9(
9573
9581
  async (nextFormData) => {
9574
9582
  if (nextFormData === null) {
9575
9583
  setData(initialData);
@@ -9960,7 +9968,7 @@ IconButton.displayName = "IconButton";
9960
9968
 
9961
9969
  // src/components/InputClickToCopy/InputClickToCopy.tsx
9962
9970
  import styled38 from "styled-components";
9963
- import { forwardRef as forwardRef14, useEffect as useEffect9, useState as useState11 } from "react";
9971
+ import { forwardRef as forwardRef14, useEffect as useEffect9, useState as useState12 } from "react";
9964
9972
  import { isFunction as isFunction3 } from "@wistia/type-guards";
9965
9973
  import { jsx as jsx230 } from "react/jsx-runtime";
9966
9974
  var StyledInput2 = styled38(Input)`
@@ -9975,7 +9983,7 @@ var StyledInput2 = styled38(Input)`
9975
9983
  var COPY_SUCCESS_DURATION = 2e3;
9976
9984
  var InputClickToCopy = forwardRef14(
9977
9985
  ({ value, onCopy, ...props }, ref) => {
9978
- const [isCopied, setIsCopied] = useState11(false);
9986
+ const [isCopied, setIsCopied] = useState12(false);
9979
9987
  useEffect9(() => {
9980
9988
  if (isCopied) {
9981
9989
  const timeout = setTimeout(() => {
@@ -10214,7 +10222,7 @@ var MenuLabel = ({ children, ...props }) => {
10214
10222
  MenuLabel.displayName = "MenuLabel";
10215
10223
 
10216
10224
  // src/components/Menu/SubMenu.tsx
10217
- import { useState as useState12 } from "react";
10225
+ import { useState as useState13 } from "react";
10218
10226
  import styled43 from "styled-components";
10219
10227
  import {
10220
10228
  DropdownMenuPortal as DropdownMenuPortal2,
@@ -10400,7 +10408,7 @@ var SubMenu = ({
10400
10408
  ...props
10401
10409
  }) => {
10402
10410
  const { isSmAndUp } = useMq();
10403
- const [isExpanded, setIsExpanded] = useState12(false);
10411
+ const [isExpanded, setIsExpanded] = useState13(false);
10404
10412
  const { compact } = useMenuContext();
10405
10413
  return isSmAndUp ? /* @__PURE__ */ jsxs27(DropdownMenuSub, { onOpenChange, children: [
10406
10414
  /* @__PURE__ */ jsxs27(SubMenuTrigger, { ...props, children: [
@@ -11189,13 +11197,13 @@ import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11189
11197
  import { isNil as isNil14 } from "@wistia/type-guards";
11190
11198
 
11191
11199
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11192
- import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState13 } from "react";
11200
+ import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState14 } from "react";
11193
11201
  import { jsx as jsx248 } from "react/jsx-runtime";
11194
11202
  var SelectedItemStyleContext = createContext7(null);
11195
11203
  var SelectedItemStyleProvider = ({
11196
11204
  children
11197
11205
  }) => {
11198
- const [selectedItemMeasurements, setSelectedItemMeasurements] = useState13(null);
11206
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = useState14(null);
11199
11207
  const selectedItemIndicatorStyle = useMemo8(
11200
11208
  () => selectedItemMeasurements != null ? {
11201
11209
  height: `${selectedItemMeasurements.offsetHeight}px`,
@@ -11915,7 +11923,7 @@ var TableRow = ({ children, ...props }) => {
11915
11923
  };
11916
11924
 
11917
11925
  // src/components/Tabs/Tabs.tsx
11918
- import { forwardRef as forwardRef27, useState as useState14 } from "react";
11926
+ import { forwardRef as forwardRef27, useState as useState15 } from "react";
11919
11927
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11920
11928
  import { isNotNil as isNotNil29, isNil as isNil15 } from "@wistia/type-guards";
11921
11929
  import styled69 from "styled-components";
@@ -12114,7 +12122,7 @@ var Tabs = forwardRef27(
12114
12122
  ...props
12115
12123
  }, ref) => {
12116
12124
  const tabItems = extractTabItems(children);
12117
- const [internalSelectedValue, setInternalSelectedValue] = useState14(defaultSelectedValue);
12125
+ const [internalSelectedValue, setInternalSelectedValue] = useState15(defaultSelectedValue);
12118
12126
  const modeProps = defaultSelectedValue !== void 0 ? {
12119
12127
  defaultValue: defaultSelectedValue,
12120
12128
  onValueChange: setInternalSelectedValue
@@ -12943,6 +12951,7 @@ export {
12943
12951
  useClipboard,
12944
12952
  useFilePicker,
12945
12953
  useFocusTrap,
12954
+ useForceUpdate,
12946
12955
  useFormState,
12947
12956
  useImperativeFilePicker,
12948
12957
  useIsHovered,