UNPKG

on-codemerge

Version:

A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product

3 lines (2 loc) 925 B
/*! on-codemerge v1.3.1 @author Pavel Kuzmin @license MIT @homepage https://s00d.github.io/on-codemerge/ @repository git+https://github.com/s00d/on-codemerge.git Copyright (c) 2026 Pavel Kuzmin - Built on 2026-07-02T13:39:17.947Z */ "use strict";var r=Object.defineProperty;var s=(t,o,p)=>o in t?r(t,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):t[o]=p;var e=(t,o,p)=>s(t,typeof o!="symbol"?o+"":o,p);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../core/ui/PopupManager.cjs");class u{constructor(o){e(this,"popup");this.popup=new i.PopupManager(o,{title:o.t("Error"),className:"error-modal",closeOnClickOutside:!0,buttons:[{label:"OK",variant:"primary",onClick:()=>this.popup.hide()}]})}show(o){const p=[{type:"text",id:"error-message",value:o}];this.popup.setItems(p),this.popup.show()}destroy(){this.popup&&(this.popup.destroy(),this.popup=null)}}exports.ErrorModal=u;