@prismicio/svelte 1.2.0 → 1.3.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.
@@ -18,9 +18,7 @@ $:
18
18
 
19
19
  @example Rendering a Link field:
20
20
  ```svelte
21
- <PrismicLink field={document.data.example_link}>
22
- Example anchor text.
23
- </PrismicLink>
21
+ <PrismicLink field={document.data.example_link} />
24
22
  ```
25
23
  -->
26
24
 
@@ -31,5 +29,5 @@ $:
31
29
  on:click
32
30
  {...$$restProps}
33
31
  >
34
- <slot />
32
+ <slot>{field?.text}</slot>
35
33
  </a>
@@ -40,9 +40,7 @@ export type PrismicLinkSlots = typeof __propDef.slots;
40
40
  *
41
41
  * @example Rendering a Link field:
42
42
  * ```svelte
43
- * <PrismicLink field={document.data.example_link}>
44
- * Example anchor text.
45
- * </PrismicLink>
43
+ * <PrismicLink field={document.data.example_link} />
46
44
  * ```
47
45
  */
48
46
  export default class PrismicLink extends SvelteComponent<PrismicLinkProps, PrismicLinkEvents, PrismicLinkSlots> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/svelte",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Svelte components to present Prismic content.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -65,8 +65,8 @@
65
65
  "esm-env": "^1.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@prismicio/client": "^7.4.0",
69
- "@prismicio/mock": "^0.3.1",
68
+ "@prismicio/client": "^7.11.0",
69
+ "@prismicio/mock": "^0.4.0",
70
70
  "@size-limit/preset-small-lib": "^11.0.1",
71
71
  "@sveltejs/kit": "^2.0.0",
72
72
  "@sveltejs/package": "^2.2.3",
@@ -49,9 +49,7 @@
49
49
 
50
50
  @example Rendering a Link field:
51
51
  ```svelte
52
- <PrismicLink field={document.data.example_link}>
53
- Example anchor text.
54
- </PrismicLink>
52
+ <PrismicLink field={document.data.example_link} />
55
53
  ```
56
54
  -->
57
55
 
@@ -62,5 +60,5 @@
62
60
  on:click
63
61
  {...$$restProps}
64
62
  >
65
- <slot />
63
+ <slot>{field?.text}</slot>
66
64
  </a>