@wistia/vhs 4.0.1 → 4.0.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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v4.0.1
3
+ * @license @wistia/vhs v4.0.2
4
4
  *
5
5
  * Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -219,7 +219,9 @@ var dateOnlyStringForSentence = (date, { timeZone = defaultTimeZone } = {}) => {
219
219
  }
220
220
  };
221
221
  var timeAgoString = (date, { nowAnchor = /* @__PURE__ */ new Date(), includeTime = true } = {}) => {
222
- if (isInvalidDate(date)) return "";
222
+ if (isInvalidDate(date)) {
223
+ return "";
224
+ }
223
225
  const minutesAgo = (nowAnchor.valueOf() - date.valueOf()) / (secondsInMinute * milisecondsInSecond);
224
226
  const minutesAgoRounded = Math.round(minutesAgo);
225
227
  const differenceInDays2 = differenceInCalendarDays(nowAnchor, date);
@@ -681,7 +683,7 @@ import { MotionConfig } from "motion/react";
681
683
  // src/providers/VHSThemeProvider.tsx
682
684
  import { ThemeProvider } from "styled-components";
683
685
 
684
- // ../../node_modules/@wistia/vhs-design-tokens/dist/js/designTokens.mjs
686
+ // ../vhs-design-tokens/dist/js/designTokens.js
685
687
  var designTokens = {
686
688
  breakpoint: {
687
689
  xs: "0em",
@@ -3516,6 +3518,7 @@ var normalize = css3`
3516
3518
 
3517
3519
  html {
3518
3520
  line-height: 1.15; /* 1 */
3521
+ /* stylelint-disable-next-line plugin/use-baseline */
3519
3522
  text-size-adjust: 100%; /* 2 */
3520
3523
  }
3521
3524