@wix/editor-react-components 1.2567.0 → 1.2569.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.
- package/dist/site/components/AudioPlayer/component.js +57 -51
- package/dist/site/components/AudioPlayer/types.d.ts +5 -1
- package/dist/site/components/ProgressBar/constants.d.ts +3 -0
- package/dist/site/components/ProgressBar/manifest.js +21 -5
- package/dist/site/components/SocialPlayerFacebook/manifest.js +10 -0
- package/dist/site/components/SocialPlayerVimeo/manifest.js +10 -0
- package/dist/site/components/SocialPlayerYoutube/manifest.js +10 -0
- package/dist/site/components/VideoUpload/manifest.js +10 -0
- package/dist/site/components/chunks/constants25.js +3 -0
- package/package.json +4 -4
|
@@ -3373,13 +3373,18 @@ const styles = {
|
|
|
3373
3373
|
const PlayButton = ({
|
|
3374
3374
|
isPlaying,
|
|
3375
3375
|
hasError,
|
|
3376
|
-
onTogglePlay
|
|
3376
|
+
onTogglePlay,
|
|
3377
|
+
controlsClassName
|
|
3377
3378
|
}) => {
|
|
3378
3379
|
const PlaybackIcon = isPlaying ? PauseFilled_default : PlayFilled_default;
|
|
3379
3380
|
return /* @__PURE__ */ jsx(
|
|
3380
3381
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
3381
3382
|
{
|
|
3382
|
-
className: clsx(
|
|
3383
|
+
className: clsx(
|
|
3384
|
+
selectors.playButton,
|
|
3385
|
+
selectors.controls,
|
|
3386
|
+
controlsClassName
|
|
3387
|
+
),
|
|
3383
3388
|
onPress: onTogglePlay,
|
|
3384
3389
|
isDisabled: hasError,
|
|
3385
3390
|
"aria-label": isPlaying ? ARIA_LABELS.pauseButton : ARIA_LABELS.playButton,
|
|
@@ -3405,9 +3410,10 @@ const ProgressSlider = ({
|
|
|
3405
3410
|
duration,
|
|
3406
3411
|
hasError,
|
|
3407
3412
|
onSeek,
|
|
3408
|
-
|
|
3413
|
+
progressBarClassName,
|
|
3414
|
+
timeDisplayClassName,
|
|
3415
|
+
controlsClassName
|
|
3409
3416
|
}) => {
|
|
3410
|
-
var _a, _b;
|
|
3411
3417
|
const timeText = `${formatTime(currentTime)} / ${formatTime(duration)}`;
|
|
3412
3418
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3413
3419
|
/* @__PURE__ */ jsx(
|
|
@@ -3417,7 +3423,8 @@ const ProgressSlider = ({
|
|
|
3417
3423
|
selectors.progressBar,
|
|
3418
3424
|
selectors.controls,
|
|
3419
3425
|
styles.progressBar,
|
|
3420
|
-
|
|
3426
|
+
controlsClassName,
|
|
3427
|
+
progressBarClassName
|
|
3421
3428
|
),
|
|
3422
3429
|
minValue: 0,
|
|
3423
3430
|
maxValue: duration || 1,
|
|
@@ -3452,7 +3459,8 @@ const ProgressSlider = ({
|
|
|
3452
3459
|
selectors.timeDisplay,
|
|
3453
3460
|
selectors.controls,
|
|
3454
3461
|
styles.timeDisplay,
|
|
3455
|
-
|
|
3462
|
+
controlsClassName,
|
|
3463
|
+
timeDisplayClassName
|
|
3456
3464
|
),
|
|
3457
3465
|
children: timeText
|
|
3458
3466
|
}
|
|
@@ -3511,7 +3519,8 @@ const VolumeControls = ({
|
|
|
3511
3519
|
isMuted,
|
|
3512
3520
|
onToggleMute,
|
|
3513
3521
|
onVolumeChange,
|
|
3514
|
-
className
|
|
3522
|
+
className,
|
|
3523
|
+
controlsClassName
|
|
3515
3524
|
}) => /* @__PURE__ */ jsxs(
|
|
3516
3525
|
$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,
|
|
3517
3526
|
{
|
|
@@ -3519,6 +3528,7 @@ const VolumeControls = ({
|
|
|
3519
3528
|
selectors.volumeControls,
|
|
3520
3529
|
selectors.controls,
|
|
3521
3530
|
styles.volumeControls,
|
|
3531
|
+
controlsClassName,
|
|
3522
3532
|
className
|
|
3523
3533
|
),
|
|
3524
3534
|
"aria-label": ARIA_LABELS.volumeControls,
|
|
@@ -3558,7 +3568,7 @@ const VolumeControls = ({
|
|
|
3558
3568
|
}
|
|
3559
3569
|
);
|
|
3560
3570
|
const AudioPlayer = (props) => {
|
|
3561
|
-
var _a, _b, _c, _d, _e, _f;
|
|
3571
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3562
3572
|
const {
|
|
3563
3573
|
id,
|
|
3564
3574
|
className,
|
|
@@ -3576,11 +3586,12 @@ const AudioPlayer = (props) => {
|
|
|
3576
3586
|
onMouseOut,
|
|
3577
3587
|
elementProps
|
|
3578
3588
|
} = props;
|
|
3589
|
+
const controlsClassName = (_a = elementProps == null ? void 0 : elementProps.controls) == null ? void 0 : _a.className;
|
|
3579
3590
|
const audioUrl = audio == null ? void 0 : audio.url;
|
|
3580
3591
|
const title = audio == null ? void 0 : audio.title;
|
|
3581
3592
|
const artist = audio == null ? void 0 : audio.artist;
|
|
3582
3593
|
const environment = useService(EnvironmentDefinition);
|
|
3583
|
-
const isSSR = ((
|
|
3594
|
+
const isSSR = ((_b = environment == null ? void 0 : environment.isSSR) == null ? void 0 : _b.call(environment)) ?? false;
|
|
3584
3595
|
const fallbackInstanceId = useRef(
|
|
3585
3596
|
`audio-player-${Math.random().toString(36).slice(2)}`
|
|
3586
3597
|
);
|
|
@@ -3627,7 +3638,7 @@ const AudioPlayer = (props) => {
|
|
|
3627
3638
|
className: clsx(
|
|
3628
3639
|
selectors.coverMedia,
|
|
3629
3640
|
styles.coverMediaWrapper,
|
|
3630
|
-
(
|
|
3641
|
+
(_c = elementProps == null ? void 0 : elementProps.coverArt) == null ? void 0 : _c.className
|
|
3631
3642
|
),
|
|
3632
3643
|
image: coverImage,
|
|
3633
3644
|
displayMode
|
|
@@ -3639,7 +3650,7 @@ const AudioPlayer = (props) => {
|
|
|
3639
3650
|
{
|
|
3640
3651
|
className: clsx(
|
|
3641
3652
|
selectors.title,
|
|
3642
|
-
(
|
|
3653
|
+
(_d = elementProps == null ? void 0 : elementProps.audioTitle) == null ? void 0 : _d.className
|
|
3643
3654
|
),
|
|
3644
3655
|
children: title
|
|
3645
3656
|
}
|
|
@@ -3660,51 +3671,46 @@ const AudioPlayer = (props) => {
|
|
|
3660
3671
|
className: clsx(
|
|
3661
3672
|
selectors.artistName,
|
|
3662
3673
|
styles.artistName,
|
|
3663
|
-
(
|
|
3674
|
+
(_e = elementProps == null ? void 0 : elementProps.artistName) == null ? void 0 : _e.className
|
|
3664
3675
|
),
|
|
3665
3676
|
children: artist
|
|
3666
3677
|
}
|
|
3667
3678
|
)
|
|
3668
3679
|
] }),
|
|
3669
|
-
/* @__PURE__ */ jsxs(
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
}
|
|
3704
|
-
)
|
|
3705
|
-
]
|
|
3706
|
-
}
|
|
3707
|
-
)
|
|
3680
|
+
/* @__PURE__ */ jsxs("div", { className: styles.controls, children: [
|
|
3681
|
+
/* @__PURE__ */ jsx(
|
|
3682
|
+
PlayButton,
|
|
3683
|
+
{
|
|
3684
|
+
isPlaying,
|
|
3685
|
+
hasError,
|
|
3686
|
+
onTogglePlay: togglePlay,
|
|
3687
|
+
controlsClassName
|
|
3688
|
+
}
|
|
3689
|
+
),
|
|
3690
|
+
/* @__PURE__ */ jsx(
|
|
3691
|
+
ProgressSlider,
|
|
3692
|
+
{
|
|
3693
|
+
currentTime,
|
|
3694
|
+
duration,
|
|
3695
|
+
hasError,
|
|
3696
|
+
onSeek: seekTo,
|
|
3697
|
+
progressBarClassName: (_f = elementProps == null ? void 0 : elementProps.progressBar) == null ? void 0 : _f.className,
|
|
3698
|
+
timeDisplayClassName: (_g = elementProps == null ? void 0 : elementProps.timeDisplay) == null ? void 0 : _g.className,
|
|
3699
|
+
controlsClassName
|
|
3700
|
+
}
|
|
3701
|
+
),
|
|
3702
|
+
/* @__PURE__ */ jsx(
|
|
3703
|
+
VolumeControls,
|
|
3704
|
+
{
|
|
3705
|
+
currentVolume,
|
|
3706
|
+
isMuted,
|
|
3707
|
+
onToggleMute: toggleMute,
|
|
3708
|
+
onVolumeChange: setVolume,
|
|
3709
|
+
className: (_h = elementProps == null ? void 0 : elementProps.volumeControls) == null ? void 0 : _h.className,
|
|
3710
|
+
controlsClassName
|
|
3711
|
+
}
|
|
3712
|
+
)
|
|
3713
|
+
] })
|
|
3708
3714
|
]
|
|
3709
3715
|
}
|
|
3710
3716
|
);
|
|
@@ -54,13 +54,16 @@ export interface PlayButtonProps {
|
|
|
54
54
|
isPlaying: boolean;
|
|
55
55
|
hasError: boolean;
|
|
56
56
|
onTogglePlay: () => void;
|
|
57
|
+
controlsClassName?: string;
|
|
57
58
|
}
|
|
58
59
|
export interface ProgressSliderProps {
|
|
59
60
|
currentTime: number;
|
|
60
61
|
duration: number;
|
|
61
62
|
hasError: boolean;
|
|
62
63
|
onSeek: (value: number) => void;
|
|
63
|
-
|
|
64
|
+
progressBarClassName?: string;
|
|
65
|
+
timeDisplayClassName?: string;
|
|
66
|
+
controlsClassName?: string;
|
|
64
67
|
}
|
|
65
68
|
export interface VolumeControlsProps {
|
|
66
69
|
currentVolume: number;
|
|
@@ -68,4 +71,5 @@ export interface VolumeControlsProps {
|
|
|
68
71
|
onToggleMute: () => void;
|
|
69
72
|
onVolumeChange: (value: number) => void;
|
|
70
73
|
className?: string;
|
|
74
|
+
controlsClassName?: string;
|
|
71
75
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CSS_PROPERTIES, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-IO6HLVLV.js";
|
|
1
|
+
import { C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-IO6HLVLV.js";
|
|
2
2
|
import { D as DisplayNames } from "../chunks/constants25.js";
|
|
3
3
|
const manifest = {
|
|
4
4
|
id: "241afef1-74bd-4a10-843f-ac4928c25822",
|
|
@@ -113,18 +113,34 @@ const manifest = {
|
|
|
113
113
|
borderColor: {},
|
|
114
114
|
borderStyle: {}
|
|
115
115
|
},
|
|
116
|
+
displayGroups: {
|
|
117
|
+
cornersGroup: {
|
|
118
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.borderRadius,
|
|
119
|
+
displayName: DisplayNames.bar.displayGroups.cornersGroup,
|
|
120
|
+
borderRadius: {
|
|
121
|
+
topLeft: "barBorderStartStartRadius",
|
|
122
|
+
topRight: "barBorderStartEndRadius",
|
|
123
|
+
bottomLeft: "barBorderEndStartRadius",
|
|
124
|
+
bottomRight: "barBorderEndEndRadius"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
116
128
|
cssCustomProperties: {
|
|
117
129
|
barBorderStartStartRadius: {
|
|
118
|
-
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderStartStartRadius
|
|
130
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderStartStartRadius,
|
|
131
|
+
defaultValue: "0px"
|
|
119
132
|
},
|
|
120
133
|
barBorderStartEndRadius: {
|
|
121
|
-
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderStartEndRadius
|
|
134
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderStartEndRadius,
|
|
135
|
+
defaultValue: "0px"
|
|
122
136
|
},
|
|
123
137
|
barBorderEndStartRadius: {
|
|
124
|
-
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderEndStartRadius
|
|
138
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderEndStartRadius,
|
|
139
|
+
defaultValue: "0px"
|
|
125
140
|
},
|
|
126
141
|
barBorderEndEndRadius: {
|
|
127
|
-
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderEndEndRadius
|
|
142
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderEndEndRadius,
|
|
143
|
+
defaultValue: "0px"
|
|
128
144
|
},
|
|
129
145
|
barBorderWidth: {
|
|
130
146
|
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderWidth
|
|
@@ -56,6 +56,16 @@ const manifest = {
|
|
|
56
56
|
width: "border-width",
|
|
57
57
|
style: "border-style"
|
|
58
58
|
}
|
|
59
|
+
},
|
|
60
|
+
cornersGroup: {
|
|
61
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.borderRadius,
|
|
62
|
+
displayName: "Corner radius",
|
|
63
|
+
borderRadius: {
|
|
64
|
+
topLeft: "borderStartStartRadius",
|
|
65
|
+
topRight: "borderStartEndRadius",
|
|
66
|
+
bottomLeft: "borderEndStartRadius",
|
|
67
|
+
bottomRight: "borderEndEndRadius"
|
|
68
|
+
}
|
|
59
69
|
}
|
|
60
70
|
},
|
|
61
71
|
cssCustomProperties: {
|
|
@@ -57,6 +57,16 @@ const manifest = {
|
|
|
57
57
|
width: "border-width",
|
|
58
58
|
style: "border-style"
|
|
59
59
|
}
|
|
60
|
+
},
|
|
61
|
+
cornersGroup: {
|
|
62
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.borderRadius,
|
|
63
|
+
displayName: "Corner radius",
|
|
64
|
+
borderRadius: {
|
|
65
|
+
topLeft: "borderStartStartRadius",
|
|
66
|
+
topRight: "borderStartEndRadius",
|
|
67
|
+
bottomLeft: "borderEndStartRadius",
|
|
68
|
+
bottomRight: "borderEndEndRadius"
|
|
69
|
+
}
|
|
60
70
|
}
|
|
61
71
|
},
|
|
62
72
|
data: {
|
|
@@ -57,6 +57,16 @@ const manifest = {
|
|
|
57
57
|
width: "border-width",
|
|
58
58
|
style: "border-style"
|
|
59
59
|
}
|
|
60
|
+
},
|
|
61
|
+
cornersGroup: {
|
|
62
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.borderRadius,
|
|
63
|
+
displayName: "Corner radius",
|
|
64
|
+
borderRadius: {
|
|
65
|
+
topLeft: "borderStartStartRadius",
|
|
66
|
+
topRight: "borderStartEndRadius",
|
|
67
|
+
bottomLeft: "borderEndStartRadius",
|
|
68
|
+
bottomRight: "borderEndEndRadius"
|
|
69
|
+
}
|
|
60
70
|
}
|
|
61
71
|
},
|
|
62
72
|
cssCustomProperties: {
|
|
@@ -51,6 +51,16 @@ const manifest = {
|
|
|
51
51
|
width: "border-width",
|
|
52
52
|
style: "border-style"
|
|
53
53
|
}
|
|
54
|
+
},
|
|
55
|
+
cornersGroup: {
|
|
56
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.borderRadius,
|
|
57
|
+
displayName: "Corner radius",
|
|
58
|
+
borderRadius: {
|
|
59
|
+
topLeft: "borderStartStartRadius",
|
|
60
|
+
topRight: "borderStartEndRadius",
|
|
61
|
+
bottomLeft: "borderEndStartRadius",
|
|
62
|
+
bottomRight: "borderEndEndRadius"
|
|
63
|
+
}
|
|
54
64
|
}
|
|
55
65
|
},
|
|
56
66
|
cssCustomProperties: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2569.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"@vis.gl/react-google-maps": "^1.5.2",
|
|
80
80
|
"@wix/ambassador-devcenter-v1-component-type-data": "^1.0.530",
|
|
81
81
|
"@wix/design-system-illustrations": "^2.28.5",
|
|
82
|
-
"@wix/sdk": "^1.21.
|
|
82
|
+
"@wix/sdk": "^1.21.16",
|
|
83
83
|
"@wix/services-manager-react": "^0.1.27",
|
|
84
84
|
"@wix/site-service-business-logger": "^1.0.0",
|
|
85
85
|
"@wix/site-service-configuration": "^1.0.1",
|
|
86
86
|
"@wix/site-service-rendering-context": "^1.0.1",
|
|
87
|
-
"@wix/site-ui": "1.
|
|
87
|
+
"@wix/site-ui": "1.243.0",
|
|
88
88
|
"@wix/video": "^1.106.0",
|
|
89
89
|
"@wix/viewer-service-consent-policy": "^1.0.101",
|
|
90
90
|
"@wix/web-bi-logger": "^2.1.29",
|
|
@@ -199,5 +199,5 @@
|
|
|
199
199
|
"registry": "https://registry.npmjs.org/",
|
|
200
200
|
"access": "public"
|
|
201
201
|
},
|
|
202
|
-
"falconPackageHash": "
|
|
202
|
+
"falconPackageHash": "36c1b3a8b20c30140b46eba68b0bd385411ad920c753914a47c42dc9"
|
|
203
203
|
}
|