@wix/editor-react-components 1.2777.0 → 1.2779.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.
|
@@ -8,6 +8,7 @@ export type TextMarqueeBuilderProps = {
|
|
|
8
8
|
textDirection: Direction;
|
|
9
9
|
speed: number;
|
|
10
10
|
pauseOnHover: boolean;
|
|
11
|
+
showPlayPauseControl?: boolean;
|
|
11
12
|
tagName: string;
|
|
12
13
|
svg?: VectorArt;
|
|
13
14
|
text: string;
|
|
@@ -30,6 +31,7 @@ export type TextMarqueeProps = {
|
|
|
30
31
|
headingLevel: number;
|
|
31
32
|
speed: number;
|
|
32
33
|
pauseOnHover: boolean;
|
|
34
|
+
showPlayPauseControl?: boolean;
|
|
33
35
|
movementDirection?: MovementDirection;
|
|
34
36
|
textDirection?: Direction;
|
|
35
37
|
singleTextItem: {
|
|
@@ -256,7 +256,8 @@ const TextMarquee$1 = (props) => {
|
|
|
256
256
|
useNewA11y = false,
|
|
257
257
|
customClassNames = [],
|
|
258
258
|
isPreviewAnimationActive = false,
|
|
259
|
-
isBuilder
|
|
259
|
+
isBuilder,
|
|
260
|
+
showPlayPauseControl = false
|
|
260
261
|
} = marqueeProps;
|
|
261
262
|
const [multiplicationFactor, setMultiplicationFactor] = useState(
|
|
262
263
|
DEFAULT_MULTIPLICATION_FACTOR
|
|
@@ -374,7 +375,10 @@ const TextMarquee$1 = (props) => {
|
|
|
374
375
|
onToggle: pauseOnClick,
|
|
375
376
|
useNewA11y,
|
|
376
377
|
translations,
|
|
377
|
-
className: clsx(
|
|
378
|
+
className: clsx(
|
|
379
|
+
styles.playButton,
|
|
380
|
+
!showPlayPauseControl && styles.visuallyHidden
|
|
381
|
+
)
|
|
378
382
|
}
|
|
379
383
|
)
|
|
380
384
|
] })
|
|
@@ -426,6 +430,7 @@ const TextMarquee = React__default.forwardRef(
|
|
|
426
430
|
movementDirection: props.movementDirection || "ltr",
|
|
427
431
|
speed: props.speed ? panelToDataSpeed(props.speed) : panelToDataSpeed(DEFAULT_SPEED),
|
|
428
432
|
pauseOnHover: props.pauseOnHover || false,
|
|
433
|
+
showPlayPauseControl: props.showPlayPauseControl || false,
|
|
429
434
|
textDirection: props.textDirection || "ltr",
|
|
430
435
|
headingLevel: 0,
|
|
431
436
|
isDecorative: props.isDecorative || false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
|
|
1
|
+
import { C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
|
|
2
2
|
const running_text = {
|
|
3
3
|
settings: {
|
|
4
4
|
movement_direction_label: "Movement direction",
|
|
@@ -6,6 +6,9 @@ const running_text = {
|
|
|
6
6
|
pause_on_hover: {
|
|
7
7
|
title: "Pause on hover"
|
|
8
8
|
},
|
|
9
|
+
show_play_pause_control: {
|
|
10
|
+
title: "Show play/pause button"
|
|
11
|
+
},
|
|
9
12
|
movement_direction: {
|
|
10
13
|
dropdown_ltr_label: "Left to right",
|
|
11
14
|
dropdown_rtl_label: "Right to left"
|
|
@@ -93,6 +96,11 @@ const manifest = {
|
|
|
93
96
|
dataType: DATA.DATA_TYPE.booleanValue,
|
|
94
97
|
defaultValue: false
|
|
95
98
|
},
|
|
99
|
+
showPlayPauseControl: {
|
|
100
|
+
displayName: running_text.settings.show_play_pause_control.title,
|
|
101
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
102
|
+
defaultValue: false
|
|
103
|
+
},
|
|
96
104
|
isDecorative: {
|
|
97
105
|
displayName: "Is Decorative",
|
|
98
106
|
dataType: DATA.DATA_TYPE.booleanValue,
|
|
@@ -123,6 +131,19 @@ const manifest = {
|
|
|
123
131
|
}
|
|
124
132
|
}
|
|
125
133
|
},
|
|
134
|
+
displayGroups: {
|
|
135
|
+
orderedDataGroup: {
|
|
136
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.data,
|
|
137
|
+
data: {
|
|
138
|
+
items: [
|
|
139
|
+
"showPlayPauseControl",
|
|
140
|
+
"pauseOnHover",
|
|
141
|
+
"movementDirection",
|
|
142
|
+
"speed"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
126
147
|
cssProperties: {
|
|
127
148
|
font: {
|
|
128
149
|
displayName: "Font"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2779.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"@wix/ambassador-devcenter-v1-component-type-data": "^1.0.592",
|
|
117
117
|
"@wix/astro": "^2.75.3",
|
|
118
118
|
"@wix/business-tools": "^1.0.233",
|
|
119
|
-
"@wix/cli": "^1.1.
|
|
119
|
+
"@wix/cli": "^1.1.264",
|
|
120
120
|
"@wix/cli-app": "^1.1.263",
|
|
121
121
|
"@wix/component-protocol": "^1.253.0",
|
|
122
122
|
"@wix/components-infra": "^1.0.0",
|
|
@@ -222,5 +222,5 @@
|
|
|
222
222
|
"registry": "https://registry.npmjs.org/",
|
|
223
223
|
"access": "public"
|
|
224
224
|
},
|
|
225
|
-
"falconPackageHash": "
|
|
225
|
+
"falconPackageHash": "281b7062494ff299030adafe7e033604a02cd75af7e9e31a914f1c0b"
|
|
226
226
|
}
|