@deneb-ui/ui 2.0.92 → 2.0.93
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/utils/urls.d.ts +7 -1
- package/dist/utils/urls.js +7 -1
- package/package.json +2 -2
package/dist/utils/urls.d.ts
CHANGED
|
@@ -53,7 +53,13 @@ export declare function resolveActionUrl(raw?: string | null, mode?: 'auto' | 'e
|
|
|
53
53
|
*/
|
|
54
54
|
export declare function isSafeExternalLink(url?: string | null): boolean;
|
|
55
55
|
/**
|
|
56
|
-
* Resolves static assets and
|
|
56
|
+
* Resolves static assets and plain browser URLs with subpath prefix support
|
|
57
|
+
* (e.g. Fivora preview lab).
|
|
58
|
+
*
|
|
59
|
+
* Do not pass this result to Next.js `<Link>`, `router.push`,
|
|
60
|
+
* `router.replace`, or `router.prefetch`; Next applies `basePath` to those
|
|
61
|
+
* destinations automatically. Use this helper for local asset URLs and direct
|
|
62
|
+
* `window.location` navigation only.
|
|
57
63
|
*/
|
|
58
64
|
export declare function withBasePath(value?: string | null): string;
|
|
59
65
|
/**
|
package/dist/utils/urls.js
CHANGED
|
@@ -124,7 +124,13 @@ function isSafeExternalLink(url) {
|
|
|
124
124
|
trimmed.startsWith('#'));
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
|
-
* Resolves static assets and
|
|
127
|
+
* Resolves static assets and plain browser URLs with subpath prefix support
|
|
128
|
+
* (e.g. Fivora preview lab).
|
|
129
|
+
*
|
|
130
|
+
* Do not pass this result to Next.js `<Link>`, `router.push`,
|
|
131
|
+
* `router.replace`, or `router.prefetch`; Next applies `basePath` to those
|
|
132
|
+
* destinations automatically. Use this helper for local asset URLs and direct
|
|
133
|
+
* `window.location` navigation only.
|
|
128
134
|
*/
|
|
129
135
|
function withBasePath(value) {
|
|
130
136
|
const url = value?.trim() ?? '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deneb-ui/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.93",
|
|
4
4
|
"description": "Visual-first React component library for editable commerce storefronts. Built for Next.js and Fivora.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@deneb-ui/core": "^2.0.
|
|
53
|
+
"@deneb-ui/core": "^2.0.93"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "^18.0.0 || ^19.0.0",
|