@wix/editor-react-components 1.2668.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 { getActiveAnchor } = useService(AnchorsDefinition);
2485
- const activeAnchor = getActiveAnchor();
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
  );
@@ -1,4 +1,4 @@
1
- import { I as INTERACTIONS, D as DATA, C as CSS_PROPERTIES, a as ACTIONS, A as Archetype, L as LAYOUT } from "../chunks/chunk-ZHYIPFVN.js";
1
+ import { I as INTERACTIONS, D as DATA, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, a as ACTIONS, A as Archetype, L as LAYOUT } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  const manifest = {
3
3
  id: "4dbf752a-8a67-4149-87e7-6132bc25d3c2",
4
4
  type: "wixEditorElements.SvgImage",
@@ -143,6 +143,17 @@ const manifest = {
143
143
  }
144
144
  }
145
145
  },
146
+ displayGroups: {
147
+ strokeGroup: {
148
+ displayName: "Stroke",
149
+ groupType: DISPLAY_GROUPS.GROUP_TYPE.stroke,
150
+ [DISPLAY_GROUPS.GROUP_TYPE.stroke]: {
151
+ stroke: "stroke",
152
+ strokeWidth: "stroke-width",
153
+ strokeOpacity: "alpha-stroke"
154
+ }
155
+ }
156
+ },
146
157
  data: {
147
158
  decorative: {
148
159
  dataType: DATA.DATA_TYPE.booleanValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2668.0",
3
+ "version": "1.2670.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,9 +49,9 @@
49
49
  "test": "yarn prepare:manifest-tests && vitest",
50
50
  "test:watch": "yarn prepare:manifest-tests && vitest watch",
51
51
  "test:manifest": "yarn prepare:manifest-tests && vitest src/**/*manifest.spec.ts",
52
- "test:e2e": "tsx scripts/wait-for-preview-readiness.ts && sled-playwright test --config=playwright.livesite.config.ts",
52
+ "test:e2e": "tsx scripts/run-e2e-with-preview-override.ts",
53
53
  "test:e2e:local": "echo 'Package must be built before running e2e tests, running build:' && yarn build:lite && sled-playwright test --remote --config=playwright.livesite.config.ts",
54
- "test:e2e:flakiness": "yarn build:lite && sled-playwright detect-flakiness --config=playwright.livesite.config.ts --path e2e/livesites/tests --repeat-count 20",
54
+ "test:e2e:flakiness": "yarn build:lite && tsx scripts/run-e2e-with-preview-override.ts detect-flakiness --path e2e/livesites/tests --repeat-count 20",
55
55
  "check:a11y-coverage": "a11y-check-coverage --warn-only",
56
56
  "typecheck": "node ../../scripts/run-tsc7.js -b ./tsconfig.json",
57
57
  "prepare:manifest-tests": "yarn validate:manifests && yarn generate:manifest-tests",
@@ -200,5 +200,5 @@
200
200
  "registry": "https://registry.npmjs.org/",
201
201
  "access": "public"
202
202
  },
203
- "falconPackageHash": "216344fe09a7d6b54417c3ea6788546b2454ba61b25b71056841507e"
203
+ "falconPackageHash": "50bf28557ea936f9d8389e5180e60160f9d65db706a3b2b20a866a21"
204
204
  }