@datocms/svelte 4.2.2 → 4.2.3

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.
@@ -30,6 +30,7 @@ optimal videos to your users.
30
30
  - [Usage](#usage)
31
31
  - [Example](#example)
32
32
  - [Props](#props)
33
+ - [Opt-in Viewer Analytics](#opt-in-viewer-analytics)
33
34
 
34
35
  <!-- END doctoc generated TOC please keep comment here to allow auto update -->
35
36
 
@@ -140,3 +141,11 @@ inner `<mux-player />`.
140
141
  `style` attribute
141
142
 
142
143
  All the other props are forwarded to the `<mux-player />` web component that is used internally.
144
+
145
+ ## Opt-in Viewer Analytics
146
+
147
+ This `<VideoPlayer/>` component can OPTIONALLY collect clientside [playback and engagement metrics](https://www.mux.com/data#TechSpecs) such as playback percentages, user agents, and geography.
148
+
149
+ These analytics are **disabled** by default. To enable them, you must opt in to [Mux Data](https://www.mux.com/data) integration by creating a Mux Data account (free) and providing its `envKey` to the component.
150
+
151
+ For details and setup instructions, please see our documentation on **[Streaming Video Analytics with Mux Data](https://www.datocms.com/docs/streaming-videos/streaming-video-analytics-with-mux-data)**.
@@ -1,4 +1,4 @@
1
- import type { Node } from 'datocms-structured-text-utils';
1
+ import type { Node, CdaStructuredTextValue, CdaStructuredTextRecord, TypesafeCdaStructuredTextValue, Document as StructuredTextDocument } from 'datocms-structured-text-utils';
2
2
  export { default as NakedImage } from './components/NakedImage/NakedImage.svelte';
3
3
  export type { ResponsiveImageType } from './components/NakedImage/utils';
4
4
  export { default as Head } from './components/Head/Head.svelte';
@@ -6,6 +6,7 @@ export { default as Image } from './components/Image/Image.svelte';
6
6
  export { default as StructuredText } from './components/StructuredText/StructuredText.svelte';
7
7
  export { default as VideoPlayer } from './components/VideoPlayer/VideoPlayer.svelte';
8
8
  export * from './stores/querySubscription';
9
+ export type { StructuredTextDocument, CdaStructuredTextValue, TypesafeCdaStructuredTextValue, CdaStructuredTextRecord, };
9
10
  export type PredicateComponentTuple = [
10
11
  (n: Node) => boolean,
11
12
  any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/svelte",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "A set of components and utilities to work faster with DatoCMS in Svelte",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -66,7 +66,7 @@
66
66
  "type": "module",
67
67
  "dependencies": {
68
68
  "datocms-listen": "^0.1.15",
69
- "datocms-structured-text-utils": "^5.0.0",
69
+ "datocms-structured-text-utils": "^5.1.6",
70
70
  "svelte-intersection-observer": "^1.0.0"
71
71
  },
72
72
  "exports": {