@swc-react/menu 0.30.0 → 0.31.1-react.2

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/next.dev.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
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), { ssr: false });
5
+ export const MenuGroup = dynamic(() => import(".").then(({ MenuGroup: MenuGroup2 }) => MenuGroup2), { ssr: false });
6
+ export const MenuItem = dynamic(() => import(".").then(({ MenuItem: MenuItem2 }) => MenuItem2), { ssr: false });
7
+ //# sourceMappingURL=next.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["next.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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*/\n\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Menu as SpMenu } from '.';\nimport { MenuDivider as SpMenuDivider } from '.';\nimport { MenuGroup as SpMenuGroup } from '.';\nimport { MenuItem as SpMenuItem } from '.';\n\nexport const Menu = dynamic<\n JSX.LibraryManagedAttributes<typeof SpMenu, ComponentProps<typeof SpMenu>>\n>(() => import('.').then(({ Menu }) => Menu), { ssr: false });\nexport const MenuDivider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuDivider,\n ComponentProps<typeof SpMenuDivider>\n >\n>(() => import('.').then(({ MenuDivider }) => MenuDivider), { ssr: false });\nexport const MenuGroup = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuGroup,\n ComponentProps<typeof SpMenuGroup>\n >\n>(() => import('.').then(({ MenuGroup }) => MenuGroup), { ssr: false });\nexport const MenuItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuItem,\n ComponentProps<typeof SpMenuItem>\n >\n>(() => import('.').then(({ MenuItem }) => MenuItem), { ssr: false });\n"],
5
+ "mappings": ";AAaA,OAAO,aAAa;AAOb,aAAM,OAAO,QAElB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,MAAAA,MAAK,MAAMA,KAAI,GAAG,EAAE,KAAK,MAAM,CAAC;AACrD,aAAM,cAAc,QAKzB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG,EAAE,KAAK,MAAM,CAAC;AACnE,aAAM,YAAY,QAKvB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG,EAAE,KAAK,MAAM,CAAC;AAC/D,aAAM,WAAW,QAKtB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,UAAAC,UAAS,MAAMA,SAAQ,GAAG,EAAE,KAAK,MAAM,CAAC;",
6
+ "names": ["Menu", "MenuDivider", "MenuGroup", "MenuItem"]
7
+ }
package/next.js ADDED
@@ -0,0 +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});
2
+ //# sourceMappingURL=next.js.map
package/next.js.map ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["next.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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*/\n\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Menu as SpMenu } from '.';\nimport { MenuDivider as SpMenuDivider } from '.';\nimport { MenuGroup as SpMenuGroup } from '.';\nimport { MenuItem as SpMenuItem } from '.';\n\nexport const Menu = dynamic<\n JSX.LibraryManagedAttributes<typeof SpMenu, ComponentProps<typeof SpMenu>>\n>(() => import('.').then(({ Menu }) => Menu), { ssr: false });\nexport const MenuDivider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuDivider,\n ComponentProps<typeof SpMenuDivider>\n >\n>(() => import('.').then(({ MenuDivider }) => MenuDivider), { ssr: false });\nexport const MenuGroup = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuGroup,\n ComponentProps<typeof SpMenuGroup>\n >\n>(() => import('.').then(({ MenuGroup }) => MenuGroup), { ssr: false });\nexport const MenuItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuItem,\n ComponentProps<typeof SpMenuItem>\n >\n>(() => import('.').then(({ MenuItem }) => MenuItem), { ssr: false });\n"],
5
+ "mappings": "aAaA,OAAOA,MAAa,eAOb,aAAM,KAAOA,EAElB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,KAAAC,CAAK,IAAMA,CAAI,EAAG,CAAE,IAAK,EAAM,CAAC,EAC/C,YAAcD,EAKzB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,YAAAE,CAAY,IAAMA,CAAW,EAAG,CAAE,IAAK,EAAM,CAAC,EAC7D,UAAYF,EAKvB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,UAAAG,CAAU,IAAMA,CAAS,EAAG,CAAE,IAAK,EAAM,CAAC,EACzD,SAAWH,EAKtB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,SAAAI,CAAS,IAAMA,CAAQ,EAAG,CAAE,IAAK,EAAM,CAAC",
6
+ "names": ["dynamic", "Menu", "MenuDivider", "MenuGroup", "MenuItem"]
7
+ }
package/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "@swc-react/menu",
3
- "version": "0.30.0",
3
+ "version": "0.31.1-react.2+971de948d",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "description": "React wrapper of the @spectrum-web-components/menu component",
7
+ "description": "React and Next.js wrapper of the @spectrum-web-components/menu component",
8
8
  "license": "Apache-2.0",
9
9
  "author": "",
10
- "main": "index.js",
10
+ "type": "module",
11
+ "exports": {
12
+ ".": {
13
+ "development": "./index.dev.js",
14
+ "default": "./index.js"
15
+ },
16
+ "./next.js": {
17
+ "development": "./next.dev.js",
18
+ "default": "./next.js"
19
+ }
20
+ },
11
21
  "files": [
12
22
  "**/*.d.ts",
13
23
  "**/*.js",
@@ -20,7 +30,15 @@
20
30
  ],
21
31
  "dependencies": {
22
32
  "@lit-labs/react": "^1.1.1",
23
- "@spectrum-web-components/menu": "0.30.0"
33
+ "@spectrum-web-components/menu": "^0.31.1-react.1+86ddafa4c"
34
+ },
35
+ "peerDependencies": {
36
+ "next": "^13.4.1 || latest"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "next": {
40
+ "optional": true
41
+ }
24
42
  },
25
- "gitHead": "25acadb3cbf24300ae962de211c0bfdb7b1c809d"
43
+ "gitHead": "971de948df12f7082f13ab5dd5e638d456ebbb94"
26
44
  }