@gravity-ui/page-constructor 4.51.0 → 4.51.2-alpha.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 (233) hide show
  1. package/README.md +5 -3
  2. package/build/cjs/blocks/Banner/schema.d.ts +12 -264
  3. package/build/cjs/blocks/Banner/schema.js +4 -1
  4. package/build/cjs/blocks/FilterBlock/FilterBlock.js +2 -2
  5. package/build/cjs/blocks/FilterBlock/i18n/index.d.ts +1 -2
  6. package/build/cjs/blocks/FilterBlock/i18n/index.js +4 -3
  7. package/build/cjs/blocks/Header/schema.js +1 -1
  8. package/build/cjs/blocks/Map/schema.d.ts +0 -88
  9. package/build/cjs/blocks/Media/schema.d.ts +0 -176
  10. package/build/cjs/blocks/Security/i18n/index.d.ts +1 -2
  11. package/build/cjs/blocks/Security/i18n/index.js +4 -3
  12. package/build/cjs/blocks/Share/Share.js +4 -4
  13. package/build/cjs/blocks/Share/i18n/index.d.ts +1 -2
  14. package/build/cjs/blocks/Share/i18n/index.js +4 -3
  15. package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
  16. package/build/cjs/blocks/Slider/i18n/index.d.ts +1 -2
  17. package/build/cjs/blocks/Slider/i18n/index.js +4 -3
  18. package/build/cjs/components/Button/Button.js +4 -7
  19. package/build/cjs/components/Button/i18n/index.d.ts +1 -2
  20. package/build/cjs/components/Button/i18n/index.js +4 -3
  21. package/build/cjs/components/CardBase/CardBase.d.ts +1 -3
  22. package/build/cjs/components/CardBase/CardBase.js +1 -4
  23. package/build/cjs/components/Control/Control.js +2 -2
  24. package/build/cjs/components/Control/i18n/index.d.ts +1 -2
  25. package/build/cjs/components/Control/i18n/index.js +4 -3
  26. package/build/cjs/components/FullscreenImage/FullscreenImage.js +3 -3
  27. package/build/cjs/components/FullscreenImage/i18n/index.d.ts +1 -2
  28. package/build/cjs/components/FullscreenImage/i18n/index.js +4 -3
  29. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
  30. package/build/cjs/components/Link/Link.js +1 -4
  31. package/build/cjs/components/Map/GoogleMap.js +2 -2
  32. package/build/cjs/components/Map/YMap/YandexMap.js +2 -2
  33. package/build/cjs/components/Map/YMap/i18n/index.d.ts +1 -2
  34. package/build/cjs/components/Map/YMap/i18n/index.js +4 -3
  35. package/build/cjs/components/Media/DataLens/DataLens.js +2 -2
  36. package/build/cjs/components/Media/DataLens/i18n/index.d.ts +1 -2
  37. package/build/cjs/components/Media/DataLens/i18n/index.js +4 -3
  38. package/build/cjs/components/Media/Iframe/Iframe.js +2 -2
  39. package/build/cjs/components/Media/Iframe/i18n/index.d.ts +1 -2
  40. package/build/cjs/components/Media/Iframe/i18n/index.js +4 -3
  41. package/build/cjs/components/Media/Media.js +1 -3
  42. package/build/cjs/components/Media/Video/Video.js +2 -3
  43. package/build/cjs/components/OverflowScroller/OverflowScroller.js +2 -2
  44. package/build/cjs/components/OverflowScroller/i18n/index.d.ts +1 -2
  45. package/build/cjs/components/OverflowScroller/i18n/index.js +4 -3
  46. package/build/cjs/components/ReactPlayer/CustomBarControls.js +3 -3
  47. package/build/cjs/components/ReactPlayer/ReactPlayer.js +5 -29
  48. package/build/cjs/components/ReactPlayer/i18n/index.d.ts +1 -2
  49. package/build/cjs/components/ReactPlayer/i18n/index.js +4 -3
  50. package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.js +2 -2
  51. package/build/cjs/components/UnpublishedLabel/i18n/index.d.ts +1 -2
  52. package/build/cjs/components/UnpublishedLabel/i18n/index.js +4 -3
  53. package/build/cjs/components/VideoBlock/VideoBlock.js +2 -2
  54. package/build/cjs/components/VideoBlock/i18n/index.d.ts +1 -2
  55. package/build/cjs/components/VideoBlock/i18n/index.js +4 -3
  56. package/build/cjs/components/YandexForm/YandexForm.js +2 -13
  57. package/build/cjs/containers/Loadable/Loadable.js +2 -2
  58. package/build/cjs/containers/Loadable/i18n/index.d.ts +1 -2
  59. package/build/cjs/containers/Loadable/i18n/index.js +4 -3
  60. package/build/cjs/containers/PageConstructor/Provider.d.ts +0 -2
  61. package/build/cjs/containers/PageConstructor/Provider.js +1 -3
  62. package/build/cjs/context/localeContext/localeContext.d.ts +2 -2
  63. package/build/cjs/context/localeContext/localeContext.js +2 -2
  64. package/build/cjs/editor/components/ControlPanel/ControlPanel.js +3 -3
  65. package/build/cjs/editor/components/ControlPanel/i18n/en.json +2 -1
  66. package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +1 -2
  67. package/build/cjs/editor/components/ControlPanel/i18n/index.js +4 -3
  68. package/build/cjs/editor/components/ControlPanel/i18n/ru.json +2 -1
  69. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +3 -3
  70. package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
  71. package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +4 -3
  72. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.js +2 -2
  73. package/build/cjs/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
  74. package/build/cjs/editor/components/NotFoundBlock/i18n/index.js +4 -3
  75. package/build/cjs/hooks/useAnalytics.d.ts +2 -2
  76. package/build/cjs/hooks/useMetrika.d.ts +1 -13
  77. package/build/cjs/hooks/useMetrika.js +0 -41
  78. package/build/cjs/models/common.d.ts +2 -53
  79. package/build/cjs/models/common.js +1 -25
  80. package/build/cjs/models/constructor-items/common.d.ts +2 -28
  81. package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -3
  82. package/build/cjs/models/guards.d.ts +0 -2
  83. package/build/cjs/models/guards.js +1 -5
  84. package/build/cjs/schema/constants.d.ts +4 -176
  85. package/build/cjs/schema/validators/common.d.ts +1 -188
  86. package/build/cjs/schema/validators/common.js +2 -32
  87. package/build/cjs/schema/validators/index.d.ts +0 -2
  88. package/build/cjs/schema/validators/index.js +0 -2
  89. package/build/cjs/sub-blocks/HubspotForm/index.js +1 -6
  90. package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +1 -15
  91. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +0 -88
  92. package/build/cjs/text-transform/common.d.ts +4 -4
  93. package/build/cjs/text-transform/transformers.d.ts +2 -2
  94. package/build/cjs/text-transform/utils.d.ts +6 -6
  95. package/build/cjs/text-transform/utils.js +5 -5
  96. package/build/cjs/utils/index.d.ts +0 -1
  97. package/build/cjs/utils/index.js +1 -4
  98. package/build/esm/blocks/Banner/schema.d.ts +12 -264
  99. package/build/esm/blocks/Banner/schema.js +5 -2
  100. package/build/esm/blocks/FilterBlock/FilterBlock.js +1 -1
  101. package/build/esm/blocks/FilterBlock/i18n/index.d.ts +1 -2
  102. package/build/esm/blocks/FilterBlock/i18n/index.js +3 -3
  103. package/build/esm/blocks/Header/schema.js +2 -2
  104. package/build/esm/blocks/Map/schema.d.ts +0 -88
  105. package/build/esm/blocks/Media/schema.d.ts +0 -176
  106. package/build/esm/blocks/Security/i18n/index.d.ts +1 -2
  107. package/build/esm/blocks/Security/i18n/index.js +3 -3
  108. package/build/esm/blocks/Share/Share.js +1 -1
  109. package/build/esm/blocks/Share/i18n/index.d.ts +1 -2
  110. package/build/esm/blocks/Share/i18n/index.js +3 -3
  111. package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
  112. package/build/esm/blocks/Slider/i18n/index.d.ts +1 -2
  113. package/build/esm/blocks/Slider/i18n/index.js +3 -3
  114. package/build/esm/components/Button/Button.js +3 -6
  115. package/build/esm/components/Button/i18n/index.d.ts +1 -2
  116. package/build/esm/components/Button/i18n/index.js +3 -3
  117. package/build/esm/components/CardBase/CardBase.d.ts +1 -3
  118. package/build/esm/components/CardBase/CardBase.js +1 -4
  119. package/build/esm/components/Control/Control.js +1 -1
  120. package/build/esm/components/Control/i18n/index.d.ts +1 -2
  121. package/build/esm/components/Control/i18n/index.js +3 -3
  122. package/build/esm/components/FullscreenImage/FullscreenImage.js +1 -1
  123. package/build/esm/components/FullscreenImage/i18n/index.d.ts +1 -2
  124. package/build/esm/components/FullscreenImage/i18n/index.js +3 -3
  125. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
  126. package/build/esm/components/Link/Link.js +1 -4
  127. package/build/esm/components/Map/GoogleMap.js +1 -1
  128. package/build/esm/components/Map/YMap/YandexMap.js +1 -1
  129. package/build/esm/components/Map/YMap/i18n/index.d.ts +1 -2
  130. package/build/esm/components/Map/YMap/i18n/index.js +3 -3
  131. package/build/esm/components/Media/DataLens/DataLens.js +1 -1
  132. package/build/esm/components/Media/DataLens/i18n/index.d.ts +1 -2
  133. package/build/esm/components/Media/DataLens/i18n/index.js +3 -3
  134. package/build/esm/components/Media/Iframe/Iframe.js +1 -1
  135. package/build/esm/components/Media/Iframe/i18n/index.d.ts +1 -2
  136. package/build/esm/components/Media/Iframe/i18n/index.js +3 -3
  137. package/build/esm/components/Media/Media.js +1 -3
  138. package/build/esm/components/Media/Video/Video.js +2 -3
  139. package/build/esm/components/OverflowScroller/OverflowScroller.js +1 -1
  140. package/build/esm/components/OverflowScroller/i18n/index.d.ts +1 -2
  141. package/build/esm/components/OverflowScroller/i18n/index.js +3 -3
  142. package/build/esm/components/ReactPlayer/CustomBarControls.js +1 -1
  143. package/build/esm/components/ReactPlayer/ReactPlayer.js +4 -28
  144. package/build/esm/components/ReactPlayer/i18n/index.d.ts +1 -2
  145. package/build/esm/components/ReactPlayer/i18n/index.js +3 -3
  146. package/build/esm/components/UnpublishedLabel/UnpublishedLabel.js +1 -1
  147. package/build/esm/components/UnpublishedLabel/i18n/index.d.ts +1 -2
  148. package/build/esm/components/UnpublishedLabel/i18n/index.js +3 -3
  149. package/build/esm/components/VideoBlock/VideoBlock.js +1 -1
  150. package/build/esm/components/VideoBlock/i18n/index.d.ts +1 -2
  151. package/build/esm/components/VideoBlock/i18n/index.js +3 -3
  152. package/build/esm/components/YandexForm/YandexForm.js +2 -13
  153. package/build/esm/containers/Loadable/Loadable.js +1 -1
  154. package/build/esm/containers/Loadable/i18n/index.d.ts +1 -2
  155. package/build/esm/containers/Loadable/i18n/index.js +3 -3
  156. package/build/esm/containers/PageConstructor/Provider.d.ts +0 -2
  157. package/build/esm/containers/PageConstructor/Provider.js +1 -3
  158. package/build/esm/context/localeContext/localeContext.d.ts +2 -2
  159. package/build/esm/context/localeContext/localeContext.js +1 -1
  160. package/build/esm/editor/components/ControlPanel/ControlPanel.js +2 -2
  161. package/build/esm/editor/components/ControlPanel/i18n/en.json +2 -1
  162. package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +1 -2
  163. package/build/esm/editor/components/ControlPanel/i18n/index.js +3 -3
  164. package/build/esm/editor/components/ControlPanel/i18n/ru.json +2 -1
  165. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +1 -1
  166. package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
  167. package/build/esm/editor/components/ErrorBoundary/i18n/index.js +3 -3
  168. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.js +1 -1
  169. package/build/esm/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
  170. package/build/esm/editor/components/NotFoundBlock/i18n/index.js +3 -3
  171. package/build/esm/hooks/useAnalytics.d.ts +2 -2
  172. package/build/esm/hooks/useMetrika.d.ts +1 -13
  173. package/build/esm/hooks/useMetrika.js +1 -38
  174. package/build/esm/models/common.d.ts +2 -53
  175. package/build/esm/models/common.js +0 -24
  176. package/build/esm/models/constructor-items/common.d.ts +2 -28
  177. package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -3
  178. package/build/esm/models/guards.d.ts +0 -2
  179. package/build/esm/models/guards.js +0 -3
  180. package/build/esm/schema/constants.d.ts +4 -176
  181. package/build/esm/schema/validators/common.d.ts +1 -188
  182. package/build/esm/schema/validators/common.js +1 -31
  183. package/build/esm/schema/validators/index.d.ts +0 -2
  184. package/build/esm/schema/validators/index.js +0 -2
  185. package/build/esm/sub-blocks/HubspotForm/index.js +1 -6
  186. package/build/esm/sub-blocks/LayoutItem/utils.d.ts +1 -15
  187. package/build/esm/sub-blocks/PriceCard/schema.d.ts +0 -88
  188. package/build/esm/text-transform/common.d.ts +4 -4
  189. package/build/esm/text-transform/transformers.d.ts +2 -2
  190. package/build/esm/text-transform/utils.d.ts +6 -6
  191. package/build/esm/text-transform/utils.js +1 -1
  192. package/build/esm/utils/index.d.ts +0 -1
  193. package/build/esm/utils/index.js +0 -1
  194. package/package.json +1 -1
  195. package/server/models/common.d.ts +2 -53
  196. package/server/models/common.js +1 -25
  197. package/server/models/constructor-items/common.d.ts +2 -28
  198. package/server/models/constructor-items/sub-blocks.d.ts +2 -3
  199. package/server/models/guards.d.ts +0 -2
  200. package/server/models/guards.js +1 -5
  201. package/server/text-transform/common.d.ts +4 -4
  202. package/server/text-transform/transformers.d.ts +2 -2
  203. package/server/text-transform/utils.d.ts +6 -6
  204. package/server/text-transform/utils.js +5 -5
  205. package/server/utils/index.d.ts +0 -1
  206. package/server/utils/index.js +1 -4
  207. package/widget/index.js +1 -1
  208. package/build/cjs/context/metrikaContext/index.d.ts +0 -1
  209. package/build/cjs/context/metrikaContext/index.js +0 -4
  210. package/build/cjs/context/metrikaContext/metrikaContext.d.ts +0 -13
  211. package/build/cjs/context/metrikaContext/metrikaContext.js +0 -6
  212. package/build/cjs/i18n.d.ts +0 -2
  213. package/build/cjs/i18n.js +0 -12
  214. package/build/cjs/schema/validators/pixel.d.ts +0 -57
  215. package/build/cjs/schema/validators/pixel.js +0 -63
  216. package/build/cjs/utils/configure.d.ts +0 -12
  217. package/build/cjs/utils/configure.js +0 -26
  218. package/build/cjs/utils/registerKeyset.d.ts +0 -5
  219. package/build/cjs/utils/registerKeyset.js +0 -9
  220. package/build/esm/context/metrikaContext/index.d.ts +0 -1
  221. package/build/esm/context/metrikaContext/index.js +0 -1
  222. package/build/esm/context/metrikaContext/metrikaContext.d.ts +0 -13
  223. package/build/esm/context/metrikaContext/metrikaContext.js +0 -2
  224. package/build/esm/i18n.d.ts +0 -2
  225. package/build/esm/i18n.js +0 -9
  226. package/build/esm/schema/validators/pixel.d.ts +0 -57
  227. package/build/esm/schema/validators/pixel.js +0 -60
  228. package/build/esm/utils/configure.d.ts +0 -12
  229. package/build/esm/utils/configure.js +0 -20
  230. package/build/esm/utils/registerKeyset.d.ts +0 -5
  231. package/build/esm/utils/registerKeyset.js +0 -5
  232. package/server/utils/configure.d.ts +0 -12
  233. package/server/utils/configure.js +0 -26
