package.dist.chunks.mermaid.esm.chunk-5PULXXUT.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mermaid Show documentation
Show all versions of mermaid Show documentation
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
The newest version!
import {
AbstractMermaidTokenBuilder,
CommonValueConverter,
EmptyFileSystem,
InfoGeneratedModule,
MermaidGeneratedSharedModule,
__name as __name2,
createDefaultCoreModule,
createDefaultSharedCoreModule,
inject,
lib_exports
} from "./chunk-46UCTVYF.mjs";
import {
__name
} from "./chunk-DLQEHMXD.mjs";
// ../parser/dist/chunks/mermaid-parser.core/chunk-4YFB5VUC.mjs
var InfoTokenBuilder = class extends AbstractMermaidTokenBuilder {
static {
__name(this, "InfoTokenBuilder");
}
static {
__name2(this, "InfoTokenBuilder");
}
constructor() {
super(["info", "showInfo"]);
}
};
var InfoModule = {
parser: {
TokenBuilder: /* @__PURE__ */ __name2(() => new InfoTokenBuilder(), "TokenBuilder"),
ValueConverter: /* @__PURE__ */ __name2(() => new CommonValueConverter(), "ValueConverter")
}
};
function createInfoServices(context = EmptyFileSystem) {
const shared = inject(
createDefaultSharedCoreModule(context),
MermaidGeneratedSharedModule
);
const Info = inject(
createDefaultCoreModule({ shared }),
InfoGeneratedModule,
InfoModule
);
shared.ServiceRegistry.register(Info);
return { shared, Info };
}
__name(createInfoServices, "createInfoServices");
__name2(createInfoServices, "createInfoServices");
export {
InfoModule,
createInfoServices
};