@foldkit/markdown 0.14.3-canary.c701daa80af1 → 0.14.3-canary.e1bac2b2ac98
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/README.md +5 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -116,7 +116,7 @@ markdown({ islands: islandAttributes })
|
|
|
116
116
|
```typescript
|
|
117
117
|
import { Schema } from 'effect'
|
|
118
118
|
import { Block } from 'foldkit'
|
|
119
|
-
import {
|
|
119
|
+
import { defineApplication } from 'foldkit'
|
|
120
120
|
import type { Html } from 'foldkit/html'
|
|
121
121
|
import { defineMessageUnion } from 'foldkit/message'
|
|
122
122
|
|
|
@@ -132,18 +132,15 @@ const Message = defineMessageUnion({
|
|
|
132
132
|
GotCounterMessage: { message: Counter.Message },
|
|
133
133
|
})
|
|
134
134
|
|
|
135
|
-
export const
|
|
136
|
-
Model,
|
|
137
|
-
Message,
|
|
138
|
-
})
|
|
135
|
+
export const Application = defineApplication({ Model, Message })
|
|
139
136
|
|
|
140
|
-
const CounterBinding =
|
|
137
|
+
const CounterBinding = Application.bindChild(Counter.block, {
|
|
141
138
|
field: 'counter',
|
|
142
139
|
parentMessage: Message.GotCounterMessage,
|
|
143
140
|
})
|
|
144
141
|
|
|
145
|
-
export const ApplicationComposition =
|
|
146
|
-
|
|
142
|
+
export const ApplicationComposition = Application.makeComposition({
|
|
143
|
+
childBindings: [CounterBinding],
|
|
147
144
|
})
|
|
148
145
|
type ApplicationViewBuilder = Block.ViewBuilderFor<
|
|
149
146
|
typeof ApplicationComposition
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/markdown",
|
|
3
|
-
"version": "0.14.3-canary.
|
|
3
|
+
"version": "0.14.3-canary.e1bac2b2ac98",
|
|
4
4
|
"description": "Write markdown files, get Foldkit views with live islands.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"effect": "4.0.0",
|
|
29
|
-
"foldkit": "0.168.0-canary.
|
|
29
|
+
"foldkit": "0.168.0-canary.e1bac2b2ac98",
|
|
30
30
|
"vite": "^8.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/mdast": "^4.0.4",
|
|
41
41
|
"@types/unist": "^3.0.3",
|
|
42
42
|
"effect": "4.0.0",
|
|
43
|
-
"foldkit": "0.168.0-canary.
|
|
43
|
+
"foldkit": "0.168.0-canary.e1bac2b2ac98",
|
|
44
44
|
"happy-dom": "^20.14.5",
|
|
45
45
|
"mdast-util-directive": "^3.1.0",
|
|
46
46
|
"rimraf": "^6.1.3",
|