@prismicio/svelte 2.1.0 → 2.1.1

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.
@@ -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 { type ImageFieldImage, asImagePixelDensitySrcSet, asImageWidthSrcSet } from "@prismicio/client";
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"> & {
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
- import {
3
- type AsLinkAttrsConfig,
4
- type LinkField,
5
- type PrismicDocument,
6
- asLinkAttrs,
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 { type AsLinkAttrsConfig, type LinkField, type PrismicDocument } from "@prismicio/client";
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
  /**
@@ -1,17 +1,17 @@
1
1
  <script lang="ts">
2
- import {
3
- type TableField,
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 { type Component } from "svelte";
11
+ import { isFilled } from "@prismicio/client";
12
+ import type { Component } from "svelte";
13
13
 
14
- import { type RichTextComponents, type TableComponents } from "./types";
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 { type TableField } from "@prismicio/client";
2
- import { type Component } from "svelte";
3
- import { type RichTextComponents, type TableComponents } from "./types";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/svelte",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Svelte components to present Prismic content.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -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,9 +1,9 @@
1
1
  <script lang="ts">
2
- import {
3
- type AsLinkAttrsConfig,
4
- type LinkField,
5
- type PrismicDocument,
6
- asLinkAttrs,
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,17 +1,17 @@
1
1
  <script lang="ts">
2
- import {
3
- type TableField,
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 { type Component } from "svelte";
11
+ import { isFilled } from "@prismicio/client";
12
+ import type { Component } from "svelte";
13
13
 
14
- import { type RichTextComponents, type TableComponents } from "./types";
14
+ import type { RichTextComponents, TableComponents } from "./types";
15
15
 
16
16
  import PrismicRichText from "./PrismicRichText/PrismicRichText.svelte";
17
17