@maas/vue-equipment 0.10.2 → 0.10.4

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.10.1"
4
+ "version": "0.10.3"
5
5
  }
@@ -12,6 +12,7 @@ export default defineNuxtModule({
12
12
  setup(_options, nuxt) {
13
13
  const resolver = createResolver(import.meta.url);
14
14
  nuxt.options.build.transpile.push("universal-cookie");
15
+ nuxt.options.build.transpile.push("@vueuse/integrations/useCookies");
15
16
  extendViteConfig((config) => {
16
17
  config.optimizeDeps = config.optimizeDeps || {};
17
18
  config.optimizeDeps.include = config.optimizeDeps.include || [];
@@ -3,20 +3,20 @@ import { useCookies } from "@vueuse/integrations/useCookies";
3
3
  import { toValue } from "@vueuse/core";
4
4
  import { globalApiState } from "./private/defineConsentApi.mjs";
5
5
  import { useConsentEmitter } from "./useConsentEmitter.mjs";
6
- const universalCookies = useCookies(["cookie_consent"]);
7
6
  const preferencesVisible = ref(false);
8
7
  const selectedCookies = ref({});
9
- const cookieConsentData = computed({
10
- get: () => {
11
- return universalCookies.get("cookie_consent");
12
- },
13
- set: (value) => {
14
- universalCookies.set("cookie_consent", value, {
15
- maxAge: globalApiState.value?.maxAge
16
- });
17
- }
18
- });
19
8
  export function useConsentApi() {
9
+ const universalCookies = useCookies(["cookie_consent"]);
10
+ const cookieConsentData = computed({
11
+ get: () => {
12
+ return universalCookies.get("cookie_consent");
13
+ },
14
+ set: (value) => {
15
+ universalCookies.set("cookie_consent", value, {
16
+ maxAge: globalApiState.value?.maxAge
17
+ });
18
+ }
19
+ });
20
20
  const emitter = useConsentEmitter();
21
21
  selectedCookies.value = cookieConsentData.value?.cookies || {};
22
22
  function toggleSelection(key) {
@@ -16,9 +16,9 @@
16
16
  <script setup lang="ts">
17
17
  import { ref, computed } from 'vue'
18
18
  import { useIntersectionObserver } from '@vueuse/core'
19
+ import { useProvidePlayer } from '../composables/usePlayer'
19
20
 
20
21
  import type { SourceType } from './../types'
21
- import { useProvidePlayer } from '../composables/usePlayer'
22
22
 
23
23
  export type MagicPlayerProps = {
24
24
  srcType?: SourceType
@@ -78,7 +78,7 @@ defineExpose({
78
78
  })
79
79
  </script>
80
80
 
81
- <style lang="postcss">
81
+ <style lang="css">
82
82
  .magic-player {
83
83
  --aspect-ratio: 16 / 9;
84
84
  position: relative;
@@ -123,7 +123,7 @@ defineExpose({
123
123
  })
124
124
  </script>
125
125
 
126
- <style lang="postcss">
126
+ <style lang="css">
127
127
  :root {
128
128
  --magic-player-controls-height: 3rem;
129
129
  --magic-player-controls-bottom: 1.5rem;
@@ -62,7 +62,7 @@ async function init() {
62
62
 
63
63
  try {
64
64
  storyboard.value = await fetch(
65
- `https://image.mux.com/${props.playbackId}/storyboard.json`
65
+ `https://image.mux.com/${props.playbackId}/storyboard.json`,
66
66
  ).then((res) => res.json())
67
67
 
68
68
  if (!storyboard.value) throw new Error()
@@ -107,7 +107,7 @@ function drawFrame(time: number) {
107
107
  0,
108
108
  0,
109
109
  tile_width,
110
- tile_height
110
+ tile_height,
111
111
  )
112
112
  }
113
113
 
@@ -115,7 +115,7 @@ onMounted(init)
115
115
  watch(() => seekedTime.value, drawFrame)
116
116
  </script>
117
117
 
118
- <style lang="postcss">
118
+ <style lang="css">
119
119
  :root {
120
120
  --magic-player-popover-border-radius: 0.25rem;
121
121
  }
@@ -125,7 +125,7 @@ watch(() => seekedTime.value, drawFrame)
125
125
  overflow: hidden;
126
126
  }
127
127
 
128
- canvas {
128
+ .magic-player-mux-popover canvas {
129
129
  width: 100%;
130
130
  height: auto;
131
131
  }
@@ -52,7 +52,7 @@ const {
52
52
  } = controlsApi
53
53
  </script>
54
54
 
55
- <style lang="postcss">
55
+ <style lang="css">
56
56
  :root {
57
57
  --magic-player-target-height: 56px;
58
58
  --magic-player-track-height: 4px;
@@ -116,6 +116,7 @@ const {
116
116
  background-color: var(--magic-player-thumb-bg-color);
117
117
  border-radius: 50rem;
118
118
  }
119
+
119
120
  .magic-player-timeline__slider-scrubbed,
120
121
  .magic-player-timeline__slider-seeked,
121
122
  .magic-player-timeline__slider-buffered {
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.10.2",
4
+ "version": "0.10.4",
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",