@wistia/vhs 4.0.1 → 4.0.3
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.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v4.0.
|
|
3
|
+
* @license @wistia/vhs v4.0.3
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -352,7 +352,9 @@ var dateOnlyStringForSentence = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
354
|
var timeAgoString = (date, { nowAnchor = /* @__PURE__ */ new Date(), includeTime = true } = {}) => {
|
|
355
|
-
if (isInvalidDate(date))
|
|
355
|
+
if (isInvalidDate(date)) {
|
|
356
|
+
return "";
|
|
357
|
+
}
|
|
356
358
|
const minutesAgo = (nowAnchor.valueOf() - date.valueOf()) / (secondsInMinute * milisecondsInSecond);
|
|
357
359
|
const minutesAgoRounded = Math.round(minutesAgo);
|
|
358
360
|
const differenceInDays2 = (0, import_date_fns.differenceInCalendarDays)(nowAnchor, date);
|
|
@@ -814,7 +816,7 @@ var import_react10 = require("motion/react");
|
|
|
814
816
|
// src/providers/VHSThemeProvider.tsx
|
|
815
817
|
var import_styled_components2 = require("styled-components");
|
|
816
818
|
|
|
817
|
-
//
|
|
819
|
+
// ../vhs-design-tokens/dist/js/designTokens.js
|
|
818
820
|
var designTokens = {
|
|
819
821
|
breakpoint: {
|
|
820
822
|
xs: "0em",
|
|
@@ -3649,6 +3651,7 @@ var normalize = import_styled_components7.css`
|
|
|
3649
3651
|
|
|
3650
3652
|
html {
|
|
3651
3653
|
line-height: 1.15; /* 1 */
|
|
3654
|
+
/* stylelint-disable-next-line plugin/use-baseline */
|
|
3652
3655
|
text-size-adjust: 100%; /* 2 */
|
|
3653
3656
|
}
|
|
3654
3657
|
|