@restnfeel/agentc-starter-kit
Version:
한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템
65 lines (51 loc) • 1.42 kB
JavaScript
import { __exports as ast } from '../../../../_virtual/ast.js';
import { __require as requireHtmlPaths } from '../styles/html-paths.js';
var hasRequiredAst;
function requireAst () {
if (hasRequiredAst) return ast;
hasRequiredAst = 1;
var htmlPaths = /*@__PURE__*/ requireHtmlPaths();
function nonFreshElement(tagName, attributes, children) {
return elementWithTag(
htmlPaths.element(tagName, attributes, {fresh: false}),
children);
}
function freshElement(tagName, attributes, children) {
var tag = htmlPaths.element(tagName, attributes, {fresh: true});
return elementWithTag(tag, children);
}
function elementWithTag(tag, children) {
return {
type: "element",
tag: tag,
children: children || []
};
}
function text(value) {
return {
type: "text",
value: value
};
}
var forceWrite = {
type: "forceWrite"
};
ast.freshElement = freshElement;
ast.nonFreshElement = nonFreshElement;
ast.elementWithTag = elementWithTag;
ast.text = text;
ast.forceWrite = forceWrite;
var voidTagNames = {
"br": true,
"hr": true,
"img": true,
"input": true
};
function isVoidElement(node) {
return (node.children.length === 0) && voidTagNames[node.tag.tagName];
}
ast.isVoidElement = isVoidElement;
return ast;
}
export { requireAst as __require };
//# sourceMappingURL=ast.js.map