@wix/editor-react-components 1.2239.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
|
-
} &
|
|
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.
|
|
3
|
+
"version": "1.2240.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
"registry": "https://registry.npmjs.org/",
|
|
198
198
|
"access": "public"
|
|
199
199
|
},
|
|
200
|
-
"falconPackageHash": "
|
|
200
|
+
"falconPackageHash": "b8e2916e9c4db2ee3d7c8af5629b7cb7360d395b03d1e90f236c393e"
|
|
201
201
|
}
|