@studio-fes/layer-strapi 0.1.3 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @studio-fes/layer-strapi
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix id video generation and props priority in StrapiVideo
8
+
3
9
  ## 0.1.3
4
10
 
5
11
  ### Patch Changes
@@ -10,8 +10,8 @@ export interface StrapiVideoProps extends VideoProps {
10
10
  const props = defineProps<StrapiVideoProps>()
11
11
 
12
12
  const videoProps = computed(() => ({
13
- ...reactiveOmit(props, 'video'),
14
13
  ...parseStrapiVideo(props.video),
14
+ ...reactiveOmit(props, 'video'),
15
15
  }))
16
16
  </script>
17
17
 
@@ -6,10 +6,10 @@ export function parseStrapiVideo(video: StrapiFileFragment | null | undefined):
6
6
  return {}
7
7
 
8
8
  const runtimeConfig = useRuntimeConfig()
9
- const id = useState(() => uuidv4())
9
+ const id = useId()
10
10
 
11
11
  return {
12
- id: `video-${id.value}`,
12
+ id: `video-${id}`,
13
13
  src: runtimeConfig.public.imageDomain + video.url,
14
14
  width: video.width,
15
15
  height: video.height,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@studio-fes/layer-strapi",
3
3
  "type": "module",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev",