@swc-react/slider 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,5 @@
1
+ "use strict";
2
+ import dynamic from "next/dynamic";
3
+ export const Slider = dynamic(() => import(".").then(({ Slider: Slider2 }) => Slider2), { ssr: false });
4
+ export const SliderHandle = dynamic(() => import(".").then(({ SliderHandle: SliderHandle2 }) => SliderHandle2), { ssr: false });
5
+ //# 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 { Slider as SpSlider } from '.';\nimport { SliderHandle as SpSliderHandle } from '.';\n\nexport const Slider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSlider,\n ComponentProps<typeof SpSlider>\n >\n>(() => import('.').then(({ Slider }) => Slider), { ssr: false });\nexport const SliderHandle = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSliderHandle,\n ComponentProps<typeof SpSliderHandle>\n >\n>(() => import('.').then(({ SliderHandle }) => SliderHandle), { ssr: false });\n"],
5
+ "mappings": ";AAaA,OAAO,aAAa;AAKb,aAAM,SAAS,QAKpB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,QAAAA,QAAO,MAAMA,OAAM,GAAG,EAAE,KAAK,MAAM,CAAC;AACzD,aAAM,eAAe,QAK1B,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,cAAAC,cAAa,MAAMA,aAAY,GAAG,EAAE,KAAK,MAAM,CAAC;",
6
+ "names": ["Slider", "SliderHandle"]
7
+ }
package/next.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";import e from"next/dynamic";export const Slider=e(()=>import(".").then(({Slider:r})=>r),{ssr:!1}),SliderHandle=e(()=>import(".").then(({SliderHandle:r})=>r),{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 { Slider as SpSlider } from '.';\nimport { SliderHandle as SpSliderHandle } from '.';\n\nexport const Slider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSlider,\n ComponentProps<typeof SpSlider>\n >\n>(() => import('.').then(({ Slider }) => Slider), { ssr: false });\nexport const SliderHandle = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSliderHandle,\n ComponentProps<typeof SpSliderHandle>\n >\n>(() => import('.').then(({ SliderHandle }) => SliderHandle), { ssr: false });\n"],
5
+ "mappings": "aAaA,OAAOA,MAAa,eAKb,aAAM,OAASA,EAKpB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,OAAAC,CAAO,IAAMA,CAAM,EAAG,CAAE,IAAK,EAAM,CAAC,EACnD,aAAeD,EAK1B,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,aAAAE,CAAa,IAAMA,CAAY,EAAG,CAAE,IAAK,EAAM,CAAC",
6
+ "names": ["dynamic", "Slider", "SliderHandle"]
7
+ }
package/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "@swc-react/slider",
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/slider component",
7
+ "description": "React and Next.js wrapper of the @spectrum-web-components/slider 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/slider": "0.30.0"
33
+ "@spectrum-web-components/slider": "^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
  }