@wix/editor-react-components 1.2836.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.
@@ -1,13 +1,18 @@
1
1
  import { ScrollSpeed, ScrubStart } from './VideoScrub.types';
2
- export declare const COMPONENT_TYPE = "wixEditorElements.VideoScrub__DEV__v15";
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 PRESET_THUMBNAILS: {
9
- readonly stretched: "https://static.wixstatic.com/media/18873e_d780aeec5db34595bafd5f0d806b834b~mv2.png";
10
- readonly resizable: "https://static.wixstatic.com/media/18873e_7db03132e6d8443da903c91f02616b90~mv2.png";
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";
@@ -78,6 +78,7 @@
78
78
  mask-size: 100% 100%;
79
79
  mask-repeat: no-repeat;
80
80
  mask-position: center;
81
+ --video-position: 50% 0%;
81
82
  }
82
83
 
83
84
  .scrubbing__yEgJI {
@@ -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, P as PRESET_THUMBNAILS, l as StickyMode, T as TIMEFRAME_CONTENT_CLASS, m as MAX_COUNT, R as ROOT_CLASS, C as COMPONENT_TYPE } from "../chunks/types.js";
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: "f36c9a24-ea3a-4061-8cd9-5efd3886c10b",
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,4 @@
1
+ declare const _default: {
2
+ type: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const _default: (props: object) => React.JSX.Element | null;
3
+ export default _default;
@@ -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;
@@ -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.VideoScrub__DEV__v15";
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 PRESET_THUMBNAILS = {
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.2836.0",
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": "a94b488213003bd08eab120dcd388a38b4b88e006c765a78d7d2461a"
231
+ "falconPackageHash": "110eee47b76f8d690dcb94facecdd82642236c71e1f3c75aa2e78b74"
232
232
  }