@wix/editor-react-components 1.2669.0 → 1.2671.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 (27) hide show
  1. package/dist/site/components/Menu/component.js +9 -3
  2. package/dist/site/components/SocialPlayerFacebook/component.preview.d.ts +0 -2
  3. package/dist/site/components/SocialPlayerFacebook/manifest.js +1 -13
  4. package/dist/site/components/SocialPlayerInstagram/component.preview.d.ts +0 -2
  5. package/dist/site/components/SocialPlayerInstagram/manifest.js +1 -13
  6. package/dist/site/components/SocialPlayerSnapchat/component.preview.d.ts +0 -2
  7. package/dist/site/components/SocialPlayerSnapchat/manifest.js +1 -13
  8. package/dist/site/components/SocialPlayerTikTok/manifest.js +1 -13
  9. package/dist/site/components/SocialPlayerVimeo/manifest.js +1 -13
  10. package/dist/site/components/SocialPlayerYoutube/manifest.js +1 -13
  11. package/dist/site/components/extensions.js +0 -78
  12. package/package.json +2 -2
  13. package/dist/site/components/SocialPlayerFacebook/panels/settings/extension.d.ts +0 -4
  14. package/dist/site/components/SocialPlayerFacebook/panels/settings/panel.d.ts +0 -3
  15. package/dist/site/components/SocialPlayerInstagram/panels/settings/extension.d.ts +0 -4
  16. package/dist/site/components/SocialPlayerInstagram/panels/settings/panel.d.ts +0 -3
  17. package/dist/site/components/SocialPlayerShared/panels/settings/SocialPlayerSettingsPanel.d.ts +0 -9
  18. package/dist/site/components/SocialPlayerShared/panels/settings/translations.d.ts +0 -5
  19. package/dist/site/components/SocialPlayerShared/previewManifestOverrides.d.ts +0 -4
  20. package/dist/site/components/SocialPlayerSnapchat/panels/settings/extension.d.ts +0 -4
  21. package/dist/site/components/SocialPlayerSnapchat/panels/settings/panel.d.ts +0 -3
  22. package/dist/site/components/SocialPlayerTikTok/panels/settings/extension.d.ts +0 -4
  23. package/dist/site/components/SocialPlayerTikTok/panels/settings/panel.d.ts +0 -3
  24. package/dist/site/components/SocialPlayerVimeo/panels/settings/extension.d.ts +0 -4
  25. package/dist/site/components/SocialPlayerVimeo/panels/settings/panel.d.ts +0 -3
  26. package/dist/site/components/SocialPlayerYoutube/panels/settings/extension.d.ts +0 -4
  27. package/dist/site/components/SocialPlayerYoutube/panels/settings/panel.d.ts +0 -3
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
- import { useService } from "@wix/services-manager-react";
3
+ import { useService, useGetService } from "@wix/services-manager-react";
4
4
  import { U as UrlDefinition } from "../chunks/index13.js";
5
5
  import { d as defineService } from "../chunks/index8.js";
6
6
  import { T as TranslationsDefinition } from "../chunks/index6.js";
@@ -2481,8 +2481,14 @@ const Menu = (props) => {
2481
2481
  } = props;
2482
2482
  const { getCurrentUrl } = useService(UrlDefinition);
2483
2483
  const currentUrl = getCurrentUrl();
2484
- const { getActiveAnchor } = useService(AnchorsDefinition);
2485
- const activeAnchor = getActiveAnchor();
2484
+ const getService = useGetService();
2485
+ let activeAnchor;
2486
+ try {
2487
+ const anchorsService = getService(AnchorsDefinition);
2488
+ activeAnchor = anchorsService.getActiveAnchor();
2489
+ } catch {
2490
+ activeAnchor = void 0;
2491
+ }
2486
2492
  const { translate } = useService(
2487
2493
  TranslationsDefinition
2488
2494
  );
@@ -1,5 +1,3 @@
1
1
  import { default as React, ComponentProps } from 'react';
2
- import { ResolveManifestOverrides } from '../../../utils/ResolveManifestOverrides';
3
2
  import { default as Component } from './component';
4
3
  export default function SocialPlayerFacebookPreview(props: ComponentProps<typeof Component>): React.JSX.Element;
