@maas/vue-equipment 0.4.1 → 0.4.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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "configKey": "vueEquipment",
4
- "version": "0.4.0"
4
+ "version": "0.4.1"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="magic-scroll-provider">
3
- <slot />
3
+ <slot :scroll-position="scrollPosition" />
4
4
  </div>
5
5
  </template>
6
6
 
@@ -17,7 +17,26 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
17
  }>>, {
18
18
  active: Boolean;
19
19
  }, {}>, {
20
- default?(_: {}): any;
20
+ default?(_: {
21
+ scrollPosition: {
22
+ x: import("vue").WritableComputedRef<number>;
23
+ y: import("vue").WritableComputedRef<number>;
24
+ isScrolling: import("vue").Ref<boolean>;
25
+ arrivedState: {
26
+ left: boolean;
27
+ right: boolean;
28
+ top: boolean;
29
+ bottom: boolean;
30
+ };
31
+ directions: {
32
+ left: boolean;
33
+ right: boolean;
34
+ top: boolean;
35
+ bottom: boolean;
36
+ };
37
+ measure(): void;
38
+ };
39
+ }): any;
21
40
  }>;
22
41
  export default _default;
23
42
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -21,8 +21,6 @@ export function useProgress(params) {
21
21
  if (!childRect.value)
22
22
  return y;
23
23
  const scrollY = toValue(scrollPosition?.y) || 0;
24
- if (parent)
25
- console.log("scrollY:", scrollY);
26
24
  switch (points.child) {
27
25
  case "top":
28
26
  y += childRect.value.top + scrollY;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "description": "A magic collection of Vue composables, plugins, components and directives",
4
- "version": "0.4.1",
4
+ "version": "0.4.2",
5
5
  "author": "Robin Scholz <https://github.com/robinscholz>, Christoph Jeworutzki <https://github.com/ChristophJeworutzki>",
6
6
  "devDependencies": {
7
7
  "@antfu/ni": "^0.21.5",