@bitrix24/b24ui-nuxt 0.6.4 → 0.6.5
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,7 +2,14 @@ import { inject, provide, computed } from "vue";
|
|
|
2
2
|
export const portalTargetInjectionKey = Symbol("bitrix24-ui.portal-target");
|
|
3
3
|
export function usePortal(portal) {
|
|
4
4
|
const portalTarget = inject(portalTargetInjectionKey, void 0);
|
|
5
|
+
const isClient = typeof window !== "undefined";
|
|
5
6
|
const to = computed(() => {
|
|
7
|
+
if (!isClient) {
|
|
8
|
+
if (typeof portal.value === "string") {
|
|
9
|
+
return portal.value;
|
|
10
|
+
}
|
|
11
|
+
return portalTarget?.value ?? "body";
|
|
12
|
+
}
|
|
6
13
|
if (typeof portal.value === "string" || portal.value instanceof HTMLElement) {
|
|
7
14
|
return portal.value;
|
|
8
15
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrix24/b24ui-nuxt",
|
|
3
3
|
"description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"valibot": "^1.0.0",
|
|
167
167
|
"vue-router": "^4.5.0",
|
|
168
168
|
"yup": "^1.6.0",
|
|
169
|
-
"zod": "^3.24.
|
|
169
|
+
"zod": "^3.24.3"
|
|
170
170
|
},
|
|
171
171
|
"peerDependenciesMeta": {
|
|
172
172
|
"@inertiajs/vue3": {
|