@datocms/svelte 3.0.5 → 4.1.0

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.
Files changed (25) hide show
  1. package/package/components/Head/Head.svelte.d.ts +2 -2
  2. package/package/components/Image/Image.svelte +1 -1
  3. package/package/components/Image/Image.svelte.d.ts +2 -2
  4. package/package/components/NakedImage/NakedImage.svelte.d.ts +2 -2
  5. package/package/components/StructuredText/Node.svelte.d.ts +2 -2
  6. package/package/components/StructuredText/README.md +1 -0
  7. package/package/components/StructuredText/StructuredText.svelte.d.ts +2 -2
  8. package/package/components/StructuredText/nodes/Blockquote.svelte.d.ts +2 -2
  9. package/package/components/StructuredText/nodes/Code.svelte.d.ts +2 -2
  10. package/package/components/StructuredText/nodes/Heading.svelte.d.ts +2 -2
  11. package/package/components/StructuredText/nodes/Link.svelte.d.ts +2 -2
  12. package/package/components/StructuredText/nodes/List.svelte.d.ts +2 -2
  13. package/package/components/StructuredText/nodes/ListItem.svelte.d.ts +2 -2
  14. package/package/components/StructuredText/nodes/Paragraph.svelte.d.ts +2 -2
  15. package/package/components/StructuredText/nodes/Root.svelte.d.ts +2 -2
  16. package/package/components/StructuredText/nodes/Span.svelte.d.ts +2 -2
  17. package/package/components/StructuredText/nodes/ThematicBreak.svelte.d.ts +2 -2
  18. package/package/components/StructuredText/utils/Lines.svelte.d.ts +2 -2
  19. package/package/components/VideoPlayer/README.md +2 -0
  20. package/package/components/VideoPlayer/VideoPlayer.svelte +3 -1
  21. package/package/components/VideoPlayer/VideoPlayer.svelte.d.ts +3 -2
  22. package/package/components/VideoPlayer/__tests__/VideoPlayer.svelte.test.js +14 -0
  23. package/package/components/VideoPlayer/__tests__/__snapshots__/VideoPlayer.svelte.test.ts.snap +49 -0
  24. package/package/index.d.ts +1 -2
  25. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  export interface TitleMetaLinkTag {
3
3
  /** the tag for the meta information */
4
4
  tag: string;
@@ -56,6 +56,6 @@ declare const __propDef: {
56
56
  export type HeadProps = typeof __propDef.props;
57
57
  export type HeadEvents = typeof __propDef.events;
58
58
  export type HeadSlots = typeof __propDef.slots;
59
- export default class Head extends SvelteComponentTyped<HeadProps, HeadEvents, HeadSlots> {
59
+ export default class Head extends SvelteComponent<HeadProps, HeadEvents, HeadSlots> {
60
60
  }
61
61
  export {};
@@ -119,7 +119,7 @@ $:
119
119
  'background-color': data.bgColor,
120
120
  ...basePlaceholderStyle
121
121
  })}
122
- ></div>
122
+ />
123
123
  {/if}
124
124
  {/if}
125
125
 
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type * as CSS from 'csstype';
3
3
  import { type ResponsiveImageType } from '../NakedImage/utils';
