@wix/editor-react-components 1.2736.0 → 1.2738.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.
Files changed (149) hide show
  1. package/dist/site/components/AccordionComponent/component.js +1 -1
  2. package/dist/site/components/AccordionComponent/manifest.js +1 -1
  3. package/dist/site/components/AnimatedIcon/manifest.js +1 -1
  4. package/dist/site/components/AudioPlayer/component.js +1 -1
  5. package/dist/site/components/AudioPlayer/manifest.js +1 -1
  6. package/dist/site/components/BoxContainer/component.js +1 -1
  7. package/dist/site/components/BoxContainer/manifest.js +1 -1
  8. package/dist/site/components/Breadcrumbs/component.js +1 -1
  9. package/dist/site/components/Breadcrumbs/manifest.js +1 -1
  10. package/dist/site/components/Button/manifest.js +1 -1
  11. package/dist/site/components/Checkbox/component.js +1 -1
  12. package/dist/site/components/Checkbox/manifest.js +1 -1
  13. package/dist/site/components/CheckboxGroup/component.js +1 -1
  14. package/dist/site/components/CheckboxGroup/manifest.js +1 -1
  15. package/dist/site/components/CollapsibleText/component.js +1 -1
  16. package/dist/site/components/CollapsibleText/manifest.js +1 -1
  17. package/dist/site/components/DatePicker/component.js +1 -1
  18. package/dist/site/components/DatePicker/manifest.js +1 -1
  19. package/dist/site/components/Dropdown/component.js +1 -1
  20. package/dist/site/components/Dropdown/manifest.js +1 -1
  21. package/dist/site/components/HTMLComponent/component.js +1 -1
  22. package/dist/site/components/HeadingTextBlock/component.js +1 -1
  23. package/dist/site/components/HeadingTextBlock/manifest.js +1 -1
  24. package/dist/site/components/HipaaIcon/component.js +1 -1
  25. package/dist/site/components/HipaaIcon/manifest.js +1 -1
  26. package/dist/site/components/ImageReveal/component.js +1 -1
  27. package/dist/site/components/ImageReveal/manifest.js +1 -1
  28. package/dist/site/components/LinkBar/component.js +1 -1
  29. package/dist/site/components/LinkBar/manifest.js +1 -1
  30. package/dist/site/components/Logo/component.js +1 -1
  31. package/dist/site/components/Logo/manifest.js +1 -1
  32. package/dist/site/components/Logo/sdk.js +1 -1
  33. package/dist/site/components/Lottie/component.js +1 -1
  34. package/dist/site/components/Lottie/manifest.js +1 -1
  35. package/dist/site/components/MarkdownBlock/component.js +1 -1
  36. package/dist/site/components/MarkdownBlock/manifest.js +1 -1
  37. package/dist/site/components/Menu/component.js +1 -1
  38. package/dist/site/components/Menu/manifest.js +1 -1
  39. package/dist/site/components/MultiStateBox/component.js +1 -1
  40. package/dist/site/components/MultiStateBox/manifest.js +1 -1
  41. package/dist/site/components/ProgressBar/component.js +1 -1
  42. package/dist/site/components/ProgressBar/manifest.js +1 -1
  43. package/dist/site/components/ProgressBar/sdk.js +1 -1
  44. package/dist/site/components/RadioButtons/component.js +1 -1
  45. package/dist/site/components/RadioButtons/manifest.js +1 -1
  46. package/dist/site/components/Repeater/component.js +1 -1
  47. package/dist/site/components/Repeater/manifest.js +1 -1
  48. package/dist/site/components/ShareButtons/component.js +1 -1
  49. package/dist/site/components/ShareButtons/manifest.js +1 -1
  50. package/dist/site/components/Tabs/component.js +1 -1
  51. package/dist/site/components/Tabs/manifest.js +1 -1
  52. package/dist/site/components/TextBox/component.js +1 -1
  53. package/dist/site/components/TextBox/manifest.js +1 -1
  54. package/dist/site/components/TextEffects3d/component.js +1 -1
  55. package/dist/site/components/TextEffects3d/manifest.js +1 -1
  56. package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
  57. package/dist/site/components/TextEffectsBauhaus/manifest.js +1 -1
  58. package/dist/site/components/TextEffectsGlass/component.js +1 -1
  59. package/dist/site/components/TextEffectsGlass/manifest.js +1 -1
  60. package/dist/site/components/TextEffectsGlitch/component.js +1 -1
  61. package/dist/site/components/TextEffectsGlitch/manifest.js +1 -1
  62. package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
  63. package/dist/site/components/TextEffectsLetterPress/manifest.js +1 -1
  64. package/dist/site/components/TextEffectsMatrix/component.js +1 -1
  65. package/dist/site/components/TextEffectsMatrix/manifest.js +1 -1
  66. package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
  67. package/dist/site/components/TextEffectsNeonSign/manifest.js +1 -1
  68. package/dist/site/components/TextEffectsNoisy/component.js +1 -1
  69. package/dist/site/components/TextEffectsNoisy/manifest.js +1 -1
  70. package/dist/site/components/TextEffectsOutlineOut/component.js +2 -2
  71. package/dist/site/components/TextEffectsOutlineOut/manifest.js +1 -1
  72. package/dist/site/components/TextEffectsRetro/component.js +1 -1
  73. package/dist/site/components/TextEffectsRetro/manifest.js +1 -1
  74. package/dist/site/components/TextEffectsShook/component.js +1 -1
  75. package/dist/site/components/TextEffectsShook/manifest.js +1 -1
  76. package/dist/site/components/TextEffectsSticker/component.js +1 -1
  77. package/dist/site/components/TextEffectsSticker/manifest.js +2 -2
  78. package/dist/site/components/TextEffectsStriped/component.js +1 -1
  79. package/dist/site/components/TextEffectsStriped/manifest.js +1 -1
  80. package/dist/site/components/TextInput/component.js +1 -1
  81. package/dist/site/components/TextInput/manifest.js +1 -1
  82. package/dist/site/components/TimePicker/component.js +1 -1
  83. package/dist/site/components/TimePicker/manifest.js +1 -1
  84. package/dist/site/components/VideoScrub/VideoScrub.d.ts +4 -0
  85. package/dist/site/components/VideoScrub/VideoScrub.types.d.ts +17 -0
  86. package/dist/site/components/VideoScrub/component.d.ts +2 -0
  87. package/dist/site/components/VideoScrub/component.js +273 -0
  88. package/dist/site/components/VideoScrub/component.preview.d.ts +3 -0
  89. package/dist/site/components/VideoScrub/constants.d.ts +8 -0
  90. package/dist/site/components/VideoScrub/css.css +72 -0
  91. package/dist/site/components/VideoScrub/hooks/useScrubGate.d.ts +14 -0
  92. package/dist/site/components/VideoScrub/hooks/useScrubProgress.d.ts +11 -0
  93. package/dist/site/components/VideoScrub/hooks/useScrubVideo.d.ts +24 -0
  94. package/dist/site/components/VideoScrub/index.d.ts +2 -0
  95. package/dist/site/components/VideoScrub/index.js +6 -0
  96. package/dist/site/components/VideoScrub/manifest.d.ts +5 -0
  97. package/dist/site/components/VideoScrub/manifest.js +71 -0
  98. package/dist/site/components/VideoScrub/utils.d.ts +14 -0
  99. package/dist/site/components/chunks/AnimatedIcon.js +1 -1
  100. package/dist/site/components/chunks/Button.js +1 -1
  101. package/dist/site/components/chunks/Patterns.js +1 -1
  102. package/dist/site/components/chunks/TextEffectsShared.js +1 -1
  103. package/dist/site/components/chunks/constants10.js +65 -20
  104. package/dist/site/components/chunks/constants11.js +14 -12
  105. package/dist/site/components/chunks/constants12.js +9 -9
  106. package/dist/site/components/chunks/constants13.js +10 -8
  107. package/dist/site/components/chunks/constants14.js +9 -13
  108. package/dist/site/components/chunks/constants15.js +14 -17
  109. package/dist/site/components/chunks/constants16.js +17 -12
  110. package/dist/site/components/chunks/constants17.js +11 -13
  111. package/dist/site/components/chunks/constants18.js +21 -96
  112. package/dist/site/components/chunks/constants19.js +92 -50
  113. package/dist/site/components/chunks/constants2.js +47 -126
  114. package/dist/site/components/chunks/constants20.js +54 -50
  115. package/dist/site/components/chunks/constants21.js +49 -52
  116. package/dist/site/components/chunks/constants22.js +43 -310
  117. package/dist/site/components/chunks/constants23.js +310 -65
  118. package/dist/site/components/chunks/constants24.js +70 -99
  119. package/dist/site/components/chunks/constants25.js +101 -30
  120. package/dist/site/components/chunks/constants26.js +35 -17
  121. package/dist/site/components/chunks/constants27.js +16 -447
  122. package/dist/site/components/chunks/constants28.js +441 -29
  123. package/dist/site/components/chunks/constants29.js +26 -78
  124. package/dist/site/components/chunks/constants3.js +118 -84
  125. package/dist/site/components/chunks/constants30.js +85 -15
  126. package/dist/site/components/chunks/constants31.js +11 -42
  127. package/dist/site/components/chunks/constants32.js +41 -45
  128. package/dist/site/components/chunks/constants33.js +49 -24
  129. package/dist/site/components/chunks/constants34.js +25 -56
  130. package/dist/site/components/chunks/constants35.js +58 -13
  131. package/dist/site/components/chunks/constants36.js +14 -206
  132. package/dist/site/components/chunks/constants37.js +182 -153
  133. package/dist/site/components/chunks/constants38.js +162 -49
  134. package/dist/site/components/chunks/constants39.js +51 -102
  135. package/dist/site/components/chunks/constants4.js +88 -13
  136. package/dist/site/components/chunks/constants40.js +69 -39
  137. package/dist/site/components/chunks/constants41.js +72 -79
  138. package/dist/site/components/chunks/constants42.js +83 -77
  139. package/dist/site/components/chunks/constants43.js +75 -56
  140. package/dist/site/components/chunks/constants44.js +72 -0
  141. package/dist/site/components/chunks/constants5.js +10 -19
  142. package/dist/site/components/chunks/constants6.js +14 -14
  143. package/dist/site/components/chunks/constants7.js +11 -10
  144. package/dist/site/components/chunks/constants8.js +14 -14
  145. package/dist/site/components/chunks/constants9.js +22 -65
  146. package/dist/site/components/chunks/manifestBase.js +1 -1
  147. package/dist/site/components/chunks/utils2.js +1 -1
  148. package/dist/site/components/extensions.js +127 -125
  149. package/package.json +3 -2
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { T as TestIds } from "../chunks/constants14.js";
3
+ import { T as TestIds } from "../chunks/constants15.js";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
6
6
  import { c as cn } from "../chunks/index9.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants14.js";
