@brytdesigns/web-component-parallax 1.2.0 → 1.2.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/dist/main/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/main/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const useParallax: (element: HTMLElement & ICustomElement) => {
|
|
|
12
12
|
scrollLength: number;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
export declare const withParallaxElementContext: <D extends unknown>(
|
|
15
|
+
export declare const withParallaxElementContext: <D extends unknown>(target: string | import("solid-js").Accessor<string> | import("solid-js").Accessor<() => Element>, dependencies: import("solid-js").Accessor<D> | undefined, cb: (context: {
|
|
16
16
|
maxPages: number;
|
|
17
17
|
scrollYProgress: import("motion").MotionValue<number>;
|
|
18
18
|
scrollY: import("motion").MotionValue<number>;
|
|
@@ -36,7 +36,7 @@ export declare const useParallaxStickyLayer: (element: HTMLElement & ICustomElem
|
|
|
36
36
|
readonly animate: (object: {} | {}[], keyframes: import("motion").ObjectTarget<{}>, options?: import("motion").AnimationOptions | undefined) => AnimationPlaybackControlsWithThen;
|
|
37
37
|
}
|
|
38
38
|
];
|
|
39
|
-
export declare const withParallaxStickyLayerContext: <D extends unknown>(
|
|
39
|
+
export declare const withParallaxStickyLayerContext: <D extends unknown>(target: string | import("solid-js").Accessor<string> | import("solid-js").Accessor<() => Element>, dependencies: import("solid-js").Accessor<D> | undefined, cb: (context: readonly [
|
|
40
40
|
import("motion").MotionValue<number>,
|
|
41
41
|
{
|
|
42
42
|
readonly animate: (object: {} | {}[], keyframes: import("motion").ObjectTarget<{}>, options?: import("motion").AnimationOptions | undefined) => AnimationPlaybackControlsWithThen;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brytdesigns/web-component-parallax",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Headless parallax animation web component",
|
|
5
5
|
"main": "./dist/main/index.js",
|
|
6
6
|
"module": "./dist/main/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"motion": "^12.18.1",
|
|
24
24
|
"solid-element": "^1.9.1",
|
|
25
25
|
"solid-js": "^1.9.7",
|
|
26
|
-
"@brytdesigns/web-component-core": "1.1.
|
|
26
|
+
"@brytdesigns/web-component-core": "1.1.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"dts-bundle-generator": "^9.5.1",
|