@neo-ui-kit/react 1.3.7 → 1.3.8

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/README.md CHANGED
@@ -25,7 +25,7 @@ import "@neo-ui-kit/react/styles.css";
25
25
  To test repository changes before publishing, run `npm run package` from the repository root and install the resulting archive in a separate application:
26
26
 
27
27
  ```bash
28
- npm install /path/to/adui/release/neo-ui-kit-react-1.3.7.tgz
28
+ npm install /path/to/adui/release/neo-ui-kit-react-1.3.8.tgz
29
29
  ```
30
30
 
31
31
  Maintainers publish new versions from `Pro100Dimka/adui` using the `release.yml` GitHub Actions workflow, a matching `v<version>` tag, and the `npm-publication` environment. npm trusts its OIDC identity; no `NPM_TOKEN` is required. The workflow checks the project and packed consumer before publishing the tested archive. Published `1.0.0` cannot be overwritten: code and README changes in npm require a new package version. See the [repository release instructions](https://github.com/Pro100Dimka/adui#npm-пакет).
@@ -18,7 +18,16 @@ var clean = (v) => {
18
18
  return x === "/" ? x : x.replace(/\/$/, "");
19
19
  };
20
20
  var current = (m) => clean(m === "hash" ? location.hash.slice(1) || "/" : location.pathname);
21
- var morph = (update, transition) => transition && motionEnabled() && "startViewTransition" in document ? void document.startViewTransition(() => flushSync(update)) : update();
21
+ var morph = (update, transition) => {
22
+ if (!transition || !motionEnabled() || !("startViewTransition" in document)) {
23
+ update();
24
+ return;
25
+ }
26
+ void document.startViewTransition(() => flushSync(update)).ready.catch((error) => {
27
+ const skipped = error instanceof DOMException && ["AbortError", "TimeoutError"].includes(error.name);
28
+ console[skipped ? "debug" : "error"](skipped ? "Route animation skipped" : "Route animation failed", error);
29
+ });
30
+ };
22
31
  function matchPath(pattern, pathname) {
23
32
  const p = clean(pattern).split("/").filter(Boolean), v = clean(pathname).split("/").filter(Boolean), params = /* @__PURE__ */ Object.create(null);
24
33
  for (let i = 0, j = 0; i < p.length; i++, j++) {
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  Router,
9
9
  matchRoute,
10
10
  useRouter
11
- } from "./chunks/chunk-347P6ZE4.js";
11
+ } from "./chunks/chunk-IFEK5PRT.js";
12
12
  import {
13
13
  Autocomplete,
14
14
  Avatar,
package/dist/router.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  Router,
3
3
  matchRoute,
4
4
  useRouter
5
- } from "./chunks/chunk-347P6ZE4.js";
5
+ } from "./chunks/chunk-IFEK5PRT.js";
6
6
  import "./chunks/chunk-FCOU3ODR.js";
7
7
  export {
8
8
  Router,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo-ui-kit/react",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "NEO UI — React component library",
5
5
  "type": "module",
6
6
  "license": "MIT",