@wix/editor-react-components 1.2800.0 → 1.2802.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/site/components/Menu/manifest.js +13 -26
- package/dist/site/components/Menu/manifestConfigs/animatedIconConfig.d.ts +1 -3
- package/dist/site/components/Menu/manifestConfigs/overrides/verticalNavbarConfig.d.ts +2 -2
- package/dist/site/components/chunks/constants27.js +2 -6
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as ELEMENTS, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, N as NativeStateType, a as ACTIONS, D as DATA, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
|
-
import { c as DesignStates, f as DisplayNames, s as selectors, g as DropdownAnchorPositions, h as DropdownAppliedStyleProperties, i as elementKeys, j as
|
|
2
|
+
import { c as DesignStates, f as DisplayNames, s as selectors, g as DropdownAnchorPositions, h as DropdownAppliedStyleProperties, i as elementKeys, j as MENU_ANIMATED_ICON_SPEC, k as states, p as presets, m as menuBuiltInActions } from "../chunks/constants27.js";
|
|
3
3
|
import { w as withSpec } from "../chunks/manifest.js";
|
|
4
4
|
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
5
5
|
import { b as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
@@ -527,17 +527,6 @@ const scrollButtonConfig = {
|
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
|
-
const getAnimatedIconCustomAction = (animatedIconPath) => ({
|
|
531
|
-
displayName: DisplayNames.root.customActions.animatedIcon.displayName,
|
|
532
|
-
execution: {
|
|
533
|
-
actionType: ACTIONS.ACTION_TYPE.forward,
|
|
534
|
-
forward: {
|
|
535
|
-
elementPath: animatedIconPath,
|
|
536
|
-
actionName: ACTIONS.ACTION_NAME.custom,
|
|
537
|
-
custom: customActionKeys.animatedIcon
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
530
|
const animatedIconConfig = {
|
|
542
531
|
spec: MENU_ANIMATED_ICON_SPEC,
|
|
543
532
|
elementType: ELEMENTS.ELEMENT_TYPE.refElement,
|
|
@@ -590,14 +579,9 @@ const itemConfig = {
|
|
|
590
579
|
selector: `.${selectors.item}`,
|
|
591
580
|
displayName: DisplayNames.item.elementDisplayName,
|
|
592
581
|
behaviors: {
|
|
593
|
-
selectable:
|
|
582
|
+
selectable: false,
|
|
594
583
|
removable: false
|
|
595
584
|
},
|
|
596
|
-
customActions: {
|
|
597
|
-
[customActionKeys.animatedIcon]: getAnimatedIconCustomAction(
|
|
598
|
-
`.self.${elementKeys.animatedIcon}`
|
|
599
|
-
)
|
|
600
|
-
},
|
|
601
585
|
states: {
|
|
602
586
|
// Not native: the item must stay hovered while the pointer is over its
|
|
603
587
|
// mega menu dropdown, which isn't a DOM descendant of the item, so real
|
|
@@ -849,11 +833,6 @@ const navbarConfig = {
|
|
|
849
833
|
},
|
|
850
834
|
design: {}
|
|
851
835
|
},
|
|
852
|
-
customActions: {
|
|
853
|
-
[customActionKeys.animatedIcon]: getAnimatedIconCustomAction(
|
|
854
|
-
`.self.${elementKeys.item}.${elementKeys.animatedIcon}`
|
|
855
|
-
)
|
|
856
|
-
},
|
|
857
836
|
elements: {
|
|
858
837
|
[elementKeys.item]: itemConfig,
|
|
859
838
|
[elementKeys.scrollButton]: scrollButtonConfig,
|
|
@@ -1355,9 +1334,17 @@ const manifest = {
|
|
|
1355
1334
|
}
|
|
1356
1335
|
}
|
|
1357
1336
|
},
|
|
1358
|
-
animatedIcon:
|
|
1359
|
-
|
|
1360
|
-
|
|
1337
|
+
animatedIcon: {
|
|
1338
|
+
displayName: DisplayNames.root.customActions.animatedIcon.displayName,
|
|
1339
|
+
execution: {
|
|
1340
|
+
actionType: ACTIONS.ACTION_TYPE.forward,
|
|
1341
|
+
forward: {
|
|
1342
|
+
elementPath: `.self.${elementKeys.navbar}.${elementKeys.item}.${elementKeys.animatedIcon}`,
|
|
1343
|
+
actionName: ACTIONS.ACTION_NAME.custom,
|
|
1344
|
+
custom: "animatedIcon"
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1361
1348
|
hamburgerAnimatedIcon: {
|
|
1362
1349
|
displayName: DisplayNames.root.customActions.hamburgerAnimatedIcon.displayName,
|
|
1363
1350
|
execution: {
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getAnimatedIconCustomAction: (animatedIconPath: string) => CustomActions[string];
|
|
3
|
-
export declare const getAnimatedIconCustomActionsDisplayFilter: (isIconHidden: boolean) => DisplayFilters["customActions"];
|
|
1
|
+
import { ElementItem } from '@wix/component-protocol/schema';
|
|
4
2
|
export declare const animatedIconConfig: ElementItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EditorElement, ElementItem } from '@wix/component-protocol/schema';
|
|
2
2
|
export type VerticalNavbarProps = {
|
|
3
3
|
hasDropdownItems: boolean;
|
|
4
4
|
hasDropdownContent: boolean;
|
|
@@ -10,5 +10,5 @@ export type VerticalNavbarProps = {
|
|
|
10
10
|
hideItemIconGap: boolean;
|
|
11
11
|
isIconHidden: boolean;
|
|
12
12
|
};
|
|
13
|
-
export declare const getVerticalNavbarElementManifestOverrides: ({ hasDropdownItems, hasDropdownContent, hasDropdownSubItems, isItemFitToText, isDropdownItemFitToText, dropdownColumnsNumber, hideItemIconGap,
|
|
13
|
+
export declare const getVerticalNavbarElementManifestOverrides: ({ hasDropdownItems, hasDropdownContent, hasDropdownSubItems, isItemFitToText, isDropdownItemFitToText, dropdownColumnsNumber, hideItemIconGap, }: VerticalNavbarProps) => ElementItem;
|
|
14
14
|
export declare const getVerticalNavbarManifestOverrides: (props: VerticalNavbarProps) => Partial<EditorElement>;
|
|
@@ -313,9 +313,6 @@ const menuBuiltInActions = {
|
|
|
313
313
|
elements: "elements"
|
|
314
314
|
};
|
|
315
315
|
const MENU_ANIMATED_ICON_SPEC = "sp.erc.menuAnimatedIcon";
|
|
316
|
-
const customActionKeys = {
|
|
317
|
-
animatedIcon: "animatedIcon"
|
|
318
|
-
};
|
|
319
316
|
const selectors = {
|
|
320
317
|
menu: "menu",
|
|
321
318
|
navbar: "navbar",
|
|
@@ -446,9 +443,8 @@ export {
|
|
|
446
443
|
DropdownAnchorPositions as g,
|
|
447
444
|
DropdownAppliedStyleProperties as h,
|
|
448
445
|
elementKeys as i,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
states as l,
|
|
446
|
+
MENU_ANIMATED_ICON_SPEC as j,
|
|
447
|
+
states as k,
|
|
452
448
|
menuBuiltInActions as m,
|
|
453
449
|
presets as p,
|
|
454
450
|
selectors as s,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2802.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -222,5 +222,5 @@
|
|
|
222
222
|
"registry": "https://registry.npmjs.org/",
|
|
223
223
|
"access": "public"
|
|
224
224
|
},
|
|
225
|
-
"falconPackageHash": "
|
|
225
|
+
"falconPackageHash": "006f71660e009d9d1b74333d7e782b4b04e16997f7fcdf68bc095839"
|
|
226
226
|
}
|