@prismicio/svelte 2.1.0 → 2.1.1-canary.44ce7f0
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/dist/PrismicImage.svelte +1 -1
- package/dist/PrismicImage.svelte.d.ts +2 -1
- package/dist/PrismicLink.svelte +5 -5
- package/dist/PrismicLink.svelte.d.ts +1 -1
- package/dist/PrismicTable.svelte +5 -5
- package/dist/PrismicTable.svelte.d.ts +3 -3
- package/package.json +1 -1
- package/src/PrismicImage.svelte +1 -1
- package/src/PrismicLink.svelte +5 -5
- package/src/PrismicTable.svelte +5 -5
package/dist/PrismicImage.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import {
|
|
3
|
-
type ImageFieldImage,
|
|
4
3
|
asImagePixelDensitySrcSet,
|
|
5
4
|
asImageWidthSrcSet,
|
|
6
5
|
isFilled,
|
|
7
6
|
} from "@prismicio/client";
|
|
7
|
+
import type { ImageFieldImage } from "@prismicio/client";
|
|
8
8
|
import type { ImgixURLParams } from "imgix-url-builder";
|
|
9
9
|
import type { HTMLImgAttributes } from "svelte/elements";
|
|
10
10
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { asImagePixelDensitySrcSet, asImageWidthSrcSet } from "@prismicio/client";
|
|
2
|
+
import type { ImageFieldImage } from "@prismicio/client";
|
|
2
3
|
import type { ImgixURLParams } from "imgix-url-builder";
|
|
3
4
|
import type { HTMLImgAttributes } from "svelte/elements";
|
|
4
5
|
type Props = Omit<HTMLImgAttributes, "src" | "srcset" | "alt"> & {
|
package/dist/PrismicLink.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { asLinkAttrs } from "@prismicio/client";
|
|
3
|
+
import type {
|
|
4
|
+
AsLinkAttrsConfig,
|
|
5
|
+
LinkField,
|
|
6
|
+
PrismicDocument,
|
|
7
7
|
} from "@prismicio/client";
|
|
8
8
|
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AsLinkAttrsConfig, LinkField, PrismicDocument } from "@prismicio/client";
|
|
2
2
|
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
3
3
|
type Props = Omit<HTMLAnchorAttributes, "rel" | "href"> & {
|
|
4
4
|
/**
|
package/dist/PrismicTable.svelte
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import type {
|
|
3
|
+
TableField,
|
|
4
4
|
TableFieldBody,
|
|
5
5
|
TableFieldBodyRow,
|
|
6
6
|
TableFieldDataCell,
|
|
7
7
|
TableFieldHead,
|
|
8
8
|
TableFieldHeadRow,
|
|
9
9
|
TableFieldHeaderCell,
|
|
10
|
-
isFilled,
|
|
11
10
|
} from "@prismicio/client";
|
|
12
|
-
import {
|
|
11
|
+
import { isFilled } from "@prismicio/client";
|
|
12
|
+
import type { Component } from "svelte";
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import type { RichTextComponents, TableComponents } from "./types";
|
|
15
15
|
|
|
16
16
|
import PrismicRichText from "./PrismicRichText/PrismicRichText.svelte";
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { TableField } from "@prismicio/client";
|
|
2
|
+
import type { Component } from "svelte";
|
|
3
|
+
import type { RichTextComponents, TableComponents } from "./types";
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
6
|
* The Prismic table field to render.
|
package/package.json
CHANGED
package/src/PrismicImage.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import {
|
|
3
|
-
type ImageFieldImage,
|
|
4
3
|
asImagePixelDensitySrcSet,
|
|
5
4
|
asImageWidthSrcSet,
|
|
6
5
|
isFilled,
|
|
7
6
|
} from "@prismicio/client";
|
|
7
|
+
import type { ImageFieldImage } from "@prismicio/client";
|
|
8
8
|
import type { ImgixURLParams } from "imgix-url-builder";
|
|
9
9
|
import type { HTMLImgAttributes } from "svelte/elements";
|
|
10
10
|
|
package/src/PrismicLink.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { asLinkAttrs } from "@prismicio/client";
|
|
3
|
+
import type {
|
|
4
|
+
AsLinkAttrsConfig,
|
|
5
|
+
LinkField,
|
|
6
|
+
PrismicDocument,
|
|
7
7
|
} from "@prismicio/client";
|
|
8
8
|
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
9
9
|
|
package/src/PrismicTable.svelte
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import type {
|
|
3
|
+
TableField,
|
|
4
4
|
TableFieldBody,
|
|
5
5
|
TableFieldBodyRow,
|
|
6
6
|
TableFieldDataCell,
|
|
7
7
|
TableFieldHead,
|
|
8
8
|
TableFieldHeadRow,
|
|
9
9
|
TableFieldHeaderCell,
|
|
10
|
-
isFilled,
|
|
11
10
|
} from "@prismicio/client";
|
|
12
|
-
import {
|
|
11
|
+
import { isFilled } from "@prismicio/client";
|
|
12
|
+
import type { Component } from "svelte";
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import type { RichTextComponents, TableComponents } from "./types";
|
|
15
15
|
|
|
16
16
|
import PrismicRichText from "./PrismicRichText/PrismicRichText.svelte";
|
|
17
17
|
|