@wix/editor-react-components 1.2238.0 → 1.2240.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.
@@ -22,9 +22,6 @@ type WRichTextProps = {
22
22
  skin: WRichTextSkin;
23
23
  a11y?: StyledTextA11yProps;
24
24
  };
25
- type VerticalAlignTopExperiment = {
26
- shouldFixVerticalTopAlignment: boolean;
27
- };
28
25
  type ListMarkersInRtlExperiment = {
29
26
  isListInRtlEnabled: boolean;
30
27
  };
@@ -39,7 +36,7 @@ interface IWRichTextCorvidProps {
39
36
  export type IWRichTextProps = DefaultCompPlatformProps & WRichTextProps & ScreenReaderSDKProps & LangSDKProps & AriaAttributesSDKProps & Partial<IElementPropsSDKActions> & Partial<IClickPropsSDKActions> & {
40
37
  ref?: React.Ref<HTMLDivElement>;
41
38
  className?: string;
42
- } & VerticalAlignTopExperiment & ListMarkersInRtlExperiment & ClassNameToRootExperiment & Partial<IWRichTextCorvidProps>;
39
+ } & ListMarkersInRtlExperiment & ClassNameToRootExperiment & Partial<IWRichTextCorvidProps>;
43
40
  export type WRichTextBuilderProps = IWRichTextProps & {
44
41
  richText: {
45
42
  html: string;
@@ -13,7 +13,6 @@ const semanticClassNames = {
13
13
  const clickable = "clickable__rSuxD";
14
14
  const srOnly = "srOnly__0aNh1";
15
15
  const supportTableDesign = "supportTableDesign__Lc0ts";
16
- const safariFix = "safariFix__Ovgjt";
17
16
  const corvidColorOverride = "corvidColorOverride__ZZVku";
18
17
  const WRichTextSkin = "WRichTextSkin__U6zUa";
19
18
  const wRichTextSkin = "WRichTextSkin__U6zUa";
@@ -29,7 +28,6 @@ const skinsStyle = {
29
28
  clickable,
30
29
  srOnly,
31
30
  supportTableDesign,
32
- safariFix,
33
31
  corvidColorOverride,
34
32
  WRichTextSkin,
35
33
  wRichTextSkin,
@@ -85,8 +83,6 @@ const WRichText$1 = React.forwardRef((props, ref) => {
85
83
  ariaAttributes,
86
84
  onClick,
87
85
  onDblClick,
88
- shouldFixVerticalTopAlignment,
89
- // Should be removed after the specs.thunderbolt.WRichTextVerticalAlignTopSafariAndIOS experiment is open to 100%
90
86
  isListInRtlEnabled,
91
87
  // Should be removed after the specs.thunderbolt.wrichtextListInRtl experiment is open to 100%
92
88
  isClassNameToRootEnabled,
@@ -116,8 +112,6 @@ const WRichText$1 = React.forwardRef((props, ref) => {
116
112
  skinsStyle.supportTableDesign,
117
113
  {
118
114
  [skinsStyle.clickable]: isInteractive,
119
- [skinsStyle.safariFix]: shouldFixVerticalTopAlignment,
120
- // Should be removed after the experiment is open to 100%
121
115
  [skinsStyle["list-direction-spec"]]: isListInRtlEnabled
122
116
  // Should be removed after the specs.thunderbolt.wrichtextListInRtl experiment is open to 100%
123
117
  }
@@ -61,6 +61,16 @@ ol.wix-list-text-align h6 {
61
61
  * only in case if it was set using .richText SDK method
62
62
  */
63
63
  }
64
+ @supports (-webkit-appearance: none) and (stroke-color: transparent) {
65
+ .supportTableDesign__Lc0ts > * > :first-child {
66
+ vertical-align: top;
67
+ }
68
+ }
69
+ @supports (-webkit-touch-callout: none) {
70
+ .supportTableDesign__Lc0ts > * > :first-child {
71
+ vertical-align: top;
72
+ }
73
+ }
64
74
  .supportTableDesign__Lc0ts [data-attr-richtext-marker=true] {
65
75
  display: block;
66
76
  }
@@ -91,17 +101,6 @@ ol.wix-list-text-align h6 {
91
101
  border-top: 1px solid currentColor;
92
102
  }
93
103
 
94
- @supports (-webkit-appearance: none) and (stroke-color: transparent) {
95
- .safariFix__Ovgjt > * > :first-child {
96
- vertical-align: top;
97
- }
98
- }
99
- @supports (-webkit-touch-callout: none) {
100
- .safariFix__Ovgjt > * > :first-child {
101
- vertical-align: top;
102
- }
103
- }
104
-
105
104
  .corvidColorOverride__ZZVku :is(p,
106
105
  h1,
107
106
  h2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2238.0",
3
+ "version": "1.2240.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,6 +49,8 @@
49
49
  "test:watch": "yarn prepare:manifest-tests && vitest watch",
50
50
  "test:manifest": "yarn prepare:manifest-tests && vitest src/**/*manifest.spec.ts",
51
51
  "test:e2e": "echo 'Package must be built before running e2e tests, running build:' && yarn build:lite && sled-playwright test --config=playwright.livesite.config.ts",
52
+ "test:playwright:a11y": "(sled-playwright test --config=playwright.a11y.config.ts) || true",
53
+ "check-a11y-coverage": "a11y-check-coverage --warn-only",
52
54
  "tsc": "npx tsc -b ./tsconfig.json --force",
53
55
  "prepare:manifest-tests": "yarn validate:manifests && yarn generate:manifest-tests",
54
56
  "build:janet": "yarn build-storybook && janet-build",
@@ -99,6 +101,7 @@
99
101
  "@types/react-dom": "^18.2.17",
100
102
  "@uiw/react-codemirror": "^4.24.1",
101
103
  "@vitejs/plugin-react": "^4.3.4",
104
+ "@wix/a11y-audit-tool-plugin": "^0.313.0",
102
105
  "@wix/astro": "^2.39.0",
103
106
  "@wix/business-tools": "^1.0.225",
104
107
  "@wix/ci-build-info": "^1.0.333",
@@ -179,6 +182,12 @@
179
182
  "postDependenciesBuild": [
180
183
  "check:lint-and-format"
181
184
  ],
185
+ "postBuild": [
186
+ {
187
+ "scriptName": "test:playwright:a11y",
188
+ "timeout": 30
189
+ }
190
+ ],
182
191
  "postPublish": [
183
192
  "test:e2e"
184
193
  ]
@@ -188,5 +197,5 @@
188
197
  "registry": "https://registry.npmjs.org/",
189
198
  "access": "public"
190
199
  },
191
- "falconPackageHash": "d1f2d4944ed72248169793732edede1a1924932a5a2b6ed0847bb0dd"
200
+ "falconPackageHash": "b8e2916e9c4db2ee3d7c8af5629b7cb7360d395b03d1e90f236c393e"
192
201
  }