sepehr 8d95f34fcc fix: Add debounced Undo/Redo system to avoid character-by-character history
- Add debounced state updates for title and content (500ms delay)
- Immediate UI updates with delayed history saving
- Prevent one-letter-per-undo issue
- Add cleanup for debounce timers on unmount
2026-01-04 14:28:11 +01:00

42 lines
2.0 KiB
JavaScript

"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var download_exports = {};
__export(download_exports, {
download: () => import_chunk_2BCLJS3M.download,
getBinaryName: () => import_chunk_2BCLJS3M.getBinaryName,
getVersion: () => import_chunk_2BCLJS3M.getVersion,
maybeCopyToTmp: () => import_chunk_2BCLJS3M.maybeCopyToTmp,
plusX: () => import_chunk_2BCLJS3M.plusX,
vercelPkgPathRegex: () => import_chunk_2BCLJS3M.vercelPkgPathRegex
});
module.exports = __toCommonJS(download_exports);
var import_chunk_2BCLJS3M = require("./chunk-2BCLJS3M.js");
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js");
var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js");
var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js");
var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");