4
4
  declare const __propDef: {
@@ -56,6 +56,6 @@ declare const __propDef: {
56
56
  export type ImageProps = typeof __propDef.props;
57
57
  export type ImageEvents = typeof __propDef.events;
58
58
  export type ImageSlots = typeof __propDef.slots;
59
- export default class Image extends SvelteComponentTyped<ImageProps, ImageEvents, ImageSlots> {
59
+ export default class Image extends SvelteComponent<ImageProps, ImageEvents, ImageSlots> {
60
60
  }
61
61
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { type ResponsiveImageType } from './utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -36,6 +36,6 @@ declare const __propDef: {
36
36
  export type NakedImageProps = typeof __propDef.props;
37
37
  export type NakedImageEvents = typeof __propDef.events;
38
38
  export type NakedImageSlots = typeof __propDef.slots;
39
- export default class NakedImage extends SvelteComponentTyped<NakedImageProps, NakedImageEvents, NakedImageSlots> {
39
+ export default class NakedImage extends SvelteComponent<NakedImageProps, NakedImageEvents, NakedImageSlots> {
40
40
  }
41
41
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  export declare const DEFAULT_COMPONENTS: PredicateComponentTuple[];
3
3
  import { type Node, type StructuredText } from 'datocms-structured-text-utils';
4
4
  import type { PredicateComponentTuple } from '../..';
@@ -17,6 +17,6 @@ declare const __propDef: {
17
17
  export type NodeProps = typeof __propDef.props;
18
18
  export type NodeEvents = typeof __propDef.events;
19
19
  export type NodeSlots = typeof __propDef.slots;
20
- export default class Node extends SvelteComponentTyped<NodeProps, NodeEvents, NodeSlots> {
20
+ export default class Node extends SvelteComponent<NodeProps, NodeEvents, NodeSlots> {
21
21
  }
22
22
  export {};
@@ -7,6 +7,7 @@
7
7
  <!-- START doctoc generated TOC please keep comment here to allow auto update -->
8
8
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
9
9
 
10
+ - [Setup](#setup)
10
11
  - [Basic usage](#basic-usage)
11
12
  - [Customization](#customization)
12
13
  - [Custom components for blocks](#custom-components-for-blocks)
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { type StructuredText, type Document, type Node as DastNode } from 'datocms-structured-text-utils';
3
3
  import type { PredicateComponentTuple } from '../..';
4
4
  declare const __propDef: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type StructuredTextProps = typeof __propDef.props;
15
15
  export type StructuredTextEvents = typeof __propDef.events;
16
16
  export type StructuredTextSlots = typeof __propDef.slots;
17
- export default class StructuredText extends SvelteComponentTyped<StructuredTextProps, StructuredTextEvents, StructuredTextSlots> {
17
+ export default class StructuredText extends SvelteComponent<StructuredTextProps, StructuredTextEvents, StructuredTextSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { Blockquote } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type BlockquoteProps = typeof __propDef.props;
15
15
  export type BlockquoteEvents = typeof __propDef.events;
16
16
  export type BlockquoteSlots = typeof __propDef.slots;
17
- export default class Blockquote extends SvelteComponentTyped<BlockquoteProps, BlockquoteEvents, BlockquoteSlots> {
17
+ export default class Blockquote extends SvelteComponent<BlockquoteProps, BlockquoteEvents, BlockquoteSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { Code } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -12,6 +12,6 @@ declare const __propDef: {
12
12
  export type CodeProps = typeof __propDef.props;
13
13
  export type CodeEvents = typeof __propDef.events;
14
14
  export type CodeSlots = typeof __propDef.slots;
15
- export default class Code extends SvelteComponentTyped<CodeProps, CodeEvents, CodeSlots> {
15
+ export default class Code extends SvelteComponent<CodeProps, CodeEvents, CodeSlots> {
16
16
  }
17
17
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { Heading } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type HeadingProps = typeof __propDef.props;
15
15
  export type HeadingEvents = typeof __propDef.events;
16
16
  export type HeadingSlots = typeof __propDef.slots;
17
- export default class Heading extends SvelteComponentTyped<HeadingProps, HeadingEvents, HeadingSlots> {
17
+ export default class Heading extends SvelteComponent<HeadingProps, HeadingEvents, HeadingSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { Link } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type LinkProps = typeof __propDef.props;
15
15
  export type LinkEvents = typeof __propDef.events;
16
16
  export type LinkSlots = typeof __propDef.slots;
17
- export default class Link extends SvelteComponentTyped<LinkProps, LinkEvents, LinkSlots> {
17
+ export default class Link extends SvelteComponent<LinkProps, LinkEvents, LinkSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { List } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type ListProps = typeof __propDef.props;
15
15
  export type ListEvents = typeof __propDef.events;
16
16
  export type ListSlots = typeof __propDef.slots;
17
- export default class List extends SvelteComponentTyped<ListProps, ListEvents, ListSlots> {
17
+ export default class List extends SvelteComponent<ListProps, ListEvents, ListSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { ListItem } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type ListItemProps = typeof __propDef.props;
15
15
  export type ListItemEvents = typeof __propDef.events;
16
16
  export type ListItemSlots = typeof __propDef.slots;
17
- export default class ListItem extends SvelteComponentTyped<ListItemProps, ListItemEvents, ListItemSlots> {
17
+ export default class ListItem extends SvelteComponent<ListItemProps, ListItemEvents, ListItemSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { Paragraph } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type ParagraphProps = typeof __propDef.props;
15
15
  export type ParagraphEvents = typeof __propDef.events;
16
16
  export type ParagraphSlots = typeof __propDef.slots;
17
- export default class Paragraph extends SvelteComponentTyped<ParagraphProps, ParagraphEvents, ParagraphSlots> {
17
+ export default class Paragraph extends SvelteComponent<ParagraphProps, ParagraphEvents, ParagraphSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { Root } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type RootProps = typeof __propDef.props;
15
15
  export type RootEvents = typeof __propDef.events;
16
16
  export type RootSlots = typeof __propDef.slots;
17
- export default class Root extends SvelteComponentTyped<RootProps, RootEvents, RootSlots> {
17
+ export default class Root extends SvelteComponent<RootProps, RootEvents, RootSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { Span } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,6 +14,6 @@ declare const __propDef: {
14
14
  export type SpanProps = typeof __propDef.props;
15
15
  export type SpanEvents = typeof __propDef.events;
16
16
  export type SpanSlots = typeof __propDef.slots;
17
- export default class Span extends SvelteComponentTyped<SpanProps, SpanEvents, SpanSlots> {
17
+ export default class Span extends SvelteComponent<SpanProps, SpanEvents, SpanSlots> {
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { ThematicBreak } from 'datocms-structured-text-utils';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -12,6 +12,6 @@ declare const __propDef: {
12
12
  export type ThematicBreakProps = typeof __propDef.props;
13
13
  export type ThematicBreakEvents = typeof __propDef.events;
14
14
  export type ThematicBreakSlots = typeof __propDef.slots;
15
- export default class ThematicBreak extends SvelteComponentTyped<ThematicBreakProps, ThematicBreakEvents, ThematicBreakSlots> {
15
+ export default class ThematicBreak extends SvelteComponent<ThematicBreakProps, ThematicBreakEvents, ThematicBreakSlots> {
16
16
  }
17
17
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  lines?: string[] | undefined;
@@ -11,6 +11,6 @@ declare const __propDef: {
11
11
  export type LinesProps = typeof __propDef.props;
12
12
  export type LinesEvents = typeof __propDef.events;
13
13
  export type LinesSlots = typeof __propDef.slots;
14
- export default class Lines extends SvelteComponentTyped<LinesProps, LinesEvents, LinesSlots> {
14
+ export default class Lines extends SvelteComponent<LinesProps, LinesEvents, LinesSlots> {
15
15
  }
16
16
  export {};
@@ -131,6 +131,8 @@ inner `<mux-player />`.
131
131
 
132
132
  - when not declared, the `disableCookies` prop is true, unless you explicitly
133
133
  set the prop to `false` (therefore it generates a `disable-cookies` attribute)
134
+ - when not declared, the `disableTracking` prop is true, unelss you explicitly
135
+ set it to `false` (so, it normally generates a `disable-tracking` attribute)
134
136
  - `preload` defaults to `metadata`, for an optimal UX experience together with saved bandwidth
135
137
  - the video height and width, when available in the `data` props, are used to
136
138
  set a default `aspect-ratio: [width] / [height];` for the `<mux-player />`'s
@@ -74,6 +74,7 @@ export let data = {};
74
74
  export let style = void 0;
75
75
  export let preload = "metadata";
76
76
  export let disableCookies = true;
77
+ export let disableTracking = true;
77
78
  let muxPlayerElementImported = false;
78
79
  let muxPlayerElement;
79
80
  let computedProps;
@@ -85,6 +86,7 @@ $: {
85
86
  ...computedStyle(style, width, height) || {},
86
87
  ...computedPlaceholder(blurUpThumb) || {},
87
88
  disableCookies,
89
+ disableTracking,
88
90
  preload
89
91
  };
90
92
  }
@@ -134,4 +136,4 @@ onMount(async () => {
134
136
  on:error
135
137
  on:cuepointchange
136
138
  on:cuepointschange
137
- ></mux-player>
139
+ />
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { CmcdTypes, MaxResolutionValue, MinResolutionValue, PlaybackTypes, RenditionOrderValue, StreamTypes } from '@mux/playback-core';
3
3
  import type { Tokens } from '@mux/mux-player';
4
4
  type ValueOf<T> = T[keyof T];
@@ -23,6 +23,7 @@ type MuxMediaPropTypes = {
23
23
  envKey: string;
24
24
  debug: boolean;
25
25
  disableCookies: boolean;
26
+ disableTracking: boolean;
26
27
  disablePictureInPicture?: boolean;
27
28
  metadata: {
28
29
  [k: string]: any;
@@ -130,5 +131,5 @@ type VideoPlayerProps_ = typeof __propDef.props;
130
131
  export { VideoPlayerProps_ as VideoPlayerProps };
131
132
  export type VideoPlayerEvents = typeof __propDef.events;
132
133
  export type VideoPlayerSlots = typeof __propDef.slots;
133
- export default class VideoPlayer extends SvelteComponentTyped<VideoPlayerProps_, VideoPlayerEvents, VideoPlayerSlots> {
134
+ export default class VideoPlayer extends SvelteComponent<VideoPlayerProps_, VideoPlayerEvents, VideoPlayerSlots> {
134
135
  }
@@ -52,6 +52,20 @@ describe('VideoPlayer', () => {
52
52
  });
53
53
  });
54
54
  });
55
+ describe('and `disableTracking` is passed', () => {
56
+ it('uses it for the <mux-player /> element', () => {
57
+ const props = { data, disableTracking: true };
58
+ const { container } = render(VideoPlayer, { props });
59
+ expect(container).toMatchSnapshot();
60
+ });
61
+ describe('with value `false`', () => {
62
+ it("doesn't use it for the <mux-player /> element", () => {
63
+ const props = { data, disableTracking: false };
64
+ const { container } = render(VideoPlayer, { props });
65
+ expect(container).toMatchSnapshot();
66
+ });
67
+ });
68
+ });
55
69
  describe('and `preload` is passed', () => {
56
70
  it('uses it for the <mux-player /> element', () => {
57
71
  const props = { data, preload: 'auto' };
@@ -5,6 +5,7 @@ exports[`VideoPlayer > when data object > contains \`muxPlaybackId\` > uses it f
5
5
  <div>
6
6
  <mux-player
7
7
  disable-cookies="true"
8
+ disable-tracking="true"
8
9
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
9
10
  preload="metadata"
10
11
  stream-type="on-demand"
@@ -19,6 +20,7 @@ exports[`VideoPlayer > when data object > contains \`playbackId\` > uses it for
19
20
  <div>
20
21
  <mux-player
21
22
  disable-cookies="true"
23
+ disable-tracking="true"
22
24
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
23
25
  preload="metadata"
24
26
  stream-type="on-demand"
@@ -34,6 +36,7 @@ exports[`VideoPlayer > when data object > is complete > and \`autoplay\` is pass
34
36
  <mux-player
35
37
  autoplay="true"
36
38
  disable-cookies="true"
39
+ disable-tracking="true"
37
40
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
38
41
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
39
42
  preload="metadata"
@@ -51,6 +54,7 @@ exports[`VideoPlayer > when data object > is complete > and \`autoplay\` is pass
51
54
  <div>
52
55
  <mux-player
53
56
  disable-cookies="true"
57
+ disable-tracking="true"
54
58
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
55
59
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
56
60
  preload="metadata"
@@ -69,6 +73,7 @@ exports[`VideoPlayer > when data object > is complete > and \`class\` is passed
69
73
  <mux-player
70
74
  class="main-player"
71
75
  disable-cookies="true"
76
+ disable-tracking="true"
72
77
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
73
78
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
74
79
  preload="metadata"
@@ -86,6 +91,7 @@ exports[`VideoPlayer > when data object > is complete > and \`disableCookies\` i
86
91
  <div>
87
92
  <mux-player
88
93
  disable-cookies="true"
94
+ disable-tracking="true"
89
95
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
90
96
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
91
97
  preload="metadata"
@@ -102,6 +108,42 @@ exports[`VideoPlayer > when data object > is complete > and \`disableCookies\` i
102
108
  <body>
103
109
  <div>
104
110
  <mux-player
111
+ disable-tracking="true"
112
+ placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
113
+ playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
114
+ preload="metadata"
115
+ stream-type="on-demand"
116
+ style="aspect-ratio: 1080 / 1920;"
117
+ title="Title"
118
+ />
119
+ <!--&lt;VideoPlayer&gt;-->
120
+ </div>
121
+ </body>
122
+ `;
123
+
124
+ exports[`VideoPlayer > when data object > is complete > and \`disableTracking\` is passed > uses it for the <mux-player /> element 1`] = `
125
+ <body>
126
+ <div>
127
+ <mux-player
128
+ disable-cookies="true"
129
+ disable-tracking="true"
130
+ placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
131
+ playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
132
+ preload="metadata"
133
+ stream-type="on-demand"
134
+ style="aspect-ratio: 1080 / 1920;"
135
+ title="Title"
136
+ />
137
+ <!--&lt;VideoPlayer&gt;-->
138
+ </div>
139
+ </body>
140
+ `;
141
+
142
+ exports[`VideoPlayer > when data object > is complete > and \`disableTracking\` is passed > with value \`false\` > doesn't use it for the <mux-player /> element 1`] = `
143
+ <body>
144
+ <div>
145
+ <mux-player
146
+ disable-cookies="true"
105
147
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
106
148
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
107
149
  preload="metadata"
@@ -119,6 +161,7 @@ exports[`VideoPlayer > when data object > is complete > and \`preload\` is passe
119
161
  <div>
120
162
  <mux-player
121
163
  disable-cookies="true"
164
+ disable-tracking="true"
122
165
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
123
166
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
124
167
  preload="auto"
@@ -136,6 +179,7 @@ exports[`VideoPlayer > when data object > is complete > and \`preload\` is passe
136
179
  <div>
137
180
  <mux-player
138
181
  disable-cookies="true"
182
+ disable-tracking="true"
139
183
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
140
184
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
141
185
  preload="none"
@@ -153,6 +197,7 @@ exports[`VideoPlayer > when data object > is complete > and a style string is pa
153
197
  <div>
154
198
  <mux-player
155
199
  disable-cookies="true"
200
+ disable-tracking="true"
156
201
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
157
202
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
158
203
  preload="metadata"
@@ -170,6 +215,7 @@ exports[`VideoPlayer > when data object > is complete > and a style string is pa
170
215
  <div>
171
216
  <mux-player
172
217
  disable-cookies="true"
218
+ disable-tracking="true"
173
219
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
174
220
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
175
221
  preload="metadata"
@@ -187,6 +233,7 @@ exports[`VideoPlayer > when data object > is complete > unwraps data into props
187
233
  <div>
188
234
  <mux-player
189
235
  disable-cookies="true"
236
+ disable-tracking="true"
190
237
  placeholder="data:image/bmp;base64,Qk0eAAAAAAAAABoAAAAMAAAAAQABAAEAGAAAAP8A"
191
238
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
192
239
  preload="metadata"
@@ -204,6 +251,7 @@ exports[`VideoPlayer > when data object > lacks of \`title\` value > avoids addi
204
251
  <div>
205
252
  <mux-player
206
253
  disable-cookies="true"
254
+ disable-tracking="true"
207
255
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
208
256
  preload="metadata"
209
257
  stream-type="on-demand"
@@ -219,6 +267,7 @@ exports[`VideoPlayer > when data object > lacks of \`width\` and \`height\` valu
219
267
  <div>
220
268
  <mux-player
221
269
  disable-cookies="true"
270
+ disable-tracking="true"
222
271
  playback-id="ip028MAXF026dU900bKiyNDttjonw7A1dFY"
223
272
  preload="metadata"
224
273
  stream-type="on-demand"
@@ -1,5 +1,4 @@
1
1
  import type { Node } from 'datocms-structured-text-utils';
2
- import type { SvelteComponent } from 'svelte';
3
2
  export { default as NakedImage } from './components/NakedImage/NakedImage.svelte';
4
3
  export type { ResponsiveImageType } from './components/NakedImage/utils';
5
4
  export { default as Head } from './components/Head/Head.svelte';
@@ -9,5 +8,5 @@ export { default as VideoPlayer } from './components/VideoPlayer/VideoPlayer.sve
9
8
  export * from './stores/querySubscription';
10
9
  export type PredicateComponentTuple = [
11
10
  (n: Node) => boolean,
12
- new (...any: any) => SvelteComponent
11
+ any
13
12
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/svelte",
3
- "version": "3.0.5",
3
+ "version": "4.1.0",
4
4
  "description": "A set of components and utilities to work faster with DatoCMS in Svelte",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@mux/mux-player": "*",
30
- "svelte": "^3.59.2 || ^4.0.0 || ^5.0.0"
30
+ "svelte": "^4.0.0 || ^5.0.0"
31
31
  },
32
32
  "peerDependenciesMeta": {
33
33
  "@mux/mux-player": {
@@ -35,7 +35,7 @@
35
35
  }
36
36
  },
37
37
  "devDependencies": {
38
- "@mux/mux-player": "*",
38
+ "@mux/mux-player": "^2.5.0",
39
39
  "@mux/playback-core": "^0.22.1",
40
40
  "@sveltejs/adapter-auto": "^3.0.0",
41
41
  "@sveltejs/kit": "^2.0.0",