@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 +1 -1
- package/dist/chunks/{chunk-347P6ZE4.js → chunk-IFEK5PRT.js} +10 -1
- package/dist/index.js +1 -1
- package/dist/router.js +1 -1
- package/package.json +1 -1
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.
|
|
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) =>
|
|
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
package/dist/router.js
CHANGED