persona-community-5/.pnpm-store/v3/files/89/2f4c3aee2d77628aae20da1e1d335b2be4acc96ab024c043a2254a39d983948a0ab28ba9fc13895336e34b440f9ed6eb76e26c68cfe408f8e8e7b44b66ad52
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

41 lines
814 B
Plaintext

import { type NodeType, listOf } from '.';
const Root: NodeType = {
properties: {
overlay: { type: 'string' },
info: 'Info',
extends: { type: 'string' },
actions: 'Actions',
},
required: ['overlay', 'info', 'actions'],
extensionsPrefix: 'x-',
};
const Info: NodeType = {
properties: {
title: { type: 'string' },
version: { type: 'string' },
},
required: ['title', 'version'],
extensionsPrefix: 'x-',
};
const Actions: NodeType = listOf('Action');
const Action: NodeType = {
properties: {
target: { type: 'string' },
description: { type: 'string' },
update: {}, // any
remove: { type: 'boolean' },
},
required: ['target'],
extensionsPrefix: 'x-',
};
export const Overlay1Types: Record<string, NodeType> = {
Root,
Info,
Actions,
Action,
};