Skip to content

Commit

Permalink
fix: components' metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Dec 5, 2023
1 parent 521e17f commit a8642bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
14 changes: 11 additions & 3 deletions packages/runtime/src/components/list.r.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
import { Content, Context, OutputComponent, byIndex, bySelf } from "refina";
import QuasiRuntime from "../plugin";
import { component, content, input, output, textProp } from "../types";
import {
Direction,
component,
content,
input,
output,
textProp,
} from "../types";

export default component({
displayName: () => "List",
model: "ListModel",
contents: {
inner: content("inner"),
inner: content("inner", undefined, Direction.BOTTOM),
},
inputs: {
data: input("data"),
},
outputs: {
current: output("current"),
current: output("current", undefined, Direction.RIGHT),
},
props: {
class: textProp("class"),
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/components/span.r.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { component, content, textProp } from "../types";
export default component({
displayName: () => "Span",
contents: {
inner: content("inner"),
inner: content("inner", "as-primary-and-socket"),
},
props: {
class: textProp("class"),
Expand Down
6 changes: 3 additions & 3 deletions packages/runtime/src/components/textNode.r.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Context, OutputComponent } from "refina";
import QuasiRuntime from "../plugin";
import { component, content } from "../types";
import { component, content, input } from "../types";

export default component({
displayName: () => "Text",
contents: {
text: content("text"),
inputs: {
text: input("text", "as-primary-and-socket"),
},
});

Expand Down

0 comments on commit a8642bc

Please sign in to comment.