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

31 lines
1.4 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 downloadZip_exports = {};
__export(downloadZip_exports, {
downloadZip: () => import_chunk_QLWYUM7O.downloadZip
});
module.exports = __toCommonJS(downloadZip_exports);
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_X37PZICB = require("./chunk-X37PZICB.js");
var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js");
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");