@wix/editor-react-components 1.2669.0 → 1.2670.0
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../chunks/clsx.js";
|
|
3
|
-
import { useService } from "@wix/services-manager-react";
|
|
3
|
+
import { useService, useGetService } from "@wix/services-manager-react";
|
|
4
4
|
import { U as UrlDefinition } from "../chunks/index13.js";
|
|
5
5
|
import { d as defineService } from "../chunks/index8.js";
|
|
6
6
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
@@ -2481,8 +2481,14 @@ const Menu = (props) => {
|
|
|
2481
2481
|
} = props;
|
|
2482
2482
|
const { getCurrentUrl } = useService(UrlDefinition);
|
|
2483
2483
|
const currentUrl = getCurrentUrl();
|
|
2484
|
-
const
|
|
2485
|
-
|
|
2484
|
+
const getService = useGetService();
|
|
2485
|
+
let activeAnchor;
|
|
2486
|
+
try {
|
|
2487
|
+
const anchorsService = getService(AnchorsDefinition);
|
|
2488
|
+
activeAnchor = anchorsService.getActiveAnchor();
|
|
2489
|
+
} catch {
|
|
2490
|
+
activeAnchor = void 0;
|
|
2491
|
+
}
|
|
2486
2492
|
const { translate } = useService(
|
|
2487
2493
|
TranslationsDefinition
|
|
2488
2494
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2670.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -200,5 +200,5 @@
|
|
|
200
200
|
"registry": "https://registry.npmjs.org/",
|
|
201
201
|
"access": "public"
|
|
202
202
|
},
|
|
203
|
-
"falconPackageHash": "
|
|
203
|
+
"falconPackageHash": "50bf28557ea936f9d8389e5180e60160f9d65db706a3b2b20a866a21"
|
|
204
204
|
}
|