@wix/editor-react-components 1.2835.0 → 1.2837.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/VideoScrub/constants.d.ts +9 -4
- package/dist/site/components/VideoScrub/css.css +1 -0
- package/dist/site/components/VideoScrub/manifest.js +17 -14
- package/dist/site/components/VideoScrub/panels/videoScaling/extension.d.ts +4 -0
- package/dist/site/components/VideoScrub/panels/videoScaling/panel.d.ts +3 -0
- package/dist/site/components/VideoScrub/panels/videoScaling/translations/consts.d.ts +7 -0
- package/dist/site/components/WRichText/WRichText.types.d.ts +2 -13
- package/dist/site/components/WRichText/component.js +4 -4
- package/dist/site/components/WRichText/manifest.js +1 -3
- package/dist/site/components/chunks/types.js +3 -6
- package/dist/site/components/extensions.js +14 -0
- package/package.json +2 -2
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { ScrollSpeed, ScrubStart } from './VideoScrub.types';
|
|
2
|
-
export declare const COMPONENT_TYPE = "wixEditorElements.
|
|
2
|
+
export declare const COMPONENT_TYPE = "wixEditorElements.VideoScrub__DEV__v17";
|
|
3
3
|
export declare const ROOT_CLASS = "video-scrub";
|
|
4
4
|
export declare const presets: {
|
|
5
5
|
readonly resizable: "resizable";
|
|
6
6
|
readonly stretched: "stretched";
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export declare const VIDEO_SCALING_PANEL_ID = "7b0ee0d4-5bc5-429e-a1cf-8b1e35837fb8";
|
|
9
|
+
export declare const VIDEO_SCALING_PANEL_BI_PARAMS: {
|
|
10
|
+
component_type: string;
|
|
11
|
+
builder_type: string;
|
|
12
|
+
panel_name: string;
|
|
13
|
+
control_type: string;
|
|
14
|
+
control_id: string;
|
|
15
|
+
panel_builder: string;
|
|
11
16
|
};
|
|
12
17
|
export declare const StickyMode: {
|
|
13
18
|
readonly on: "on";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { L as LAYOUT, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, M as MEDIA, D as DATA, c as ContainerType, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
1
|
+
import { L as LAYOUT, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, M as MEDIA, a as ACTIONS, D as DATA, c as ContainerType, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
2
|
import { g as getTranslationResources } from "../chunks/translationResources.js";
|
|
3
3
|
import { V as VideoCategoryTypes } from "../chunks/types.impl.js";
|
|
4
|
-
import { p as presets, k as TIMEFRAMES_GROUP_KEY, a as ScrollSpeed, j as ScrubStart,
|
|
4
|
+
import { p as presets, k as TIMEFRAMES_GROUP_KEY, a as ScrollSpeed, j as ScrubStart, l as StickyMode, V as VIDEO_SCALING_PANEL_ID, T as TIMEFRAME_CONTENT_CLASS, m as MAX_COUNT, R as ROOT_CLASS, C as COMPONENT_TYPE } from "../chunks/types.js";
|
|
5
5
|
const manifest = {
|
|
6
|
-
id: "
|
|
6
|
+
id: "1a46792f-9775-4e08-a78a-11daf6e4d08b",
|
|
7
7
|
type: COMPONENT_TYPE,
|
|
8
8
|
description: "A video that plays by page scroll: while the visitor scrolls past it, the video stays on screen and its time follows the scroll. Timeframes show elements over the video during parts of it.",
|
|
9
9
|
installation: {
|
|
@@ -128,6 +128,20 @@ const manifest = {
|
|
|
128
128
|
// stage, so it is hidden (GoogleMap pattern).
|
|
129
129
|
actions: { hide: ["manageItems"] }
|
|
130
130
|
},
|
|
131
|
+
// Picks the preset: Fit to screen (Stretched) or Custom size (Resizable). No presets display
|
|
132
|
+
// group, so Studio shows no native presets panel (Menu pattern).
|
|
133
|
+
customActions: {
|
|
134
|
+
videoScaling: {
|
|
135
|
+
displayName: "Video scaling",
|
|
136
|
+
execution: {
|
|
137
|
+
actionType: ACTIONS.ACTION_TYPE.panel,
|
|
138
|
+
panel: {
|
|
139
|
+
panelType: ACTIONS.PANEL_TYPE.panelId,
|
|
140
|
+
panelId: VIDEO_SCALING_PANEL_ID
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
131
145
|
// Custom properties, not cssProperties: Studio puts cssProperties on the root, and the root is
|
|
132
146
|
// the tall scroll track. The sticky stage reads these (VideoScrub.module.scss). Same set as
|
|
133
147
|
// VideoUpload, but the borders are per side (Tabs pattern).
|
|
@@ -326,15 +340,6 @@ const manifest = {
|
|
|
326
340
|
bottomRight: "borderEndEndRadius"
|
|
327
341
|
}
|
|
328
342
|
},
|
|
329
|
-
// The native presets panel (Explore Designs). One group, so the panel shows no tabs. The
|
|
330
|
-
// panel lists Resizable first whatever this order is.
|
|
331
|
-
layouts: {
|
|
332
|
-
groupType: DISPLAY_GROUPS.GROUP_TYPE.presets,
|
|
333
|
-
displayName: "Layouts",
|
|
334
|
-
presets: {
|
|
335
|
-
items: [presets.stretched, presets.resizable]
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
343
|
// The Settings panel does not follow the `data` key order.
|
|
339
344
|
orderedDataGroup: {
|
|
340
345
|
groupType: DISPLAY_GROUPS.GROUP_TYPE.data,
|
|
@@ -347,7 +352,6 @@ const manifest = {
|
|
|
347
352
|
[presets.stretched]: {
|
|
348
353
|
presetCssUrl: `./site/components/VideoScrub/presets/${presets.stretched}.css`,
|
|
349
354
|
displayName: "Stretched",
|
|
350
|
-
thumbnailUrl: PRESET_THUMBNAILS.stretched,
|
|
351
355
|
initialSize: {
|
|
352
356
|
width: { sizingType: LAYOUT.SIZING_TYPE.stretched },
|
|
353
357
|
height: { sizingType: LAYOUT.SIZING_TYPE.content }
|
|
@@ -361,7 +365,6 @@ const manifest = {
|
|
|
361
365
|
},
|
|
362
366
|
[presets.resizable]: {
|
|
363
367
|
displayName: "Resizable",
|
|
364
|
-
thumbnailUrl: PRESET_THUMBNAILS.resizable,
|
|
365
368
|
initialSize: {
|
|
366
369
|
width: { sizingType: LAYOUT.SIZING_TYPE.pixels, pixels: 640 },
|
|
367
370
|
height: { sizingType: LAYOUT.SIZING_TYPE.pixels, pixels: 360 }
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const TranslationKeys: {
|
|
2
|
+
readonly videoScalingLabel: "custompanel_video_scrub_video_scaling_label";
|
|
3
|
+
readonly fitToScreenOption: "custompanel_video_scrub_video_scaling_fit_to_screen";
|
|
4
|
+
readonly customSizeOption: "custompanel_video_scrub_video_scaling_custom_size";
|
|
5
|
+
};
|
|
6
|
+
export type Translations = Record<keyof typeof TranslationKeys, string>;
|
|
7
|
+
export declare const DefaultTranslations: Translations;
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
+
import { A11y } from '@wix/editor-react-types';
|
|
1
2
|
import { DefaultCompPlatformProps } from '../../../types/vendored/editor-elements-types-thunderbolt';
|
|
2
3
|
import { ScreenReaderSDKProps, AriaAttributesSDKProps, LangSDKProps } from '../../../common/sdk/props-factories/accessibilitySDKFactories/types';
|
|
3
4
|
import { IElementPropsSDKActions } from '../../../common/sdk/props-factories/elementPropsSDKFactory';
|
|
4
5
|
import { IClickPropsSDKActions } from '../../../common/sdk/props-factories/clickPropsSDKFactory';
|
|
5
6
|
import { default as React } from 'react';
|
|
6
|
-
type
|
|
7
|
-
type A11yRole = 'region' | 'group' | 'none' | 'status' | 'alert' | 'nav';
|
|
8
|
-
type AriaLive = 'polite' | 'assertive';
|
|
9
|
-
type AriaCurrent = 'step' | 'page' | 'true' | 'false';
|
|
10
|
-
type StyledTextA11yProps = {
|
|
11
|
-
'aria-label'?: string;
|
|
12
|
-
'aria-live'?: AriaLive;
|
|
13
|
-
'aria-level'?: number;
|
|
14
|
-
role?: A11yRole;
|
|
15
|
-
'aria-atomic'?: BooleanString;
|
|
16
|
-
'aria-hidden'?: BooleanString;
|
|
17
|
-
'aria-current'?: AriaCurrent;
|
|
18
|
-
};
|
|
7
|
+
type StyledTextA11yProps = Pick<A11y, 'lang' | 'ariaLabel' | 'ariaLevel' | 'ariaHidden' | 'role'>;
|
|
19
8
|
type WRichTextSkin = 'WRichTextSkin' | 'WRichTextNewSkin' | 'WRichTextClickableSkin' | 'WRichTextThemeSkin';
|
|
20
9
|
type WRichTextProps = {
|
|
21
10
|
html: string;
|
|
@@ -4,7 +4,7 @@ import { useRef, useEffect, useMemo } from "react";
|
|
|
4
4
|
import { c as clsx } from "../chunks/clsx.js";
|
|
5
5
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
6
6
|
import { g as getQaDataAttributes, a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
7
|
-
import { a as activateBySpaceOrEnterButton, g as getAccessibilityAttributesSpread } from "../chunks/a11y.js";
|
|
7
|
+
import { a as activateBySpaceOrEnterButton, c as convertA11yKeysToHtmlFormat, g as getAccessibilityAttributesSpread } from "../chunks/a11y.js";
|
|
8
8
|
import { p as parseHtml } from "../chunks/parseHtml.js";
|
|
9
9
|
import { T as TestIds } from "../chunks/constants.js";
|
|
10
10
|
const semanticClassNames = {
|
|
@@ -131,8 +131,8 @@ const WRichText$1 = React.forwardRef((props, ref) => {
|
|
|
131
131
|
),
|
|
132
132
|
"data-testid": TestIds.richTextElement,
|
|
133
133
|
...sdkEventHandlers,
|
|
134
|
-
...a11y,
|
|
135
134
|
...getAccessibilityAttributesSpread({ ariaAttributes, lang }),
|
|
135
|
+
...convertA11yKeysToHtmlFormat(a11y ?? {}),
|
|
136
136
|
...getQaDataAttributes(isQaMode, fullNameCompType)
|
|
137
137
|
} : {
|
|
138
138
|
className: isClassNameToRootEnabled ? className : ""
|
|
@@ -166,8 +166,8 @@ const WRichText$1 = React.forwardRef((props, ref) => {
|
|
|
166
166
|
),
|
|
167
167
|
"data-testid": TestIds.richTextElement,
|
|
168
168
|
...sdkEventHandlers,
|
|
169
|
-
...
|
|
170
|
-
...
|
|
169
|
+
...getAccessibilityAttributesSpread({ ariaAttributes, lang }),
|
|
170
|
+
...convertA11yKeysToHtmlFormat(a11y ?? {})
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
const prefixElement = prefix && /* @__PURE__ */ jsx(
|
|
@@ -66,12 +66,10 @@ const manifest = {
|
|
|
66
66
|
[DATA.DATA_TYPE.a11y]: {
|
|
67
67
|
attributes: [
|
|
68
68
|
DATA.A11Y_ATTRIBUTES.ariaLabel,
|
|
69
|
-
DATA.A11Y_ATTRIBUTES.ariaLive,
|
|
70
69
|
DATA.A11Y_ATTRIBUTES.ariaLevel,
|
|
71
70
|
DATA.A11Y_ATTRIBUTES.role,
|
|
72
|
-
DATA.A11Y_ATTRIBUTES.ariaAtomic,
|
|
73
71
|
DATA.A11Y_ATTRIBUTES.ariaHidden,
|
|
74
|
-
DATA.A11Y_ATTRIBUTES.
|
|
72
|
+
DATA.A11Y_ATTRIBUTES.lang
|
|
75
73
|
]
|
|
76
74
|
}
|
|
77
75
|
}
|
|
@@ -10,16 +10,13 @@ var ScrubStart = /* @__PURE__ */ ((ScrubStart2) => {
|
|
|
10
10
|
ScrubStart2["top"] = "top";
|
|
11
11
|
return ScrubStart2;
|
|
12
12
|
})(ScrubStart || {});
|
|
13
|
-
const COMPONENT_TYPE = "wixEditorElements.
|
|
13
|
+
const COMPONENT_TYPE = "wixEditorElements.VideoScrub__DEV__v17";
|
|
14
14
|
const ROOT_CLASS = "video-scrub";
|
|
15
15
|
const presets = {
|
|
16
16
|
resizable: "resizable",
|
|
17
17
|
stretched: "stretched"
|
|
18
18
|
};
|
|
19
|
-
const
|
|
20
|
-
stretched: "https://static.wixstatic.com/media/18873e_d780aeec5db34595bafd5f0d806b834b~mv2.png",
|
|
21
|
-
resizable: "https://static.wixstatic.com/media/18873e_7db03132e6d8443da903c91f02616b90~mv2.png"
|
|
22
|
-
};
|
|
19
|
+
const VIDEO_SCALING_PANEL_ID = "7b0ee0d4-5bc5-429e-a1cf-8b1e35837fb8";
|
|
23
20
|
const StickyMode = {
|
|
24
21
|
on: "on",
|
|
25
22
|
off: "off"
|
|
@@ -59,10 +56,10 @@ export {
|
|
|
59
56
|
DEFAULT_VIDEO_RATIO as D,
|
|
60
57
|
LEGACY_TIMEFRAMES_ARIA_LABEL_KEY as L,
|
|
61
58
|
MAX_SCROLL_VH as M,
|
|
62
|
-
PRESET_THUMBNAILS as P,
|
|
63
59
|
ROOT_CLASS as R,
|
|
64
60
|
STICKY_TOP as S,
|
|
65
61
|
TIMEFRAME_CONTENT_CLASS as T,
|
|
62
|
+
VIDEO_SCALING_PANEL_ID as V,
|
|
66
63
|
ScrollSpeed as a,
|
|
67
64
|
SCROLL_VH_PER_SECOND as b,
|
|
68
65
|
START_LINE as c,
|
|
@@ -65,6 +65,7 @@ import manifest$4 from "./TimePicker/manifest.js";
|
|
|
65
65
|
import manifest$3 from "./TransparentVideo/manifest.js";
|
|
66
66
|
import manifest$2 from "./VideoScrub/manifest.js";
|
|
67
67
|
import manifest$1 from "./VideoUpload/manifest.js";
|
|
68
|
+
import { V as VIDEO_SCALING_PANEL_ID } from "./chunks/types.js";
|
|
68
69
|
import manifest from "./WRichText/manifest.js";
|
|
69
70
|
const animatedIconPanelExtension = extensions.editorReactComponentPanel({
|
|
70
71
|
id: "d8d9ddca-d5e4-453a-bd36-7deb8b302d26",
|
|
@@ -414,6 +415,18 @@ const transparentVideoPanelExtension = extensions.editorReactComponentPanel({
|
|
|
414
415
|
width: "UNKNOWN_WIDTH"
|
|
415
416
|
}
|
|
416
417
|
});
|
|
418
|
+
const videoScrubVideoScalingPanelExtension = extensions.editorReactComponentPanel({
|
|
419
|
+
id: VIDEO_SCALING_PANEL_ID,
|
|
420
|
+
displayName: "Video scaling",
|
|
421
|
+
code: {
|
|
422
|
+
bundleUrl: "./site/components/VideoScrub/panels/videoScaling/panel.tsx"
|
|
423
|
+
},
|
|
424
|
+
contentType: "code",
|
|
425
|
+
size: {
|
|
426
|
+
height: 150,
|
|
427
|
+
width: "UNKNOWN_WIDTH"
|
|
428
|
+
}
|
|
429
|
+
});
|
|
417
430
|
const videoUploadPanelExtension = extensions.editorReactComponentPanel({
|
|
418
431
|
id: "a7f3b8c2-4e5d-4f8a-8b1c-2d3e4f5a6b7c",
|
|
419
432
|
displayName: "Cover Image",
|
|
@@ -523,6 +536,7 @@ const panelExtensions = {
|
|
|
523
536
|
textEffectsStickerPatternsPanelExtension,
|
|
524
537
|
textMarqueePanelExtension,
|
|
525
538
|
transparentVideoPanelExtension,
|
|
539
|
+
videoScrubVideoScalingPanelExtension,
|
|
526
540
|
videoUploadPanelExtension
|
|
527
541
|
};
|
|
528
542
|
const environment = typeof process === "undefined" ? {} : process.env;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2837.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -228,5 +228,5 @@
|
|
|
228
228
|
"registry": "https://registry.npmjs.org/",
|
|
229
229
|
"access": "public"
|
|
230
230
|
},
|
|
231
|
-
"falconPackageHash": "
|
|
231
|
+
"falconPackageHash": "110eee47b76f8d690dcb94facecdd82642236c71e1f3c75aa2e78b74"
|
|
232
232
|
}
|