@swc-react/sidenav 0.31.0 → 0.31.1-react.3

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,8 @@
1
+ "use strict";
2
+ import dynamic from "next/dynamic";
3
+ export const SideNav = dynamic(() => import(".").then(({ SideNav: SideNav2 }) => SideNav2), { ssr: false });
4
+ export const SideNavHeading = dynamic(() => import(".").then(({ SideNavHeading: SideNavHeading2 }) => SideNavHeading2), {
5
+ ssr: false
6
+ });
7
+ export const SideNavItem = dynamic(() => import(".").then(({ SideNavItem: SideNavItem2 }) => SideNavItem2), { ssr: false });
8
+ //# 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 { SideNav as SpSideNav } from '.';\nimport { SideNavHeading as SpSideNavHeading } from '.';\nimport { SideNavItem as SpSideNavItem } from '.';\n\nexport const SideNav = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNav,\n ComponentProps<typeof SpSideNav>\n >\n>(() => import('.').then(({ SideNav }) => SideNav), { ssr: false });\nexport const SideNavHeading = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavHeading,\n ComponentProps<typeof SpSideNavHeading>\n >\n>(() => import('.').then(({ SideNavHeading }) => SideNavHeading), {\n ssr: false,\n});\nexport const SideNavItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavItem,\n ComponentProps<typeof SpSideNavItem>\n >\n>(() => import('.').then(({ SideNavItem }) => SideNavItem), { ssr: false });\n"],
5
+ "mappings": ";AAaA,OAAO,aAAa;AAMb,aAAM,UAAU,QAKrB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,SAAAA,SAAQ,MAAMA,QAAO,GAAG,EAAE,KAAK,MAAM,CAAC;AAC3D,aAAM,iBAAiB,QAK5B,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,gBAAAC,gBAAe,MAAMA,eAAc,GAAG;AAAA,EAC9D,KAAK;AACT,CAAC;AACM,aAAM,cAAc,QAKzB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG,EAAE,KAAK,MAAM,CAAC;",
6
+ "names": ["SideNav", "SideNavHeading", "SideNavItem"]
7
+ }
package/next.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";import t from"next/dynamic";export const SideNav=t(()=>import(".").then(({SideNav:e})=>e),{ssr:!1}),SideNavHeading=t(()=>import(".").then(({SideNavHeading:e})=>e),{ssr:!1}),SideNavItem=t(()=>import(".").then(({SideNavItem: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 { SideNav as SpSideNav } from '.';\nimport { SideNavHeading as SpSideNavHeading } from '.';\nimport { SideNavItem as SpSideNavItem } from '.';\n\nexport const SideNav = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNav,\n ComponentProps<typeof SpSideNav>\n >\n>(() => import('.').then(({ SideNav }) => SideNav), { ssr: false });\nexport const SideNavHeading = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavHeading,\n ComponentProps<typeof SpSideNavHeading>\n >\n>(() => import('.').then(({ SideNavHeading }) => SideNavHeading), {\n ssr: false,\n});\nexport const SideNavItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavItem,\n ComponentProps<typeof SpSideNavItem>\n >\n>(() => import('.').then(({ SideNavItem }) => SideNavItem), { ssr: false });\n"],
5
+ "mappings": "aAaA,OAAOA,MAAa,eAMb,aAAM,QAAUA,EAKrB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,QAAAC,CAAQ,IAAMA,CAAO,EAAG,CAAE,IAAK,EAAM,CAAC,EACrD,eAAiBD,EAK5B,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,eAAAE,CAAe,IAAMA,CAAc,EAAG,CAC9D,IAAK,EACT,CAAC,EACY,YAAcF,EAKzB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,YAAAG,CAAY,IAAMA,CAAW,EAAG,CAAE,IAAK,EAAM,CAAC",
6
+ "names": ["dynamic", "SideNav", "SideNavHeading", "SideNavItem"]
7
+ }
package/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "@swc-react/sidenav",
3
- "version": "0.31.0",
3
+ "version": "0.31.1-react.3+886f51591",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "description": "React wrapper of the @spectrum-web-components/sidenav component",
7
+ "description": "React and Next.js wrapper of the @spectrum-web-components/sidenav 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/sidenav": "0.31.0"
33
+ "@spectrum-web-components/sidenav": "^0.31.1-react.3+886f51591"
34
+ },
35
+ "peerDependencies": {
36
+ "next": "^13.4.1 || latest"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "next": {
40
+ "optional": true
41
+ }
24
42
  },
25
- "gitHead": "a30eeed27948a9a372b792b751f968c54337ab9e"
43
+ "gitHead": "886f515919ca0e8a1cec52a00babb1d4a195ae01"
26
44
  }