@swc-react/menu 1.5.0 → 1.7.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/index.dev.js.map +2 -2
- package/index.js.map +2 -2
- package/next.d.ts +7 -7
- package/next.dev.js +8 -4
- package/next.dev.js.map +2 -2
- package/next.js +1 -1
- package/next.js.map +2 -2
- package/package.json +3 -3
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n focus: 'focus' as EventName<FocusEvent>,\n blur: 'blur' as EventName<FocusEvent>,\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
+
"mappings": ";AAWA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAC/B,SAAS,eAAe,qBAAqB;AAC7C,SAAS,aAAa,mBAAmB;AACzC,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,IACN,iBAAiB;AAAA;AAAA,EACrB;AACJ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n focus: 'focus' as EventName<FocusEvent>,\n blur: 'blur' as EventName<FocusEvent>,\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
+
"mappings": "aAWA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,MAAO,QACP,KAAM,OACN,gBAAiB,oBACrB,CACJ,CAAC",
|
|
6
6
|
"names": ["React", "createComponent", "SpMenu", "SpMenuDivider", "SpMenuGroup", "SpMenuItem"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const Menu: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src").Menu>, "size" | "label" | "renderOptions" | "change" | "close" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "render" | "selected" | "value" | "handleKeydown" | "isLTR" | "hasVisibleFocusInTree" | "closeDescendentOverlays" | "ignore" | "selects" | "valueSeparator" | "selectedItems" | "menuSlot" | "focusedItemIndex" | "focusInItemIndex" | "shouldSupportDragAndSelect" | "focusInItem" | "childItems" | "childRole" | "focusOnFirstSelectedItem" | "handleSubmenuClosed" | "getNeighboringFocusableElement" | "handleSubmenuOpened" | "selectOrToggleItem" | "updateSelectedItemIndex"> & {
|
|
1
|
+
export declare const Menu: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/Menu.js").Menu>, "size" | "label" | "renderOptions" | "change" | "close" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "render" | "selected" | "value" | "handleKeydown" | "isLTR" | "hasVisibleFocusInTree" | "closeDescendentOverlays" | "ignore" | "selects" | "valueSeparator" | "selectedItems" | "menuSlot" | "focusedItemIndex" | "focusInItemIndex" | "shouldSupportDragAndSelect" | "focusInItem" | "childItems" | "childRole" | "focusOnFirstSelectedItem" | "handleSubmenuClosed" | "getNeighboringFocusableElement" | "handleSubmenuOpened" | "selectOrToggleItem" | "updateSelectedItemIndex"> & {
|
|
2
2
|
change?: ((e: Event) => void) | undefined;
|
|
3
3
|
close?: ((e: Event) => void) | undefined;
|
|
4
|
-
} & Partial<Omit<import("menu/src").Menu, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src").Menu>>;
|
|
5
|
-
export declare const MenuDivider: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src").MenuDivider>, "size" | "renderOptions" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("menu/src").MenuDivider, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src").MenuDivider>>;
|
|
6
|
-
export declare const MenuGroup: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src").MenuGroup>, "size" | "label" | "renderOptions" | "change" | "close" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "render" | "selected" | "value" | "handleKeydown" | "isLTR" | "hasVisibleFocusInTree" | "closeDescendentOverlays" | "ignore" | "selects" | "valueSeparator" | "selectedItems" | "menuSlot" | "focusedItemIndex" | "focusInItemIndex" | "shouldSupportDragAndSelect" | "focusInItem" | "childItems" | "childRole" | "focusOnFirstSelectedItem" | "handleSubmenuClosed" | "getNeighboringFocusableElement" | "handleSubmenuOpened" | "selectOrToggleItem" | "updateSelectedItemIndex"> & {
|
|
4
|
+
} & Partial<Omit<import("menu/src/Menu.js").Menu, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src/Menu.js").Menu>>;
|
|
5
|
+
export declare const MenuDivider: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/MenuDivider.js").MenuDivider>, "size" | "renderOptions" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("menu/src/MenuDivider.js").MenuDivider, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src/MenuDivider.js").MenuDivider>>;
|
|
6
|
+
export declare const MenuGroup: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/MenuGroup.js").MenuGroup>, "size" | "label" | "renderOptions" | "change" | "close" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "render" | "selected" | "value" | "handleKeydown" | "isLTR" | "hasVisibleFocusInTree" | "closeDescendentOverlays" | "ignore" | "selects" | "valueSeparator" | "selectedItems" | "menuSlot" | "focusedItemIndex" | "focusInItemIndex" | "shouldSupportDragAndSelect" | "focusInItem" | "childItems" | "childRole" | "focusOnFirstSelectedItem" | "handleSubmenuClosed" | "getNeighboringFocusableElement" | "handleSubmenuOpened" | "selectOrToggleItem" | "updateSelectedItemIndex"> & {
|
|
7
7
|
change?: ((e: Event) => void) | undefined;
|
|
8
8
|
close?: ((e: Event) => void) | undefined;
|
|
9
|
-
} & Partial<Omit<import("menu/src").MenuGroup, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src").MenuGroup>>;
|
|
10
|
-
export declare const MenuItem: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src").MenuItem>, "label" | "renderOptions" | "blur" | "focus" | "disabled" | "download" | "href" | "target" | "rel" | "slotContentIsPresent" | "slotHasContent" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "open" | "active" | "focused" | "selected" | "value" | "hasSubmenu" | "contentSlot" | "iconSlot" | "noWrap" | "overlayElement" | "abortControllerSubmenu" | "itemText" | "focusElement" | "itemChildren" | "handleMouseover" | "handleKeydown" | "openOverlay" | "updateAriaSelected" | "setRole" | "_parentElement" | "triggerUpdate" | "dispatchUpdate" | "menuData" | "selfManageFocusElement" | "isLTR" | "hasVisibleFocusInTree" | "getSlotContentPresence" | "managePresenceObservedSlot" | "manageTextObservedSlot" | "renderAnchor" | "spMenuItemAdded"> & {
|
|
9
|
+
} & Partial<Omit<import("menu/src/MenuGroup.js").MenuGroup, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src/MenuGroup.js").MenuGroup>>;
|
|
10
|
+
export declare const MenuItem: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/MenuItem.js").MenuItem>, "label" | "renderOptions" | "blur" | "focus" | "disabled" | "download" | "href" | "target" | "rel" | "slotContentIsPresent" | "slotHasContent" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "open" | "active" | "focused" | "selected" | "value" | "hasSubmenu" | "contentSlot" | "iconSlot" | "noWrap" | "overlayElement" | "abortControllerSubmenu" | "itemText" | "focusElement" | "itemChildren" | "handleMouseover" | "handleKeydown" | "openOverlay" | "updateAriaSelected" | "setRole" | "_parentElement" | "triggerUpdate" | "dispatchUpdate" | "menuData" | "selfManageFocusElement" | "isLTR" | "hasVisibleFocusInTree" | "getSlotContentPresence" | "managePresenceObservedSlot" | "manageTextObservedSlot" | "renderAnchor" | "spMenuItemAdded"> & {
|
|
11
11
|
focus?: ((e: FocusEvent) => void) | undefined;
|
|
12
12
|
blur?: ((e: FocusEvent) => void) | undefined;
|
|
13
13
|
spMenuItemAdded?: ((e: Event) => void) | undefined;
|
|
14
|
-
} & Partial<Omit<import("menu/src").MenuItem, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src").MenuItem>>;
|
|
14
|
+
} & Partial<Omit<import("menu/src/MenuItem.js").MenuItem, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src/MenuItem.js").MenuItem>>;
|
package/next.dev.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import dynamic from "next/dynamic";
|
|
3
|
-
export const Menu = dynamic(() => import(".").then(({ Menu: Menu2 }) => Menu2), { ssr: false });
|
|
4
|
-
export const MenuDivider = dynamic(() => import(".").then(({ MenuDivider: MenuDivider2 }) => MenuDivider2), {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export const Menu = dynamic(() => import("./index.dev.js").then(({ Menu: Menu2 }) => Menu2), { ssr: false });
|
|
4
|
+
export const MenuDivider = dynamic(() => import("./index.dev.js").then(({ MenuDivider: MenuDivider2 }) => MenuDivider2), {
|
|
5
|
+
ssr: false
|
|
6
|
+
});
|
|
7
|
+
export const MenuGroup = dynamic(() => import("./index.dev.js").then(({ MenuGroup: MenuGroup2 }) => MenuGroup2), {
|
|
8
|
+
ssr: false
|
|
9
|
+
});
|
|
10
|
+
export const MenuItem = dynamic(() => import("./index.dev.js").then(({ MenuItem: MenuItem2 }) => MenuItem2), { ssr: false });
|
|
7
11
|
//# sourceMappingURL=next.dev.js.map
|
package/next.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["next.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Menu as SpMenu } from './index.dev.js'\nimport { MenuDivider as SpMenuDivider } from './index.dev.js'\nimport { MenuGroup as SpMenuGroup } from './index.dev.js'\nimport { MenuItem as SpMenuItem } from './index.dev.js'\n\nexport const Menu = dynamic<\n JSX.LibraryManagedAttributes<typeof SpMenu, ComponentProps<typeof SpMenu>>\n>(() => import('./index.dev.js').then(({ Menu }) => Menu), { ssr: false });\nexport const MenuDivider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuDivider,\n ComponentProps<typeof SpMenuDivider>\n >\n>(() => import('./index.dev.js').then(({ MenuDivider }) => MenuDivider), {\n ssr: false,\n});\nexport const MenuGroup = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuGroup,\n ComponentProps<typeof SpMenuGroup>\n >\n>(() => import('./index.dev.js').then(({ MenuGroup }) => MenuGroup), {\n ssr: false,\n});\nexport const MenuItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuItem,\n ComponentProps<typeof SpMenuItem>\n >\n>(() => import('./index.dev.js').then(({ MenuItem }) => MenuItem), { ssr: false });\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,aAAa;AAOb,aAAM,OAAO,QAElB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAAA,MAAK,MAAMA,KAAI,GAAG,EAAE,KAAK,MAAM,CAAC;AAClE,aAAM,cAAc,QAKzB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG;AAAA,EACrE,KAAK;AACT,CAAC;AACM,aAAM,YAAY,QAKvB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG;AAAA,EACjE,KAAK;AACT,CAAC;AACM,aAAM,WAAW,QAKtB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,UAAAC,UAAS,MAAMA,SAAQ,GAAG,EAAE,KAAK,MAAM,CAAC;",
|
|
6
6
|
"names": ["Menu", "MenuDivider", "MenuGroup", "MenuItem"]
|
|
7
7
|
}
|
package/next.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import o from"next/dynamic";export const Menu=o(()=>import(".").then(({Menu:e})=>e),{ssr:!1}),MenuDivider=o(()=>import(".").then(({MenuDivider:e})=>e),{ssr:!1}),MenuGroup=o(()=>import(".").then(({MenuGroup:e})=>e),{ssr:!1}),MenuItem=o(()=>import(".").then(({MenuItem:e})=>e),{ssr:!1});
|
|
1
|
+
"use strict";import o from"next/dynamic";export const Menu=o(()=>import("./index.js").then(({Menu:e})=>e),{ssr:!1}),MenuDivider=o(()=>import("./index.js").then(({MenuDivider:e})=>e),{ssr:!1}),MenuGroup=o(()=>import("./index.js").then(({MenuGroup:e})=>e),{ssr:!1}),MenuItem=o(()=>import("./index.js").then(({MenuItem:e})=>e),{ssr:!1});
|
|
2
2
|
//# sourceMappingURL=next.js.map
|
package/next.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["next.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Menu as SpMenu } from './index.js';\nimport { MenuDivider as SpMenuDivider } from './index.js';\nimport { MenuGroup as SpMenuGroup } from './index.js';\nimport { MenuItem as SpMenuItem } from './index.js';\n\nexport const Menu = dynamic<\n JSX.LibraryManagedAttributes<typeof SpMenu, ComponentProps<typeof SpMenu>>\n>(() => import('./index.js').then(({ Menu }) => Menu), { ssr: false });\nexport const MenuDivider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuDivider,\n ComponentProps<typeof SpMenuDivider>\n >\n>(() => import('./index.js').then(({ MenuDivider }) => MenuDivider), {\n ssr: false,\n});\nexport const MenuGroup = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuGroup,\n ComponentProps<typeof SpMenuGroup>\n >\n>(() => import('./index.js').then(({ MenuGroup }) => MenuGroup), {\n ssr: false,\n});\nexport const MenuItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuItem,\n ComponentProps<typeof SpMenuItem>\n >\n>(() => import('./index.js').then(({ MenuItem }) => MenuItem), { ssr: false });\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAa,eAOb,aAAM,KAAOA,EAElB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,KAAAC,CAAK,IAAMA,CAAI,EAAG,CAAE,IAAK,EAAM,CAAC,EACxD,YAAcD,EAKzB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,YAAAE,CAAY,IAAMA,CAAW,EAAG,CACjE,IAAK,EACT,CAAC,EACY,UAAYF,EAKvB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,UAAAG,CAAU,IAAMA,CAAS,EAAG,CAC7D,IAAK,EACT,CAAC,EACY,SAAWH,EAKtB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,SAAAI,CAAS,IAAMA,CAAQ,EAAG,CAAE,IAAK,EAAM,CAAC",
|
|
6
6
|
"names": ["dynamic", "Menu", "MenuDivider", "MenuGroup", "MenuItem"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/menu",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"description": "React and Next.js wrapper of the @spectrum-web-components/menu component",
|
|
8
8
|
"license": "Apache-2.0",
|
|
9
|
-
"author": "",
|
|
9
|
+
"author": "Adobe",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@lit/react": "^1.0.2",
|
|
29
|
-
"@spectrum-web-components/menu": "^1.
|
|
29
|
+
"@spectrum-web-components/menu": "^1.7.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"next": "~13.4 || ~14"
|