@maas/vue-equipment 1.0.0-beta.24 → 1.0.0-beta.26

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment/nuxt",
3
3
  "configKey": "vueEquipment",
4
- "version": "1.0.0-beta.23",
4
+ "version": "1.0.0-beta.25",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "unknown"
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > plugins@1.0.0-beta.23 lint /Users/robinscholz/Repositories/@maas/vue-equipment/packages/plugins
3
+ > plugins@1.0.0-beta.24 lint /Users/robinscholz/Repositories/@maas/vue-equipment/packages/plugins
4
4
  > eslint .
5
5
 
@@ -3,6 +3,7 @@
3
3
  :data-id="mappedId"
4
4
  :data-dragging="dragging"
5
5
  :data-disabled="disabled"
6
+ :data-active-snap-point="activeSnapPoint"
6
7
  class="magic-draggable"
7
8
  v-bind="$attrs"
8
9
  >
@@ -50,7 +51,7 @@ const elRef = useTemplateRef("el");
50
51
  const wrapperRef = useTemplateRef("wrapper");
51
52
  const { initializeState } = useDraggableState(id);
52
53
  const state = initializeState();
53
- const { dragging } = toRefs(state);
54
+ const { dragging, activeSnapPoint } = toRefs(state);
54
55
  const disabled = computed(() => {
55
56
  if (options.disabled === void 0) {
56
57
  return defaultOptions.disabled;
@@ -1,14 +1,11 @@
1
1
  <template>
2
- <div
3
- v-show="!loaded || !started || hasOverlay && !touched"
4
- class="magic-player-poster"
5
- >
2
+ <div v-show="isVisible" class="magic-player-poster">
6
3
  <slot />
7
4
  </div>
8
5
  </template>
9
6
 
10
7
  <script setup>
11
- import { inject, toRefs } from "vue";
8
+ import { inject, toRefs, computed } from "vue";
12
9
  import { usePlayerState } from "../composables/private/usePlayerState";
13
10
  import { MagicPlayerInstanceId } from "../symbols";
14
11
  const instanceId = inject(MagicPlayerInstanceId, void 0);
@@ -19,7 +16,10 @@ if (!instanceId) {
19
16
  }
20
17
  const { initializeState } = usePlayerState(instanceId);
21
18
  const state = initializeState();
22
- const { loaded, started, hasOverlay, touched } = toRefs(state);
19
+ const { loaded, started } = toRefs(state);
20
+ const isVisible = computed(() => {
21
+ return !loaded.value || !started.value;
22
+ });
23
23
  </script>
24
24
 
25
25
  <style>
@@ -8,6 +8,7 @@
8
8
  height: var(--magic-player-timeline-track-height);
9
9
  display: flex;
10
10
  align-items: center;
11
+ touch-action: none;
11
12
  }
12
13
 
13
14
  .magic-player-timeline__target {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "description": "Our Frontend Toolkit, Free and Open Source",
4
- "version": "1.0.0-beta.24",
4
+ "version": "1.0.0-beta.26",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Robin Scholz",