@datocms/svelte 3.0.5 → 4.0.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.
- package/package/components/Head/Head.svelte.d.ts +2 -2
- package/package/components/Image/Image.svelte.d.ts +2 -2
- package/package/components/NakedImage/NakedImage.svelte.d.ts +2 -2
- package/package/components/StructuredText/Node.svelte.d.ts +2 -2
- package/package/components/StructuredText/README.md +1 -0
- package/package/components/StructuredText/StructuredText.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/Blockquote.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/Code.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/Heading.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/Link.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/List.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/ListItem.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/Paragraph.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/Root.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/Span.svelte.d.ts +2 -2
- package/package/components/StructuredText/nodes/ThematicBreak.svelte.d.ts +2 -2
- package/package/components/StructuredText/utils/Lines.svelte.d.ts +2 -2
- package/package/components/VideoPlayer/VideoPlayer.svelte.d.ts +2 -2
- package/package/index.d.ts +1 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
59
|
+
export default class Head extends SvelteComponent<HeadProps, HeadEvents, HeadSlots> {
|
|
60
60
|
}
|
|
61
61
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
59
|
+
export default class Image extends SvelteComponent<ImageProps, ImageEvents, ImageSlots> {
|
|
60
60
|
}
|
|
61
61
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
39
|
+
export default class NakedImage extends SvelteComponent<NakedImageProps, NakedImageEvents, NakedImageSlots> {
|
|
40
40
|
}
|
|
41
41
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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 {
|
|
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
|
|
17
|
+
export default class StructuredText extends SvelteComponent<StructuredTextProps, StructuredTextEvents, StructuredTextSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
17
|
+
export default class Blockquote extends SvelteComponent<BlockquoteProps, BlockquoteEvents, BlockquoteSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
15
|
+
export default class Code extends SvelteComponent<CodeProps, CodeEvents, CodeSlots> {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
17
|
+
export default class Heading extends SvelteComponent<HeadingProps, HeadingEvents, HeadingSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
17
|
+
export default class Link extends SvelteComponent<LinkProps, LinkEvents, LinkSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
17
|
+
export default class List extends SvelteComponent<ListProps, ListEvents, ListSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
17
|
+
export default class ListItem extends SvelteComponent<ListItemProps, ListItemEvents, ListItemSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
17
|
+
export default class Paragraph extends SvelteComponent<ParagraphProps, ParagraphEvents, ParagraphSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
17
|
+
export default class Root extends SvelteComponent<RootProps, RootEvents, RootSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
17
|
+
export default class Span extends SvelteComponent<SpanProps, SpanEvents, SpanSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
15
|
+
export default class ThematicBreak extends SvelteComponent<ThematicBreakProps, ThematicBreakEvents, ThematicBreakSlots> {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
14
|
+
export default class Lines extends SvelteComponent<LinesProps, LinesEvents, LinesSlots> {
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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];
|
|
@@ -130,5 +130,5 @@ type VideoPlayerProps_ = typeof __propDef.props;
|
|
|
130
130
|
export { VideoPlayerProps_ as VideoPlayerProps };
|
|
131
131
|
export type VideoPlayerEvents = typeof __propDef.events;
|
|
132
132
|
export type VideoPlayerSlots = typeof __propDef.slots;
|
|
133
|
-
export default class VideoPlayer extends
|
|
133
|
+
export default class VideoPlayer extends SvelteComponent<VideoPlayerProps_, VideoPlayerEvents, VideoPlayerSlots> {
|
|
134
134
|
}
|
package/package/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
11
|
+
any
|
|
13
12
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/svelte",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.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": "^
|
|
30
|
+
"svelte": "^4.0.0 || ^5.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependenciesMeta": {
|
|
33
33
|
"@mux/mux-player": {
|