5
- export declare const resolveManifestOverrides: ResolveManifestOverrides;
@@ -1,4 +1,4 @@
1
- import { D as DATA, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, a as ACTIONS } from "../chunks/chunk-ZHYIPFVN.js";
1
+ import { D as DATA, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  const manifest = {
3
3
  id: "ac17f3cb-c4f8-4f35-be4f-81ef456cce7e",
4
4
  type: "wixEditorElements.FacebookPlayer",
@@ -30,18 +30,6 @@ const manifest = {
30
30
  editorElement: {
31
31
  selector: ".socialPlayerFacebook",
32
32
  displayName: "Facebook Player",
33
- customActions: {
34
- replaceVideo: {
35
- displayName: "Replace Video",
36
- execution: {
37
- actionType: ACTIONS.ACTION_TYPE.panel,
38
- panel: {
39
- panelType: ACTIONS.PANEL_TYPE.panelId,
40
- panelId: "f2a8b3c5-9d7e-8f0a-3b4c-6d7e8f9a0b1c"
41
- }
42
- }
43
- }
44
- },
45
33
  cssProperties: {
46
34
  boxShadow: {}
47
35
  },
@@ -1,5 +1,3 @@
1
1
  import { default as React, ComponentProps } from 'react';
2
- import { ResolveManifestOverrides } from '../../../utils/ResolveManifestOverrides';
3
2
  import { default as Component } from './component';
4
3
  export default function SocialPlayerInstagramPreview(props: ComponentProps<typeof Component>): React.JSX.Element;
5
- export declare const resolveManifestOverrides: ResolveManifestOverrides;
@@ -1,4 +1,4 @@
1
- import { D as DATA, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, a as ACTIONS, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
1
+ import { D as DATA, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  const manifest = {
3
3
  id: "57cac74a-f0dc-416b-9f09-0c38799c3402",
4
4
  type: "wixEditorElements.InstagramPlayer",
@@ -31,18 +31,6 @@ const manifest = {
31
31
  selector: ".socialPlayerInstagram",
32
32
  displayName: "Instagram Player",
33
33
  archetype: Archetype.Social,
34
- customActions: {
35
- replaceVideo: {
36
- displayName: "Replace Video",
37
- execution: {
38
- actionType: ACTIONS.ACTION_TYPE.panel,
39
- panel: {
40
- panelType: ACTIONS.PANEL_TYPE.panelId,
41
- panelId: "e1f7a2b4-8c6d-7e9f-2a3b-5c6d7e8f9a0b"
42
- }
43
- }
44
- }
45
- },
46
34
  cssProperties: {
47
35
  boxShadow: {}
48
36
  },
@@ -1,5 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { SocialPlayerSnapchatProps } from './SocialPlayerSnapchat.types';
3
- import { ResolveManifestOverrides } from '../../../utils/ResolveManifestOverrides';
4
3
  export default function SocialPlayerSnapchatPreview(props: SocialPlayerSnapchatProps): React.JSX.Element;
5
- export declare const resolveManifestOverrides: ResolveManifestOverrides;
@@ -1,4 +1,4 @@
1
- import { D as DATA, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, a as ACTIONS, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
1
+ import { D as DATA, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  const manifest = {
3
3
  id: "fe00a488-978a-440c-aead-b43ab9795ad2",
4
4
  type: "wixEditorElements.SnapchatPlayer",
@@ -31,18 +31,6 @@ const manifest = {
31
31
  selector: ".socialPlayerSnapchat",
32
32
  displayName: "Snapchat Player",
33
33
  archetype: Archetype.Social,
34
- customActions: {
35
- replaceVideo: {
36
- displayName: "Replace Video",
37
- execution: {
38
- actionType: ACTIONS.ACTION_TYPE.panel,
39
- panel: {
40
- panelType: ACTIONS.PANEL_TYPE.panelId,
41
- panelId: "d0e6f1a3-7b5c-6d8e-1f2a-4b5c6d7e8f9a"
42
- }
43
- }
44
- }
45
- },
46
34
  cssProperties: {
47
35
  boxShadow: {}
48
36
  },
@@ -1,4 +1,4 @@
1
- import { I as INTERACTIONS, C as CSS_PROPERTIES, D as DATA, b as DISPLAY_GROUPS, L as LAYOUT, a as ACTIONS, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
1
+ import { I as INTERACTIONS, C as CSS_PROPERTIES, D as DATA, b as DISPLAY_GROUPS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  const manifest = {
3
3
  id: "1bc7cd37-5d90-48a6-a2c1-de94f77d4fd6",
4
4
  type: "wixEditorElements.TikTokPlayer",
@@ -31,18 +31,6 @@ const manifest = {
31
31
  selector: ".socialPlayerTikTok",
32
32
  displayName: "TikTok Player",
33
33
  archetype: Archetype.Social,
34
- customActions: {
35
- replaceVideo: {
36
- displayName: "Replace Video",
37
- execution: {
38
- actionType: ACTIONS.ACTION_TYPE.panel,
39
- panel: {
40
- panelType: ACTIONS.PANEL_TYPE.panelId,
41
- panelId: "c9d5e0f2-6a4b-5c7d-0e1f-3a4b5c6d7e8f"
42
- }
43
- }
44
- }
45
- },
46
34
  cssProperties: {
47
35
  boxShadow: {}
48
36
  },
@@ -1,4 +1,4 @@
1
- import { I as INTERACTIONS, C as CSS_PROPERTIES, D as DATA, b as DISPLAY_GROUPS, L as LAYOUT, a as ACTIONS, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
1
+ import { I as INTERACTIONS, C as CSS_PROPERTIES, D as DATA, b as DISPLAY_GROUPS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  const manifest = {
3
3
  id: "8ec522c3-d8dd-43d8-9f07-1c4c1bb09d80",
4
4
  type: "wixEditorElements.VimeoPlayer",
@@ -31,18 +31,6 @@ const manifest = {
31
31
  selector: ".socialPlayerVimeo",
32
32
  displayName: "Vimeo Player",
33
33
  archetype: Archetype.Social,
34
- customActions: {
35
- replaceVideo: {
36
- displayName: "Replace Video",
37
- execution: {
38
- actionType: ACTIONS.ACTION_TYPE.panel,
39
- panel: {
40
- panelType: ACTIONS.PANEL_TYPE.panelId,
41
- panelId: "b8c4d9e1-5f3a-4b6c-9d0e-2f3a4b5c6d7e"
42
- }
43
- }
44
- }
45
- },
46
34
  cssProperties: {
47
35
  boxShadow: {}
48
36
  },
@@ -1,4 +1,4 @@
1
- import { I as INTERACTIONS, D as DATA, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
1
+ import { I as INTERACTIONS, D as DATA, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  const manifest = {
3
3
  id: "4190f51c-3836-49f6-8114-96219c165b20",
4
4
  type: "wixEditorElements.YoutubePlayer",
@@ -34,18 +34,6 @@ const manifest = {
34
34
  layout: {
35
35
  resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontalAndVertical
36
36
  },
37
- customActions: {
38
- replaceVideo: {
39
- displayName: "Replace Video",
40
- execution: {
41
- actionType: ACTIONS.ACTION_TYPE.panel,
42
- panel: {
43
- panelType: ACTIONS.PANEL_TYPE.panelId,
44
- panelId: "a7b3c8d9-4e2f-4a5b-8c9d-1e2f3a4b5c6d"
45
- }
46
- }
47
- }
48
- },
49
37
  cssProperties: {
50
38
  boxShadow: {}
51
39
  },
@@ -233,78 +233,6 @@ const siteLogoCustomizePanelExtension = extensions.editorReactComponentPanel({
233
233
  width: "UNKNOWN_WIDTH"
234
234
  }
235
235
  });
236
- const socialPlayerFacebookSettingsPanelExtension = extensions.editorReactComponentPanel({
237
- id: "f2a8b3c5-9d7e-8f0a-3b4c-6d7e8f9a0b1c",
238
- displayName: "Replace Video",
239
- code: {
240
- bundleUrl: "./site/components/SocialPlayerFacebook/panels/settings/panel.tsx"
241
- },
242
- contentType: "code",
243
- size: {
244
- height: 150,
245
- width: "UNKNOWN_WIDTH"
246
- }
247
- });
248
- const socialPlayerInstagramSettingsPanelExtension = extensions.editorReactComponentPanel({
249
- id: "e1f7a2b4-8c6d-7e9f-2a3b-5c6d7e8f9a0b",
250
- displayName: "Replace Video",
251
- code: {
252
- bundleUrl: "./site/components/SocialPlayerInstagram/panels/settings/panel.tsx"
253
- },
254
- contentType: "code",
255
- size: {
256
- height: 150,
257
- width: "UNKNOWN_WIDTH"
258
- }
259
- });
260
- const socialPlayerSnapchatSettingsPanelExtension = extensions.editorReactComponentPanel({
261
- id: "d0e6f1a3-7b5c-6d8e-1f2a-4b5c6d7e8f9a",
262
- displayName: "Replace Video",
263
- code: {
264
- bundleUrl: "./site/components/SocialPlayerSnapchat/panels/settings/panel.tsx"
265
- },
266
- contentType: "code",
267
- size: {
268
- height: 150,
269
- width: "UNKNOWN_WIDTH"
270
- }
271
- });
272
- const socialPlayerTikTokSettingsPanelExtension = extensions.editorReactComponentPanel({
273
- id: "c9d5e0f2-6a4b-5c7d-0e1f-3a4b5c6d7e8f",
274
- displayName: "Replace Video",
275
- code: {
276
- bundleUrl: "./site/components/SocialPlayerTikTok/panels/settings/panel.tsx"
277
- },
278
- contentType: "code",
279
- size: {
280
- height: 150,
281
- width: "UNKNOWN_WIDTH"
282
- }
283
- });
284
- const socialPlayerVimeoSettingsPanelExtension = extensions.editorReactComponentPanel({
285
- id: "b8c4d9e1-5f3a-4b6c-9d0e-2f3a4b5c6d7e",
286
- displayName: "Replace Video",
287
- code: {
288
- bundleUrl: "./site/components/SocialPlayerVimeo/panels/settings/panel.tsx"
289
- },
290
- contentType: "code",
291
- size: {
292
- height: 150,
293
- width: "UNKNOWN_WIDTH"
294
- }
295
- });
296
- const socialPlayerYoutubeSettingsPanelExtension = extensions.editorReactComponentPanel({
297
- id: "a7b3c8d9-4e2f-4a5b-8c9d-1e2f3a4b5c6d",
298
- displayName: "Replace Video",
299
- code: {
300
- bundleUrl: "./site/components/SocialPlayerYoutube/panels/settings/panel.tsx"
301
- },
302
- contentType: "code",
303
- size: {
304
- height: 150,
305
- width: "UNKNOWN_WIDTH"
306
- }
307
- });
308
236
  const svgImageSvgColorsPanelExtension = extensions.editorReactComponentPanel({
309
237
  id: "c0b164d9-cd88-41d3-a45e-51b14c54c3ea",
310
238
  displayName: "Change Colors",
@@ -578,12 +506,6 @@ const panelExtensions = {
578
506
  shareButtonsFormatPanelExtension,
579
507
  shareButtonsManagePanelExtension,
580
508
  siteLogoCustomizePanelExtension,
581
- socialPlayerFacebookSettingsPanelExtension,
582
- socialPlayerInstagramSettingsPanelExtension,
583
- socialPlayerSnapchatSettingsPanelExtension,
584
- socialPlayerTikTokSettingsPanelExtension,
585
- socialPlayerVimeoSettingsPanelExtension,
586
- socialPlayerYoutubeSettingsPanelExtension,
587
509
  svgImageSvgColorsPanelExtension,
588
510
  textEffectsTextTwistPanelExtension,
589
511
  textEffectsBauhausPatternsPanelExtension,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2669.0",
3
+ "version": "1.2671.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -200,5 +200,5 @@
200
200
  "registry": "https://registry.npmjs.org/",
201
201
  "access": "public"
202
202
  },
203
- "falconPackageHash": "349861770edd789c78ca868f5dcfea111e7fb3684e86c8ecadb8bfde"
203
+ "falconPackageHash": "252d2517e2dcf8f05f95e33f1abc73b3dc903f4f07e3bed48da1431e"
204
204
  }
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- };
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const FacebookSettingsPanel: () => React.JSX.Element;
3
- export default FacebookSettingsPanel;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- };
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const InstagramSettingsPanel: () => React.JSX.Element;
3
- export default InstagramSettingsPanel;
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Translations } from './translations';
3
- type SocialPlayerSettingsPanelProps = {
4
- urlPattern: RegExp;
5
- errorMessage?: string;
6
- translations: Translations;
7
- };
8
- export declare const SocialPlayerSettingsPanel: ({ urlPattern, errorMessage, translations, }: SocialPlayerSettingsPanelProps) => React.JSX.Element;
9
- export {};
@@ -1,5 +0,0 @@
1
- export declare const TranslationKeys: {
2
- readonly urlLabel: "single_video_player.replace_video_panel.url_label";
3
- };
4
- export type Translations = Record<keyof typeof TranslationKeys, string>;
5
- export declare const DefaultTranslations: Translations;
@@ -1,4 +0,0 @@
1
- import { DisplayFilters } from '@wix/component-protocol/schema';
2
- export declare const CHANGE_SOURCE_EXPERIMENT = "specs.odeditor.socialPlayerChangeSource";
3
- export declare const syncHideReplaceVideoExperimentState: (isExperimentOpen: boolean) => void;
4
- export declare const getHideReplaceVideoDisplayFilters: () => DisplayFilters | undefined;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- };
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const SnapchatSettingsPanel: () => React.JSX.Element;
3
- export default SnapchatSettingsPanel;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- };
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const TikTokSettingsPanel: () => React.JSX.Element;
3
- export default TikTokSettingsPanel;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- };
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const VimeoSettingsPanel: () => React.JSX.Element;
3
- export default VimeoSettingsPanel;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- };
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const YouTubeSettingsPanel: () => React.JSX.Element;
3
- export default YouTubeSettingsPanel;