@refrakt-md/svelte 0.7.2 → 0.8.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.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@refrakt-md/svelte",
3
3
  "description": "Svelte renderer for refrakt.md content",
4
- "version": "0.7.2",
4
+ "version": "0.8.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,9 +27,9 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@markdoc/markdoc": "0.4.0",
30
- "@refrakt-md/behaviors": "0.7.2",
31
- "@refrakt-md/transform": "0.7.2",
32
- "@refrakt-md/types": "0.7.2"
30
+ "@refrakt-md/behaviors": "0.8.0",
31
+ "@refrakt-md/transform": "0.8.0",
32
+ "@refrakt-md/types": "0.8.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "svelte": "^5.0.0"
@@ -60,7 +60,7 @@
60
60
  {:else if typeof node === 'number'}
61
61
  {String(node)}
62
62
  {:else if isTag(node)}
63
- {@const Component = node.attributes?.typeof ? getComponent(node.attributes.typeof) : undefined}
63
+ {@const Component = node.attributes?.['data-rune'] ? getComponent(node.attributes['data-rune']) : undefined}
64
64
  {@const ElementOverride = !Component && merged?.[node.name] ? merged[node.name] : undefined}
65
65
  {#if Component}
66
66
  <Component tag={node}>