@windrun-huaiin/third-ui 14.1.0 → 14.1.1

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.
@@ -8,10 +8,9 @@ var React = require('react');
8
8
  var lib = require('@windrun-huaiin/base-ui/lib');
9
9
  var utils = require('@windrun-huaiin/lib/utils');
10
10
 
11
- var _a, _b;
12
- const ENV_DELAY_ENABLED = process.env.NEXT_PUBLIC_DELAYED_IMG_ENABLED === "true" ||
13
- process.env.NEXT_PUBLIC_DELAY_REVEAL_ENABLED === "true";
14
- const rawDelaySeconds = (_b = (_a = process.env.NEXT_PUBLIC_DELAYED_IMG_SECONDS) !== null && _a !== void 0 ? _a : process.env.NEXT_PUBLIC_DELAY_REVEAL_SECONDS) !== null && _b !== void 0 ? _b : "0";
11
+ var _a;
12
+ const ENV_DELAY_ENABLED = process.env.NEXT_PUBLIC_DELAYED_IMG_ENABLED === "true";
13
+ const rawDelaySeconds = (_a = process.env.NEXT_PUBLIC_DELAYED_IMG_SECONDS) !== null && _a !== void 0 ? _a : "0";
15
14
  const parsedDelaySeconds = Number(rawDelaySeconds);
16
15
  const ENV_DELAY_MS = Number.isFinite(parsedDelaySeconds) && parsedDelaySeconds > 0
17
16
  ? parsedDelaySeconds * 1000
@@ -6,10 +6,9 @@ import { useState, useEffect } from 'react';
6
6
  import { themeViaColor, themeBgColor } from '@windrun-huaiin/base-ui/lib';
7
7
  import { cn } from '@windrun-huaiin/lib/utils';
8
8
 
9
- var _a, _b;
10
- const ENV_DELAY_ENABLED = process.env.NEXT_PUBLIC_DELAYED_IMG_ENABLED === "true" ||
11
- process.env.NEXT_PUBLIC_DELAY_REVEAL_ENABLED === "true";
12
- const rawDelaySeconds = (_b = (_a = process.env.NEXT_PUBLIC_DELAYED_IMG_SECONDS) !== null && _a !== void 0 ? _a : process.env.NEXT_PUBLIC_DELAY_REVEAL_SECONDS) !== null && _b !== void 0 ? _b : "0";
9
+ var _a;
10
+ const ENV_DELAY_ENABLED = process.env.NEXT_PUBLIC_DELAYED_IMG_ENABLED === "true";
11
+ const rawDelaySeconds = (_a = process.env.NEXT_PUBLIC_DELAYED_IMG_SECONDS) !== null && _a !== void 0 ? _a : "0";
13
12
  const parsedDelaySeconds = Number(rawDelaySeconds);
14
13
  const ENV_DELAY_MS = Number.isFinite(parsedDelaySeconds) && parsedDelaySeconds > 0
15
14
  ? parsedDelaySeconds * 1000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/third-ui",
3
- "version": "14.1.0",
3
+ "version": "14.1.1",
4
4
  "description": "Third-party integrated UI components for windrun-huaiin projects",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -10,14 +10,9 @@ interface DelayedImgProps extends ImageProps {
10
10
  placeholderClassName?: string
11
11
  }
12
12
 
13
- const ENV_DELAY_ENABLED =
14
- process.env.NEXT_PUBLIC_DELAYED_IMG_ENABLED === "true" ||
15
- process.env.NEXT_PUBLIC_DELAY_REVEAL_ENABLED === "true"
13
+ const ENV_DELAY_ENABLED = process.env.NEXT_PUBLIC_DELAYED_IMG_ENABLED === "true"
16
14
 
17
- const rawDelaySeconds =
18
- process.env.NEXT_PUBLIC_DELAYED_IMG_SECONDS ??
19
- process.env.NEXT_PUBLIC_DELAY_REVEAL_SECONDS ??
20
- "0"
15
+ const rawDelaySeconds = process.env.NEXT_PUBLIC_DELAYED_IMG_SECONDS ?? "0"
21
16
 
22
17
  const parsedDelaySeconds = Number(rawDelaySeconds)
23
18
  const ENV_DELAY_MS = Number.isFinite(parsedDelaySeconds) && parsedDelaySeconds > 0