@@ -9,7 +9,7 @@ import Video from './Video/Video';
9
9
  import './Media.css';
10
10
  const b = block('Media');
11
11
  export const Media = (props) => {
12
- const { image, video, youtube, dataLens, color, height, previewImg, parallax = false, metrika, fullscreen, analyticsEvents, className, imageClassName, videoClassName, youtubeClassName, playVideo = true, isBackground, playButton, customBarControlsClassName, qa, ratio, autoplay, onImageLoad, iframe, margins, } = props;
12
+ const { image, video, youtube, dataLens, color, height, previewImg, parallax = false, fullscreen, analyticsEvents, className, imageClassName, videoClassName, youtubeClassName, playVideo = true, isBackground, playButton, customBarControlsClassName, qa, ratio, autoplay, onImageLoad, iframe, margins, } = props;
13
13
  const [hasVideoFallback, setHasVideoFallback] = useState(false);
14
14
  const qaAttributes = getQaAttrubutes(qa, 'video');
15
15
  const content = useMemo(() => {
@@ -23,7 +23,6 @@ export const Media = (props) => {
23
23
  video,
24
24
  videoClassName,
25
25
  height,
26
- metrika,
27
26
  analyticsEvents,
28
27
  playVideo,
29
28
  previewImg,
@@ -66,7 +65,6 @@ export const Media = (props) => {
66
65
  qaAttributes.video,
67
66
  onImageLoad,
68
67
  videoClassName,
69
- metrika,
70
68
  analyticsEvents,
71
69
  playVideo,
72
70
  previewImg,
@@ -6,7 +6,7 @@ import ReactPlayerBlock from '../../ReactPlayer/ReactPlayer';
6
6
  import './Video.css';
7
7
  const b = block('media-component-video');
8
8
  const Video = (props) => {
9
- const { video, height, metrika, analyticsEvents, previewImg, playButton: commonPlayButton, customBarControlsClassName, videoClassName, playVideo, setHasVideoFallback, hasVideoFallback, qa, ratio, } = props;
9
+ const { video, height, analyticsEvents, previewImg, playButton: commonPlayButton, customBarControlsClassName, videoClassName, playVideo, setHasVideoFallback, hasVideoFallback, qa, ratio, } = props;
10
10
  const qaAttributes = getQaAttrubutes(qa, 'source');
11
11
  const ref = useRef(null);
12
12
  useEffect(() => {
@@ -30,7 +30,7 @@ const Video = (props) => {
30
30
  }, [playVideo, video, setHasVideoFallback]);
31
31
  const reactPlayerBlock = useMemo(() => {
32
32
  const { src, loop, controls, muted, autoplay = true, elapsedTime, playButton, ariaLabel, customControlsOptions, } = video;
33
- return (React.createElement(ReactPlayerBlock, { ref: ref, className: b('react-player', videoClassName), src: src, previewImgUrl: previewImg, loop: Boolean(loop), controls: controls, muted: muted, autoplay: autoplay && playVideo, elapsedTime: elapsedTime, playButton: playButton || commonPlayButton, customBarControlsClassName: customBarControlsClassName, metrika: metrika, analyticsEvents: analyticsEvents, height: height, ariaLabel: ariaLabel, customControlsOptions: customControlsOptions, ratio: ratio }));
33
+ return (React.createElement(ReactPlayerBlock, { ref: ref, className: b('react-player', videoClassName), src: src, previewImgUrl: previewImg, loop: Boolean(loop), controls: controls, muted: muted, autoplay: autoplay && playVideo, elapsedTime: elapsedTime, playButton: playButton || commonPlayButton, customBarControlsClassName: customBarControlsClassName, analyticsEvents: analyticsEvents, height: height, ariaLabel: ariaLabel, customControlsOptions: customControlsOptions, ratio: ratio }));
34
34
  }, [
35
35
  video,
36
36
  height,
@@ -39,7 +39,6 @@ const Video = (props) => {
39
39
  playVideo,
40
40
  commonPlayButton,
41
41
  customBarControlsClassName,
42
- metrika,
43
42
  analyticsEvents,
44
43
  ratio,
45
44
  ]);
@@ -2,7 +2,7 @@ import React, { createRef } from 'react';
2
2
  import debounce from 'lodash/debounce';
3
3
  import { ToggleArrow } from '..';
4
4
  import { block } from '../../utils';
5
- import i18n from './i18n';
5
+ import { i18n } from './i18n';
6
6
  import './OverflowScroller.css';
7
7
  const b = block('overflow-scroller');
8
8
  const TRANSITION_TIME = 300;
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "left" | "right", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'OverflowScroller';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}OverflowScroller`);
@@ -6,7 +6,7 @@ import { Unmute } from '../../icons/Unmute';
6
6
  import { CustomControlsType } from '../../models';
7
7
  import { block } from '../../utils';
8
8
  import CircleProgress from './CircleProgress';
9
- import i18n from './i18n';
9
+ import { i18n } from './i18n';
10
10
  import './CustomBarControls.css';
11
11
  const b = block('CustomBarControls');
12
12
  const playIconsMap = {
@@ -2,7 +2,6 @@ import React, { Fragment, useCallback, useContext, useEffect, useImperativeHandl
2
2
  import { Icon } from '@gravity-ui/uikit';
3
3
  import debounce from 'lodash/debounce';
4
4
  import ReactPlayer from 'react-player';
5
- import { MetrikaContext } from '../../context/metrikaContext';
6
5
  import { MobileContext } from '../../context/mobileContext';
7
6
  import { VideoContext } from '../../context/videoContext';
8
7
  import { useAnalytics, useMount } from '../../hooks';
@@ -10,7 +9,7 @@ import { PlayVideo } from '../../icons';
10
9
  import { CustomControlsButtonPositioning, CustomControlsType, DefaultEventNames, MediaVideoControlsType, PlayButtonThemes, PlayButtonType, PredefinedEventTypes, } from '../../models';
11
10
  import { block } from '../../utils';
12
11
  import CustomBarControls from './CustomBarControls';
13
- import i18n from './i18n';
12
+ import { i18n } from './i18n';
14
13
  import { checkYoutubeVideos } from './utils';
15
14
  import './ReactPlayer.css';
16
15
  const b = block('ReactPlayer');
@@ -18,8 +17,7 @@ const FPS = 60;
18
17
  // eslint-disable-next-line react/display-name
19
18
  export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
20
19
  const isMobile = useContext(MobileContext);
21
- const { metrika } = useContext(MetrikaContext);
22
- const { src, previewImgUrl, loop = false, controls = MediaVideoControlsType.Default, customControlsOptions = {}, muted: initiallyMuted = false, elapsedTime, playButton, className, customBarControlsClassName, showPreview, onClickPreview, metrika: videoMetrika, analyticsEvents, height, ariaLabel, ratio, } = props;
20
+ const { src, previewImgUrl, loop = false, controls = MediaVideoControlsType.Default, customControlsOptions = {}, muted: initiallyMuted = false, elapsedTime, playButton, className, customBarControlsClassName, showPreview, onClickPreview, analyticsEvents, height, ariaLabel, ratio, } = props;
23
21
  const { type = PlayButtonType.Default, theme = PlayButtonThemes.Blue, text, className: buttonClassName, } = playButton || {};
24
22
  const { type: customControlsType = CustomControlsType.WithMuteButton, muteButtonShown, positioning = CustomControlsButtonPositioning.Center, } = customControlsOptions;
25
23
  const autoPlay = Boolean(!isMobile && !previewImgUrl && props.autoplay);
@@ -125,13 +123,6 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
125
123
  playerRef.seekTo(0);
126
124
  setPlayedPercent(0);
127
125
  }
128
- if (metrika && videoMetrika) {
129
- const { play, stop, counterName } = videoMetrika;
130
- const goal = isMuted ? play : stop;
131
- if (goal) {
132
- metrika.reachGoals(goal, counterName);
133
- }
134
- }
135
126
  const events = isMuted ? playEvents : stopEvents;
136
127
  handleAnalytics(events);
137
128
  if (isMuted) {
@@ -139,27 +130,12 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
139
130
  }
140
131
  // In order to the progress bar to update (equals 0) before displaying
141
132
  setTimeout(() => setMuted(!isMuted), 0);
142
- }, [
143
- playerRef,
144
- customControlsType,
145
- metrika,
146
- videoMetrika,
147
- playEvents,
148
- stopEvents,
149
- handleAnalytics,
150
- setProps,
151
- ]);
133
+ }, [playerRef, customControlsType, playEvents, stopEvents, handleAnalytics, setProps]);
152
134
  const handleClickPreview = useCallback(() => {
153
135
  setIsPlaying(true);
154
136
  onClickPreview === null || onClickPreview === void 0 ? void 0 : onClickPreview();
155
- if (metrika && videoMetrika) {
156
- const { play, counterName } = videoMetrika;
157
- if (play) {
158
- metrika.reachGoals(play, counterName);
159
- }
160
- }
161
137
  handleAnalytics(playEvents);
162
- }, [onClickPreview, metrika, videoMetrika, handleAnalytics, playEvents]);
138
+ }, [onClickPreview, handleAnalytics, playEvents]);
163
139
  const onPause = useCallback(() => {
164
140
  // For support correct state for youtube
165
141
  if (controls !== MediaVideoControlsType.Custom ||
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "play" | "pause" | "mute" | "unmute", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'ReactPlayer';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}ReactPlayer`);
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { block } from '../../utils';
3
- import i18n from './i18n';
3
+ import { i18n } from './i18n';
4
4
  import './UnpublishedLabel.css';
5
5
  const b = block('unpublished-label');
6
6
  const UnpublishedLabel = ({ className, children, type = 'line', }) => (React.createElement("div", { className: b({ type }, className) }, children || i18n('label_non_published')));
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "label_non_published", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'UnpublishedLabel';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}UnpublishedLabel`);
@@ -7,7 +7,7 @@ import { PlayVideo } from '../../icons';
7
7
  import { DefaultEventNames } from '../../models/common';
8
8
  import { block, getPageSearchParams } from '../../utils';
9
9
  import Image from '../Image/Image';
10
- import i18n from './i18n';
10
+ import { i18n } from './i18n';
11
11
  import './VideoBlock.css';
12
12
  const RECORD_URL = 'https://www.youtube.com/embed/';
13
13
  const STREAM_URL = 'https://www.youtube.com/embed/live_stream?channel=';
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "iframe-title", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'VideoBlock';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}VideoBlock`);
@@ -2,7 +2,6 @@ import React, { useCallback, useContext, useEffect, useRef } from 'react';
2
2
  import { LocaleContext } from '../../context/localeContext';
3
3
  import { MobileContext } from '../../context/mobileContext';
4
4
  import { useAnalytics } from '../../hooks';
5
- import { useMetrika } from '../../hooks/useMetrika';
6
5
  import { DefaultEventNames } from '../../models/common';
7
6
  import { block } from '../../utils';
8
7
  import { HEADER_HEIGHT } from '../constants';
@@ -11,12 +10,11 @@ export const YANDEX_FORM_SECTION = 'surveys';
11
10
  const CONTAINER_ID = 'pc-yandex-form-container';
12
11
  const b = block('yandex-form');
13
12
  const YandexForm = (props) => {
14
- const { onLoad, id, params, className, theme, containerId = CONTAINER_ID, headerHeight = HEADER_HEIGHT, onSubmit, metrikaGoals, pixelEvents, analyticsEvents, customFormOrigin, customFormSection, } = props;
13
+ const { onLoad, id, params, className, theme, containerId = CONTAINER_ID, headerHeight = HEADER_HEIGHT, onSubmit, analyticsEvents, customFormOrigin, customFormSection, } = props;
15
14
  const formContainerRef = useRef(null);
16
15
  const iframeRef = useRef();
17
16
  const yaFormOrigin = customFormOrigin || YANDEX_FORM_ORIGIN;
18
17
  const yaFormSection = customFormSection || YANDEX_FORM_SECTION;
19
- const handleMetrika = useMetrika();
20
18
  const handleAnalytics = useAnalytics(DefaultEventNames.YandexFormSubmit);
21
19
  const isMobile = useContext(MobileContext);
22
20
  const locale = useContext(LocaleContext);
@@ -58,20 +56,11 @@ const YandexForm = (props) => {
58
56
  const { top } = formContainerRef.current.getBoundingClientRect();
59
57
  window.scrollBy(0, top - headerHeight);
60
58
  }
61
- handleMetrika({ metrikaGoals, pixelEvents });
62
59
  handleAnalytics(analyticsEvents);
63
60
  if (onSubmit) {
64
61
  onSubmit();
65
62
  }
66
- }, [
67
- handleMetrika,
68
- metrikaGoals,
69
- pixelEvents,
70
- handleAnalytics,
71
- analyticsEvents,
72
- onSubmit,
73
- headerHeight,
74
- ]);
63
+ }, [handleAnalytics, analyticsEvents, onSubmit, headerHeight]);
75
64
  const handleMessage = useCallback(({ origin, data }) => {
76
65
  if (origin !== yaFormOrigin) {
77
66
  return;
@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useState } from 'react';
2
2
  import { Spin } from '@gravity-ui/uikit';
3
3
  import ErrorWrapper from '../../components/ErrorWrapper/ErrorWrapper';
4
4
  import { block as blockCn } from '../../utils/cn';
5
- import i18n from './i18n';
5
+ import { i18n } from './i18n';
6
6
  import './Loadable.css';
7
7
  const b = blockCn('loadable-block');
8
8
  const initData = {
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "loadable-load-error" | "loadable-try-again", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'Loadable';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}Loadable`);
@@ -3,7 +3,6 @@ import { ImageContextProps } from '../../context/imageContext';
3
3
  import { LocaleContextProps } from '../../context/localeContext';
4
4
  import { LocationContextProps } from '../../context/locationContext';
5
5
  import { MapsContextType } from '../../context/mapsContext/mapsContext';
6
- import { MetrikaContextProps } from '../../context/metrikaContext';
7
6
  import { ProjectSettingsContextProps } from '../../context/projectSettingsContext';
8
7
  import { SSRContextProps } from '../../context/ssrContext';
9
8
  import { Theme, WithChildren } from '../../models';
@@ -11,7 +10,6 @@ export interface PageConstructorProviderProps {
11
10
  isMobile?: boolean;
12
11
  locale?: LocaleContextProps;
13
12
  location?: LocationContextProps;
14
- metrika?: MetrikaContextProps;
15
13
  ssrConfig?: SSRContextProps;
16
14
  theme?: Theme;
17
15
  mapsContext?: MapsContextType;
@@ -5,13 +5,12 @@ import { ImageContext } from '../../context/imageContext';
5
5
  import { LocaleContext } from '../../context/localeContext';
6
6
  import { LocationContext } from '../../context/locationContext';
7
7
  import { MapsContext, initialMapValue } from '../../context/mapsContext/mapsContext';
8
- import { MetrikaContext } from '../../context/metrikaContext';
9
8
  import { MobileContext } from '../../context/mobileContext';
10
9
  import { ProjectSettingsContext, } from '../../context/projectSettingsContext';
11
10
  import { SSRContext } from '../../context/ssrContext';
12
11
  import { ThemeContext } from '../../context/theme';
13
12
  export const PageConstructorProvider = (props) => {
14
- const { isMobile, mapsContext = initialMapValue, locale = {}, location = {}, metrika = {}, analytics = {}, ssrConfig = {}, projectSettings = {}, theme = DEFAULT_THEME, children, image = {}, } = props;
13
+ const { isMobile, mapsContext = initialMapValue, locale = {}, location = {}, analytics = {}, ssrConfig = {}, projectSettings = {}, theme = DEFAULT_THEME, children, image = {}, } = props;
15
14
  /* eslint-disable react/jsx-key */
16
15
  const context = [
17
16
  React.createElement(ThemeContext.Provider, { value: { theme } }),
@@ -21,7 +20,6 @@ export const PageConstructorProvider = (props) => {
21
20
  React.createElement(LocationContext.Provider, { value: location }),
22
21
  React.createElement(MobileContext.Provider, { value: Boolean(isMobile) }),
23
22
  React.createElement(MapsContext.Provider, { value: mapsContext }),
24
- React.createElement(MetrikaContext.Provider, { value: metrika }),
25
23
  React.createElement(AnalyticsContext.Provider, { value: analytics }),
26
24
  React.createElement(SSRContext.Provider, { value: { isServer: ssrConfig === null || ssrConfig === void 0 ? void 0 : ssrConfig.isServer } }),
27
25
  ].reduceRight((prev, provider) => React.cloneElement(provider, {}, prev), children);
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { Lang } from '../../utils/configure';
2
+ import { Lang } from '@gravity-ui/uikit';
3
3
  export type LocaleContextProps = {
4
- lang?: Lang;
4
+ lang?: `${Lang}`;
5
5
  tld?: string;
6
6
  };
7
7
  export declare const LocaleContext: React.Context<LocaleContextProps>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { Lang } from '../../utils/configure';
2
+ import { Lang } from '@gravity-ui/uikit';
3
3
  export const LocaleContext = React.createContext({ lang: Lang.Ru, tld: '.ru' });
@@ -5,7 +5,7 @@ import { Theme, themeNames } from '../../../models';
5
5
  import { block } from '../../../utils';
6
6
  import { Tablet } from '../../icons/Tablet';
7
7
  import { ViewModeItem } from '../../types';
8
- import i18n from './i18n';
8
+ import { i18n } from './i18n';
9
9
  import './ControlPanel.css';
10
10
  const ICON_SIZE = 14;
11
11
  const b = block('control-panel');
@@ -27,7 +27,7 @@ const ControlPanel = ({ viewMode = ViewModeItem.Edititng, onViewModeChange, clas
27
27
  React.createElement(Icon, { width: ICON_SIZE, height: ICON_SIZE }))));
28
28
  }))),
29
29
  React.createElement("div", { className: b('theme-switch') },
30
- React.createElement("span", null, i18n('Theme')),
30
+ React.createElement("span", null, i18n('theme')),
31
31
  React.createElement(Select, { value: [theme], onUpdate: (value) => onThemeChange(value[0]) }, Object.values(Theme).map((item) => (React.createElement(Select.Option, { key: item, value: item }, themeNames[item])))))));
32
32
  };
33
33
  export default ControlPanel;
@@ -1,3 +1,4 @@
1
1
  {
2
- "mode": "Mode"
2
+ "mode": "Mode",
3
+ "theme": "Theme"
3
4
  }
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "theme" | "mode", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'ControlPanel';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}ControlPanel`);
@@ -1,3 +1,4 @@
1
1
  {
2
- "mode": "Режим"
2
+ "mode": "Режим",
3
+ "theme": "Тема"
3
4
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { block } from '../../../utils';
3
3
  import { getBlockId } from '../../utils';
4
- import i18n from './i18n';
4
+ import { i18n } from './i18n';
5
5
  import './ErrorBoundary.css';
6
6
  const b = block('error-boundary');
7
7
  export class ErrorBoundary extends React.Component {
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "error-block-header" | "error-page-header", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'ErrorBoundary';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}ErrorBoundary`);
@@ -1,7 +1,7 @@
1
1
  import React, { Fragment } from 'react';
2
2
  import { BlockBase } from '../../../components';
3
3
  import { block } from '../../../utils';
4
- import i18n from './i18n';
4
+ import { i18n } from './i18n';
5
5
  import './NotFoundBlock.css';
6
6
  const b = block('not-found-block');
7
7
  export const NotFoundBlock = ({ type, children }) => children ? (React.createElement(Fragment, null, children)) : (React.createElement(BlockBase, null,
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "message", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { registerKeyset } from '../../../../utils/registerKeyset';
1
+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n';
2
+ import { NAMESPACE } from '../../../../utils/cn';
2
3
  import en from './en.json';
3
4
  import ru from './ru.json';
4
- const COMPONENT = 'NotFoundBlock';
5
- export default registerKeyset({ en, ru }, COMPONENT);
5
+ export const i18n = addComponentKeysets({ en, ru }, `${NAMESPACE}NotFoundBlock`);
@@ -1,2 +1,2 @@
1
- import { AnalyticsEvent } from '../models';
2
- export declare const useAnalytics: (name?: string, target?: string) => (e?: AnalyticsEvent | AnalyticsEvent[] | null, additionalContext?: Record<string, string>) => void;
1
+ import { AnalyticsEventsProp } from '../models';
2
+ export declare const useAnalytics: (name?: string, target?: string) => (e?: AnalyticsEventsProp | null, additionalContext?: Record<string, string>) => void;
@@ -1,13 +1 @@
1
- import { ButtonPixel, MetrikaGoal, PixelEvent } from '../models';
2
- /**
3
- * @deprecated Metrika will be deleted
4
- */
5
- type UseMetrikaProps = {
6
- metrikaGoals?: MetrikaGoal;
7
- pixelEvents?: string | string[] | PixelEvent | PixelEvent[] | ButtonPixel;
8
- };
9
- /**
10
- * @deprecated useMetrika will be deleted
11
- */
12
- export declare const useMetrika: () => ({ metrikaGoals, pixelEvents }: UseMetrikaProps) => void;
13
- export {};
1
+
@@ -1,38 +1 @@
1
- import { useContext } from 'react';
2
- import { MetrikaContext } from '../context/metrikaContext';
3
- import { isNewMetrikaFormat } from '../models/guards';
4
- // eslint-disable-next-line valid-jsdoc
5
- /**
6
- * @deprecated Metrika will be deleted, which uses this logic
7
- */
8
- function isButtonPixel(pixelEvents) {
9
- if (Array.isArray(pixelEvents) && pixelEvents.length && 'name' in pixelEvents) {
10
- return true;
11
- }
12
- return false;
13
- }
14
- // eslint-disable-next-line valid-jsdoc
15
- /**
16
- * @deprecated useMetrika will be deleted
17
- */
18
- export const useMetrika = () => {
19
- const { metrika, pixel } = useContext(MetrikaContext);
20
- return ({ metrikaGoals, pixelEvents }) => {
21
- if (metrika && metrikaGoals) {
22
- if (isNewMetrikaFormat(metrikaGoals)) {
23
- metrikaGoals.forEach(({ name, isCrossSite }) => metrika.reachGoal(isCrossSite ? 'cross-site' : 'main', name));
24
- }
25
- else {
26
- metrika.reachGoals(metrikaGoals);
27
- }
28
- }
29
- if (pixel && pixelEvents) {
30
- if (isButtonPixel(pixelEvents)) {
31
- pixelEvents.forEach(({ name, data }) => pixel.trackStandard(name, data));
32
- }
33
- else {
34
- pixel.track(pixelEvents);
35
- }
36
- }
37
- };
38
- };
1
+ "use strict";
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { MetrikaGoal } from './';
3
2
  export interface Refable<T> {
4
3
  ref?: React.Ref<T>;
5
4
  }
@@ -8,59 +7,9 @@ export declare enum Theme {
8
7
  Dark = "dark"
9
8
  }
10
9
  export declare const themeNames: Record<Theme, string>;
11
- /**
12
- * @deprecated Pixel will be deleted
13
- */
14
- type PixelCommand = 'track' | 'trackCustom';
15
- /**
16
- * @deprecated Pixel will be deleted
17
- */
18
- export interface PixelEvent {
19
- command: PixelCommand;
20
- event: PixelEventType | string;
21
- data?: Object;
22
- }
23
- /**
24
- * @deprecated Pixel will be deleted from package
25
- */
26
- export declare enum PixelEventType {
27
- AddPaymentInfo = "AddPaymentInfo",
28
- AddToCart = "AddToCart",
29
- AddToWishlist = "AddToWishlist",
30
- CompleteRegistration = "CompleteRegistration",
31
- Contact = "Contact",
32
- CustomizeProduct = "CustomizeProduct",
33
- Donate = "Donate",
34
- FindLocation = "FindLocation",
35
- InitiateCheckout = "InitiateCheckout",
36
- Lead = "Lead",
37
- PageView = "PageView",
38
- Purchase = "Purchase",
39
- Schedule = "Schedule",
40
- Search = "Search",
41
- StartTrial = "StartTrial",
42
- SubmitApplication = "SubmitApplication",
43
- Subscribe = "Subscribe",
44
- ViewContent = "ViewContent"
45
- }
46
10
  export type Modifiers = {
47
11
  [name: string]: string | boolean | undefined;
48
12
  };
49
- /**
50
- * @deprecated Pixel will be deleted
51
- */
52
- export interface Pixel<TEvent = string> {
53
- trackStandard: (event: TEvent, data?: Object) => void;
54
- trackCustom: (event: string, data?: Object) => void;
55
- track: (trackEvents: string | string[] | PixelEvent[] | PixelEvent) => void;
56
- }
57
- /**
58
- * @deprecated Metrika will be deleted
59
- */
60
- export interface Metrika {
61
- reachGoal: (counterName: string, ...args: any) => void;
62
- reachGoals: (goals: MetrikaGoal, counterName?: string) => void;
63
- }
64
13
  export interface ClassNameProps {
65
14
  className?: string;
66
15
  }
@@ -97,7 +46,7 @@ export type AnalyticsEvent<T = {}> = T & {
97
46
  context?: string;
98
47
  target?: string;
99
48
  };
49
+ export type AnalyticsEventsProp = AnalyticsEvent | AnalyticsEvent[];
100
50
  export interface AnalyticsEventsBase {
101
- analyticsEvents?: AnalyticsEvent | AnalyticsEvent[];
51
+ analyticsEvents?: AnalyticsEventsProp;
102
52
  }
103
- export {};
@@ -7,30 +7,6 @@ export const themeNames = {
7
7
  [Theme.Light]: 'Light',
8
8
  [Theme.Dark]: 'Dark',
9
9
  };
10
- /**
11
- * @deprecated Pixel will be deleted from package
12
- */
13
- export var PixelEventType;
14
- (function (PixelEventType) {
15
- PixelEventType["AddPaymentInfo"] = "AddPaymentInfo";
16
- PixelEventType["AddToCart"] = "AddToCart";
17
- PixelEventType["AddToWishlist"] = "AddToWishlist";
18
- PixelEventType["CompleteRegistration"] = "CompleteRegistration";
19
- PixelEventType["Contact"] = "Contact";
20
- PixelEventType["CustomizeProduct"] = "CustomizeProduct";
21
- PixelEventType["Donate"] = "Donate";
22
- PixelEventType["FindLocation"] = "FindLocation";
23
- PixelEventType["InitiateCheckout"] = "InitiateCheckout";
24
- PixelEventType["Lead"] = "Lead";
25
- PixelEventType["PageView"] = "PageView";
26
- PixelEventType["Purchase"] = "Purchase";
27
- PixelEventType["Schedule"] = "Schedule";
28
- PixelEventType["Search"] = "Search";
29
- PixelEventType["StartTrial"] = "StartTrial";
30
- PixelEventType["SubmitApplication"] = "SubmitApplication";
31
- PixelEventType["Subscribe"] = "Subscribe";
32
- PixelEventType["ViewContent"] = "ViewContent";
33
- })(PixelEventType || (PixelEventType = {}));
34
10
  export var PredefinedEventTypes;
35
11
  (function (PredefinedEventTypes) {
36
12
  PredefinedEventTypes["Default"] = "default-event";