@levita-js/svelte 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +8 -4
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @levita-js/svelte
2
+
3
+ > Svelte action for Levita — Lightweight 3D tilt & parallax with accelerometer support.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install levita-js @levita-js/svelte
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```svelte
14
+ <script>
15
+ import { tilt } from "@levita-js/svelte";
16
+ import "levita-js/style.css";
17
+ </script>
18
+
19
+ <div use:tilt={{ glare: true, shadow: true, max: 20 }}>
20
+ <h1>Tilt Me!</h1>
21
+ </div>
22
+ ```
23
+
24
+ ## Documentation
25
+
26
+ Full options and advanced usage documentation can be found at the [main Levita repository](https://github.com/jeromearsene/levita#readme).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levita-js/svelte",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Svelte wrapper for Levita 3D tilt & parallax",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -21,12 +21,16 @@
21
21
  "files": [
22
22
  "dist"
23
23
  ],
24
+ "publishConfig": {
25
+ "access": "public",
26
+ "provenance": true
27
+ },
24
28
  "sideEffects": false,
25
29
  "peerDependencies": {
26
30
  "svelte": ">=5"
27
31
  },
28
32
  "dependencies": {
29
- "levita-js": "0.1.1"
33
+ "levita-js": "0.1.3"
30
34
  },
31
35
  "devDependencies": {
32
36
  "svelte": "^5.0.0",
@@ -35,10 +39,10 @@
35
39
  "license": "MIT",
36
40
  "repository": {
37
41
  "type": "git",
38
- "url": "https://github.com/jeromearsene/levita.git",
42
+ "url": "https://github.com/Jeromearsene/levita.git",
39
43
  "directory": "packages/svelte"
40
44
  },
41
- "homepage": "https://github.com/jeromearsene/levita#readme",
45
+ "homepage": "https://github.com/Jeromearsene/levita#readme",
42
46
  "scripts": {
43
47
  "build": "tsdown"
44
48
  }