@wistia/ui 0.5.0 → 0.5.1-beta.4cd1e5cc.3a549dd

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
@@ -19,6 +19,37 @@ declare const UIProvider: ({ children }: UIProviderProps) => react_jsx_runtime.J
19
19
  */
20
20
  declare const copyToClipboard: (textToCopy: string) => Promise<void>;
21
21
 
22
+ type DateOnlyStringOptions$1 = {
23
+ timeZone?: string;
24
+ /**
25
+ * When set to true, the returned string will omit the year.
26
+ * e.g. "Jun 3" instead of "Jun 3, 2021"
27
+ */
28
+ omitYear?: boolean;
29
+ };
30
+
31
+ declare const dateTime: {
32
+ buildTimeDuration: (numberOfMilliseconds: number) => Duration;
33
+ dateOnlyISOString: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
34
+ dateOnlyString: (date: unknown, { timeZone, omitYear }?: DateOnlyStringOptions$1) => string;
35
+ dateOnlyStringForSentence: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
36
+ dateOnlyStringNumeric: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
37
+ dateTimeRounded: DateTimeRoundedOverload;
38
+ dateTimeString: (date: Date | number | string | null | undefined, { timeZone }?: DateOnlyStringOptions) => string;
39
+ dateTimeStringForSentence: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
40
+ dateTimeToDate: (dateTime: Partial<WistiaDateTimeObject> | null | undefined) => Date | null;
41
+ dateTimeToISO: (dateTime: Partial<WistiaDateTimeObject>) => string | null;
42
+ dateToDateTime: (date: Date | null | undefined) => WistiaDateTimeObject | null;
43
+ dateUTCOffset: (date: Date) => string;
44
+ dayOfWeekString: (date: Date | null, { timeZone }?: DateOnlyStringOptions) => string;
45
+ mediaDurationString: (numberOfMilliseconds: number) => string;
46
+ millisecondsToDurationISOString: (numberOfMilliseconds: number) => string;
47
+ monthDayStringNumeric: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
48
+ sessionDurationString: (numberOfMilliseconds: number) => string;
49
+ timeAgoString: (date: Date, { nowAnchor }?: TimeAgoOptions) => string;
50
+ timeOnlyString: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
51
+ };
52
+
22
53
  declare const mq: {
23
54
  xsAndUp: () => string;
24
55
  smAndUp: () => string;
@@ -2207,4 +2238,4 @@ type DataCardTrendProps = {
2207
2238
  };
2208
2239
  declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
2209
2240
 
2210
- 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, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
2241
+ 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, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -19,6 +19,37 @@ declare const UIProvider: ({ children }: UIProviderProps) => react_jsx_runtime.J
19
19
  */
20
20
  declare const copyToClipboard: (textToCopy: string) => Promise<void>;
21
21
 
22
+ type DateOnlyStringOptions$1 = {
23
+ timeZone?: string;
24
+ /**
25
+ * When set to true, the returned string will omit the year.
26
+ * e.g. "Jun 3" instead of "Jun 3, 2021"
27
+ */
28
+ omitYear?: boolean;
29
+ };
30
+
31
+ declare const dateTime: {
32
+ buildTimeDuration: (numberOfMilliseconds: number) => Duration;
33
+ dateOnlyISOString: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
34
+ dateOnlyString: (date: unknown, { timeZone, omitYear }?: DateOnlyStringOptions$1) => string;
35
+ dateOnlyStringForSentence: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
36
+ dateOnlyStringNumeric: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
37
+ dateTimeRounded: DateTimeRoundedOverload;
38
+ dateTimeString: (date: Date | number | string | null | undefined, { timeZone }?: DateOnlyStringOptions) => string;
39
+ dateTimeStringForSentence: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
40
+ dateTimeToDate: (dateTime: Partial<WistiaDateTimeObject> | null | undefined) => Date | null;
41
+ dateTimeToISO: (dateTime: Partial<WistiaDateTimeObject>) => string | null;
42
+ dateToDateTime: (date: Date | null | undefined) => WistiaDateTimeObject | null;
43
+ dateUTCOffset: (date: Date) => string;
44
+ dayOfWeekString: (date: Date | null, { timeZone }?: DateOnlyStringOptions) => string;
45
+ mediaDurationString: (numberOfMilliseconds: number) => string;
46
+ millisecondsToDurationISOString: (numberOfMilliseconds: number) => string;
47
+ monthDayStringNumeric: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
48
+ sessionDurationString: (numberOfMilliseconds: number) => string;
49
+ timeAgoString: (date: Date, { nowAnchor }?: TimeAgoOptions) => string;
50
+ timeOnlyString: (date: unknown, { timeZone }?: DateOnlyStringOptions) => string;
51
+ };
52
+
22
53
  declare const mq: {
23
54
  xsAndUp: () => string;
24
55
  smAndUp: () => string;
@@ -2207,4 +2238,4 @@ type DataCardTrendProps = {
2207
2238
  };
2208
2239
  declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
2209
2240
 
2210
- 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, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
2241
+ 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, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };