@prismicio/svelte 0.0.10 → 0.0.11

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.
@@ -6,8 +6,10 @@ import Serialize from "./Serialize.svelte";
6
6
  export let field = [];
7
7
  export let linkResolver = void 0;
8
8
  export let components = void 0;
9
- let resolvedSerializer = typeof components === "object" ? wrapMapSerializer(components) : components;
10
- const nodes = asTree(field).children;
9
+ $:
10
+ resolvedSerializer = typeof components === "object" ? wrapMapSerializer(components) : components;
11
+ $:
12
+ nodes = asTree(field).children;
11
13
  </script>
12
14
 
13
15
  <!--
@@ -48,10 +48,10 @@
48
48
  | RichTextFunctionSerializer<typeof SvelteComponent, TreeNode>
49
49
  | undefined = undefined;
50
50
 
51
- let resolvedSerializer =
51
+ $: resolvedSerializer =
52
52
  typeof components === "object" ? wrapMapSerializer(components) : components;
53
53
 
54
- const nodes = asTree(field).children;
54
+ $: nodes = asTree(field).children;
55
55
  </script>
56
56
 
57
57
  <!--
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/svelte",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Svelte plugin, components, and composables to fetch and present Prismic content",
5
5
  "keywords": [
6
6
  "typescript",