2
+ import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants15.js";
3
3
  import { t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, b as textEffectsCommonData, e as textEffectsPatternCssCustomPropertyNames, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: COMPONENT_ID,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { T as TestIds } from "../chunks/constants13.js";
3
+ import { T as TestIds } from "../chunks/constants14.js";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
6
6
  import { c as cn } from "../chunks/index9.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants13.js";
2
+ import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants14.js";
3
3
  import { e as textEffectsPatternCssCustomPropertyNames, t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, b as textEffectsCommonData, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: COMPONENT_ID,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { T as TestIds } from "../chunks/constants12.js";
3
+ import { T as TestIds } from "../chunks/constants13.js";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
6
6
  import { c as cn } from "../chunks/index9.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants12.js";
2
+ import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants13.js";
3
3
  import { t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, b as textEffectsCommonData, e as textEffectsPatternCssCustomPropertyNames, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: COMPONENT_ID,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { T as TestIds } from "../chunks/constants11.js";
3
+ import { T as TestIds } from "../chunks/constants12.js";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
6
6
  import { c as cn } from "../chunks/index9.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants11.js";
2
+ import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants12.js";
3
3
  import { t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, b as textEffectsCommonData, e as textEffectsPatternCssCustomPropertyNames, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: COMPONENT_ID,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { n as noiseIntensityConfig, T as TestIds } from "../chunks/constants10.js";
3
+ import { n as noiseIntensityConfig, T as TestIds } from "../chunks/constants11.js";
4
4
  import { c as createSvgManager, r as range, u as useUniqueSvg } from "../chunks/useUniqueSvg.js";
5
5
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
6
6
  import { c as cn } from "../chunks/index9.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants10.js";
2
+ import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants11.js";
3
3
  import { t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, b as textEffectsCommonData, e as textEffectsPatternCssCustomPropertyNames, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: COMPONENT_ID,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { T as TestIds, a as angleConfig } from "../chunks/constants8.js";
4
- import { b as blendModes } from "../chunks/constants9.js";
3
+ import { T as TestIds, a as angleConfig } from "../chunks/constants9.js";
4
+ import { b as blendModes } from "../chunks/constants10.js";
5
5
  import { r as range, u as useUniqueSvg, c as createSvgManager } from "../chunks/useUniqueSvg.js";
6
6
  import { c as clsx } from "../chunks/clsx.js";
7
7
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, b as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants8.js";
2
+ import { D as DisplayNames, b as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants9.js";
3
3
  import { t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, b as textEffectsCommonData, e as textEffectsPatternCssCustomPropertyNames, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: COMPONENT_ID,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
4
- import { T as TestIds } from "../chunks/constants7.js";
4
+ import { T as TestIds } from "../chunks/constants8.js";
5
5
  import { c as clsx } from "../chunks/clsx.js";
6
6
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
7
7
  import { c as cn } from "../chunks/index9.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants7.js";
2
+ import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants8.js";
3
3
  import { t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, b as textEffectsCommonData, e as textEffectsPatternCssCustomPropertyNames, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: COMPONENT_ID,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { T as TestIds } from "../chunks/constants6.js";
3
+ import { T as TestIds } from "../chunks/constants7.js";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
6
6
  import { c as cn } from "../chunks/index9.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants6.js";
2
+ import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants7.js";
3
3
  import { e as textEffectsPatternCssCustomPropertyNames, t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, b as textEffectsCommonData, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: COMPONENT_ID,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { T as TestIds } from "../chunks/constants5.js";
3
+ import { T as TestIds } from "../chunks/constants6.js";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { u as usePatterns, P as Patterns } from "../chunks/Patterns.js";
6
6
  import { c as cn } from "../chunks/index9.js";
@@ -1,6 +1,6 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, a as ACTIONS, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants5.js";
3
- import { D as DEFAULT_TEXT_DIRECTION } from "../chunks/constants9.js";
2
+ import { D as DisplayNames, a as TEXT_TWIST_PANEL_ID, C as COMPONENT_ID } from "../chunks/constants6.js";
3
+ import { D as DEFAULT_TEXT_DIRECTION } from "../chunks/constants10.js";
4
4
  import { b as textEffectsCommonData, e as textEffectsPatternCssCustomPropertyNames, t as textEffectsInteractions, f as textEffectsPatternCssCustomProperties, a as textEffectsBaseCssProperties, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
5
5
  const manifest = {
6
6
  id: COMPONENT_ID,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { T as TextEffectsShared } from "../chunks/TextEffectsShared.js";
3
- import { T as TestIds } from "../chunks/constants4.js";
3
+ import { T as TestIds } from "../chunks/constants5.js";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { c as cn } from "../chunks/index9.js";
6
6
  const container = "container__tWYVk";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, b as DISPLAY_GROUPS, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DisplayNames } from "../chunks/constants4.js";
2
+ import { D as DisplayNames } from "../chunks/constants5.js";
3
3
  import { t as textEffectsInteractions, a as textEffectsBaseCssProperties, b as textEffectsCommonData, c as textEffectsLayout, d as textEffectsInstallation } from "../chunks/manifestBase.js";
4
4
  const manifest = {
5
5
  id: "7e2b4a91-c5d8-4f3e-9a6b-1d8e7f2c3a4b",
@@ -8,7 +8,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
8
8
  import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
9
9
  import { d as directionStyles } from "../chunks/direction.module.js";
10
10
  import { a as accessibilityStyles } from "../chunks/accessibility.module.js";
11
- import { s as selectors, T as TestIds, V as VALUE_MISSING_MESSAGE } from "../chunks/constants3.js";
11
+ import { s as selectors, T as TestIds, V as VALUE_MISSING_MESSAGE } from "../chunks/constants4.js";
12
12
  import { useService } from "@wix/services-manager-react";
13
13
  import { T as TranslationsDefinition } from "../chunks/index6.js";
14
14
  import { c as $3e6197669829fe11$export$40bfa8c7b0832715, d as $d1116acdf220c2da$export$4c014de7c8940b4c, e as $3274bf1495747a7b$export$5add1d006293d136, f as $bbaa08b3cd72f041$export$9d1611c77c2fe928, g as $23f2114a1b82827e$export$e58f029f0fbfdb29, h as $01b77f81d0f07f68$export$75b6ee27786ba447, i as $a049562f99e7db0e$export$f9c6924e160136d1, a as $01b77f81d0f07f68$export$b04be29aa201d4f5, b as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../chunks/Group.js";
@@ -1,5 +1,5 @@
1
1
  import { I as INTERACTIONS, D as DATA, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, E as ELEMENTS, N as NativeStateType, L as LAYOUT, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
- import { D as DesignStates, a as DisplayNames, s as selectors } from "../chunks/constants3.js";
2
+ import { D as DesignStates, a as DisplayNames, s as selectors } from "../chunks/constants4.js";
3
3
  import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  import { m as manifestFocusable, b as manifestInputable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
@@ -12,7 +12,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
12
12
  import { g as getTranslation } from "../chunks/getTranslation.js";
13
13
  import { d as directionStyles } from "../chunks/direction.module.js";
14
14
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
15
- import { E as EMPTY_VALUE, s as selectors, T as TestIds, a as TRANSLATIONS_NAMESPACE, d as defaultValues, V as VALUE_MISSING_MESSAGE, H as HourCycleValues, D as DefaultTranslations, b as TranslationKeys } from "../chunks/constants2.js";
15
+ import { E as EMPTY_VALUE, s as selectors, T as TestIds, a as TRANSLATIONS_NAMESPACE, d as defaultValues, V as VALUE_MISSING_MESSAGE, H as HourCycleValues, D as DefaultTranslations, b as TranslationKeys } from "../chunks/constants3.js";
16
16
  import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
17
17
  import { D as DismissSmall_default } from "../chunks/DismissSmall.js";
18
18
  import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
@@ -1,5 +1,5 @@
1
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-EVX7ZUBD.js";
2
- import { c as DisplayNames, d as defaultValues, e as DesignStates, s as selectors } from "../chunks/constants2.js";
2
+ import { c as DisplayNames, d as defaultValues, e as DesignStates, s as selectors } from "../chunks/constants3.js";
3
3
  import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  import { m as manifestFocusable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { VideoScrubProps } from './VideoScrub.types';
3
+ declare const VideoScrub: FC<VideoScrubProps>;
4
+ export default VideoScrub;
@@ -0,0 +1,17 @@
1
+ import { VideoMedia } from '@wix/video';
2
+ export declare enum ScrollSpeed {
3
+ slow = "slow",
4
+ normal = "normal",
5
+ fast = "fast"
6
+ }
7
+ export interface VideoScrubProps {
8
+ id: string;
9
+ className?: string;
10
+ video?: VideoMedia;
11
+ scrollSpeed?: ScrollSpeed;
12
+ /**
13
+ * Whether this render may scrub. The live bundle always may; the editor bundle may only in
14
+ * Preview, because the editor stage keeps the designed height.
15
+ */
16
+ scrubAllowed?: boolean;
17
+ }
@@ -0,0 +1,2 @@
1
+ import { default as VideoScrub } from './VideoScrub';
2
+ export default VideoScrub;
@@ -0,0 +1,273 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useRef, useState, useEffect, useCallback } from "react";
3
+ import { c as clsx } from "../chunks/clsx.js";
4
+ import { V as Video } from "../chunks/Video.js";
5
+ import { S as ScrollSpeed, a as SCROLL_VH_PER_SECOND, M as MAX_SCROLL_VH, b as MIN_SCROLL_VH, D as DEFAULT_VIDEO, c as DEFAULT_VIDEO_RATIO, R as ROOT_CLASS } from "../chunks/constants2.js";
6
+ import { useService } from "@wix/services-manager-react";
7
+ import { E as EnvironmentDefinition } from "../chunks/index2.js";
8
+ const clamp = (value, min, max) => Math.min(max, Math.max(min, value));
9
+ const getScrollLengthVh = (duration, speed = ScrollSpeed.normal) => clamp(
10
+ duration * (SCROLL_VH_PER_SECOND[speed] ?? SCROLL_VH_PER_SECOND[ScrollSpeed.normal]),
11
+ MIN_SCROLL_VH,
12
+ MAX_SCROLL_VH
13
+ );
14
+ const getVideoRatio = (video) => {
15
+ var _a;
16
+ const sized = ((_a = video == null ? void 0 : video.sources) == null ? void 0 : _a.find(({ width: width2, height: height2 }) => width2 > 0 && height2 > 0)) ?? (video == null ? void 0 : video.poster);
17
+ const width = Number(sized == null ? void 0 : sized.width);
18
+ const height = Number(sized == null ? void 0 : sized.height);
19
+ return width > 0 && height > 0 ? height / width : void 0;
20
+ };
21
+ const getScrubProgress = (root2, stage2) => {
22
+ const rootRect = root2.getBoundingClientRect();
23
+ const stageRect = stage2.getBoundingClientRect();
24
+ const travel = rootRect.height - stageRect.height;
25
+ if (!(travel > 0)) {
26
+ return 0;
27
+ }
28
+ return clamp((stageRect.top - rootRect.top) / travel, 0, 1);
29
+ };
30
+ const useScrubGate = ({
31
+ scrubAllowed,
32
+ duration
33
+ }) => {
34
+ const environment = useService(EnvironmentDefinition);
35
+ const layout = scrubAllowed && duration > 0;
36
+ const seek = layout && !(environment == null ? void 0 : environment.reducedMotion);
37
+ return { layout, seek };
38
+ };
39
+ const SEEK_EPSILON = 1 / 60;
40
+ const END_OFFSET = 1 / 30;
41
+ const FIRST_FRAME_TIME = 1e-3;
42
+ const getScrubTime = (progress, duration) => {
43
+ if (!(Number.isFinite(duration) && duration > 0)) {
44
+ return void 0;
45
+ }
46
+ return Math.min(progress * duration, Math.max(0, duration - END_OFFSET));
47
+ };
48
+ const flushSeek = (video, target) => {
49
+ if (video.seeking || video.readyState < HTMLMediaElement.HAVE_METADATA) {
50
+ return false;
51
+ }
52
+ if (Math.abs(video.currentTime - target) <= SEEK_EPSILON) {
53
+ return false;
54
+ }
55
+ video.currentTime = target;
56
+ return true;
57
+ };
58
+ const useScrubVideo = ({
59
+ enabled,
60
+ videoRef,
61
+ videoKey
62
+ }) => {
63
+ const progress = useRef(0);
64
+ const flush = useRef(() => {
65
+ });
66
+ const [frameReady2, setFrameReady] = useState(false);
67
+ useEffect(() => {
68
+ const video = videoRef.current;
69
+ if (!enabled || !video) {
70
+ setFrameReady(false);
71
+ return void 0;
72
+ }
73
+ if (!video.paused) {
74
+ video.pause();
75
+ }
76
+ let firstFrameShown = false;
77
+ let requestedSrc = "";
78
+ progress.current = 0;
79
+ setFrameReady(false);
80
+ flush.current = () => {
81
+ const time = getScrubTime(progress.current, video.duration);
82
+ if (time !== void 0) {
83
+ flushSeek(video, time);
84
+ }
85
+ };
86
+ const startLoading = () => {
87
+ const src = video.getAttribute("src") || video.currentSrc;
88
+ if (!src || src === requestedSrc) {
89
+ return;
90
+ }
91
+ requestedSrc = src;
92
+ video.preload = "auto";
93
+ if (video.readyState < HTMLMediaElement.HAVE_METADATA) {
94
+ video.load();
95
+ }
96
+ };
97
+ const onLoadedMetadata = () => {
98
+ if (!firstFrameShown) {
99
+ firstFrameShown = true;
100
+ if (progress.current === 0) {
101
+ video.currentTime = FIRST_FRAME_TIME;
102
+ return;
103
+ }
104
+ }
105
+ flush.current();
106
+ };
107
+ const onSeeked = () => {
108
+ if (firstFrameShown) {
109
+ setFrameReady(true);
110
+ }
111
+ flush.current();
112
+ };
113
+ const onDurationChange = () => flush.current();
114
+ const onEmptied = () => {
115
+ firstFrameShown = false;
116
+ setFrameReady(false);
117
+ };
118
+ video.addEventListener("loadstart", startLoading);
119
+ video.addEventListener("loadedmetadata", onLoadedMetadata);
120
+ video.addEventListener("durationchange", onDurationChange);
121
+ video.addEventListener("seeked", onSeeked);
122
+ video.addEventListener("emptied", onEmptied);
123
+ startLoading();
124
+ if (video.readyState >= HTMLMediaElement.HAVE_METADATA) {
125
+ onLoadedMetadata();
126
+ }
127
+ return () => {
128
+ flush.current = () => {
129
+ };
130
+ video.removeEventListener("loadstart", startLoading);
131
+ video.removeEventListener("loadedmetadata", onLoadedMetadata);
132
+ video.removeEventListener("durationchange", onDurationChange);
133
+ video.removeEventListener("seeked", onSeeked);
134
+ video.removeEventListener("emptied", onEmptied);
135
+ };
136
+ }, [enabled, videoRef, videoKey]);
137
+ const seekProgress = useCallback((value) => {
138
+ progress.current = Math.min(1, Math.max(0, value));
139
+ flush.current();
140
+ }, []);
141
+ return { seekProgress, frameReady: frameReady2 };
142
+ };
143
+ const useScrubProgress = ({
144
+ enabled,
145
+ rootRef,
146
+ stageRef,
147
+ onProgress
148
+ }) => {
149
+ useEffect(() => {
150
+ const root2 = rootRef.current;
151
+ const stage2 = stageRef.current;
152
+ if (!enabled || !root2 || !stage2 || typeof IntersectionObserver === "undefined") {
153
+ return void 0;
154
+ }
155
+ let frame = 0;
156
+ const read = () => onProgress(getScrubProgress(root2, stage2));
157
+ const tick = () => {
158
+ read();
159
+ frame = requestAnimationFrame(tick);
160
+ };
161
+ const stop = () => {
162
+ cancelAnimationFrame(frame);
163
+ frame = 0;
164
+ };
165
+ const observer = new IntersectionObserver((entries) => {
166
+ var _a;
167
+ if ((_a = entries[entries.length - 1]) == null ? void 0 : _a.isIntersecting) {
168
+ if (!frame) {
169
+ frame = requestAnimationFrame(tick);
170
+ }
171
+ } else {
172
+ stop();
173
+ read();
174
+ }
175
+ });
176
+ observer.observe(root2);
177
+ return () => {
178
+ observer.disconnect();
179
+ stop();
180
+ };
181
+ }, [enabled, rootRef, stageRef, onProgress]);
182
+ };
183
+ const root = "root__Wv1E1";
184
+ const stage = "stage__XFpev";
185
+ const scrubbing = "scrubbing__yEgJI";
186
+ const scrollSpace = "scrollSpace__oaKzu";
187
+ const frameReady = "frameReady__g-HFT";
188
+ const styles = {
189
+ root,
190
+ stage,
191
+ scrubbing,
192
+ scrollSpace,
193
+ frameReady
194
+ };
195
+ const SCRUB_ROOT_STYLE = {
196
+ minHeight: "max-content",
197
+ aspectRatio: "auto"
198
+ };
199
+ const VideoScrub = ({
200
+ id,
201
+ className,
202
+ video: savedVideo,
203
+ scrollSpeed = ScrollSpeed.normal,
204
+ scrubAllowed = true
205
+ }) => {
206
+ const rootRef = useRef(null);
207
+ const stageRef = useRef(null);
208
+ const videoRef = useRef(null);
209
+ const video = savedVideo ?? DEFAULT_VIDEO;
210
+ const duration = video.duration ?? 0;
211
+ const { layout, seek } = useScrubGate({ scrubAllowed, duration });
212
+ const { seekProgress, frameReady: frameReady2 } = useScrubVideo({
213
+ enabled: seek,
214
+ videoRef,
215
+ videoKey: video.uri
216
+ });
217
+ useScrubProgress({
218
+ enabled: seek,
219
+ rootRef,
220
+ stageRef,
221
+ onProgress: seekProgress
222
+ });
223
+ return /* @__PURE__ */ jsxs(
224
+ "div",
225
+ {
226
+ id,
227
+ ref: rootRef,
228
+ className: clsx(
229
+ ROOT_CLASS,
230
+ styles.root,
231
+ layout && styles.scrubbing,
232
+ className
233
+ ),
234
+ style: layout ? SCRUB_ROOT_STYLE : void 0,
235
+ children: [
236
+ /* @__PURE__ */ jsx(
237
+ "div",
238
+ {
239
+ ref: stageRef,
240
+ className: clsx(styles.stage, frameReady2 && styles.frameReady),
241
+ style: layout ? {
242
+ aspectRatio: `1 / ${getVideoRatio(video) ?? DEFAULT_VIDEO_RATIO}`
243
+ } : void 0,
244
+ "data-scrub-stage": layout ? "" : void 0,
245
+ "aria-hidden": "true",
246
+ children: /* @__PURE__ */ jsx(
247
+ Video,
248
+ {
249
+ id: `video_${id}`,
250
+ videoMedia: video,
251
+ videoRef,
252
+ qualityPolicy: "proportional",
253
+ autoplay: false,
254
+ loop: false,
255
+ muted: true
256
+ }
257
+ )
258
+ }
259
+ ),
260
+ layout && /* @__PURE__ */ jsx(
261
+ "div",
262
+ {
263
+ className: styles.scrollSpace,
264
+ style: { height: `${getScrollLengthVh(duration, scrollSpeed)}vh` }
265
+ }
266
+ )
267
+ ]
268
+ }
269
+ );
270
+ };
271
+ export {
272
+ VideoScrub as default
273
+ };
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { VideoScrubProps } from './VideoScrub.types';
3
+ export default function VideoScrubPreview(props: VideoScrubProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { VideoMedia } from '@wix/video';
2
+ import { ScrollSpeed } from './VideoScrub.types';
3
+ export declare const ROOT_CLASS = "video-scrub";
4
+ export declare const DEFAULT_VIDEO_RATIO: number;
5
+ export declare const SCROLL_VH_PER_SECOND: Record<ScrollSpeed, number>;
6
+ export declare const MIN_SCROLL_VH = 50;
7
+ export declare const MAX_SCROLL_VH = 1000;
8
+ export declare const DEFAULT_VIDEO: VideoMedia;
@@ -0,0 +1,72 @@
1
+ .root__Wv1E1 {
2
+ position: relative;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ .stage__XFpev {
7
+ position: relative;
8
+ width: 100%;
9
+ height: 100%;
10
+ overflow: hidden;
11
+ }
12
+
13
+ .scrubbing__yEgJI .stage__XFpev {
14
+ position: sticky;
15
+ top: var(--wix-top-inset, calc(var(--wix-ads-top-height, 0px) + var(--top-offset, 0px)));
16
+ transition: top var(--wix-top-inset-transition-duration, 0ms) var(--wix-top-inset-transition-easing, linear);
17
+ height: inherit;
18
+ }
19
+
20
+ @media (prefers-reduced-motion: reduce) {
21
+ .scrollSpace__oaKzu {
22
+ display: none;
23
+ }
24
+ .scrubbing__yEgJI .stage__XFpev {
25
+ transition: none;
26
+ }
27
+ }
28
+ .frameReady__g-HFT video,
29
+ .frameReady__g-HFT wow-image {
30
+ transition: opacity 0.2s ease-out;
31
+ }
32
+ .frameReady__g-HFT video {
33
+ opacity: 1;
34
+ }
35
+ .frameReady__g-HFT wow-image {
36
+ opacity: 0;
37
+ }
38
+ .videoContainer__Eyxxe {
39
+ width: 100%;
40
+ height: 100%;
41
+ display: block;
42
+ position: relative;
43
+ container-type: size;
44
+ }
45
+
46
+ .video__YuKrH {
47
+ height: 100%;
48
+ width: 100%;
49
+ top: 0;
50
+ left: 0;
51
+ position: absolute;
52
+ object-fit: var(--video-fit, cover);
53
+ opacity: 0;
54
+ --position-left: calc(50cqw - 1cqh * var(--focal-x, 50) * var(--aspect-ratio, 1));
55
+ --position-top: calc(50cqh - 1cqw * var(--focal-y, 50) / var(--aspect-ratio, 1));
56
+ object-position: var(--video-position, clamp(100%, var(--position-left), 0%) clamp(100%, var(--position-top), 0%));
57
+ }
58
+ .image__WopE9 {
59
+ display: block;
60
+ width: 100%;
61
+ height: 100%;
62
+ }
63
+ .image__WopE9 img {
64
+ max-width: var(--wix-img-max-width, 100%);
65
+ }
66
+ .image__WopE9[data-animate-blur] img {
67
+ filter: blur(9px);
68
+ transition: filter 0.8s ease-in;
69
+ }
70
+ .image__WopE9[data-animate-blur] img[data-load-done] {
71
+ filter: none;
72
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * `layout`: render the tall root, the sticky stage and the scroll space.
3
+ * `seek`: drive the video time from the scroll.
4
+ *
5
+ * Reduced motion turns off only `seek`. The server can't know the visitor's setting, so the tall
6
+ * layout is switched off in CSS (prefers-reduced-motion) and the server and client DOM stay equal.
7
+ */
8
+ export declare const useScrubGate: ({ scrubAllowed, duration, }: {
9
+ scrubAllowed: boolean;
10
+ duration: number;
11
+ }) => {
12
+ layout: boolean;
13
+ seek: boolean;
14
+ };
@@ -0,0 +1,11 @@
1
+ import { RefObject } from 'react';
2
+ /**
3
+ * Calls `onProgress` every frame with the scroll progress through the tall root, while the root
4
+ * is on screen. It only reads layout, so it adds no forced reflow to the frame.
5
+ */
6
+ export declare const useScrubProgress: ({ enabled, rootRef, stageRef, onProgress, }: {
7
+ enabled: boolean;
8
+ rootRef: RefObject<HTMLElement | null>;
9
+ stageRef: RefObject<HTMLElement | null>;
10
+ onProgress: (progress: number) => void;
11
+ }) => void;