{"name":"@aomao/plugin-redo","version":"2.8.18","main":"dist/index.js","module":"dist/index.esm.js","typings":"dist/index.d.ts","author":{"name":"me@aomao.com"},"license":"MIT","homepage":"https://github.com/yanmao-cc/am-editor#readme","repository":{"type":"git","url":"git+https://github.com/yanmao-cc/am-editor.git"},"bugs":{"url":"https://github.com/yanmao-cc/am-editor/issues"},"dependencies":{"@aomao/engine":"^2.8.18","@babel/runtime":"^7.13.10"},"gitHead":"8b6d0c8faa32f88102be44cd3f70843126cbfc09","description":"重做历史插件","_id":"@aomao/plugin-redo@2.8.18","_nodeVersion":"14.19.1","_npmVersion":"lerna/3.22.1/node@v14.19.1+x64 (win32)","dist":{"integrity":"sha512-kp8jMVFCPfJ+oRBEfzMpiioZCZS7Urb2Nv0Q5dYyzR+wPmjbYU5gDiuW+sypYtmi5p84s6x5v3F4Cjw7DNjOOw==","shasum":"d29c6c50996096a1b303e90364f7acda32bef20e","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-redo/download/@aomao/plugin-redo-2.8.18.tgz","fileCount":7,"unpackedSize":8478,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGA2qvM0LH24daW9j66NTb9Q7r2/+PLOnkcyYLtZZ6l7AiAW55FJVroROBD6zxllQ236jLSGwUOsjLRIgZvCVdod9g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWO3gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqX/Q/+L7Yy+LQZK+b/VMQJvIzpm01mji7fv9M16DIgm5PPn8NXsWFB\r\newB0C7r2es8HOAfL39L4Vsuy+p7oGUKcJRTG8zAbyc7CxQQaqUyK398h601g\r\nXgUBSuG7yi/0dhlVSvql01Ygj0QjLgjOlb0mD0tgcOOq6wKrQhzvGFiKgXso\r\nf/WtLRGZtGA4BfPTJ2geZHhZ+F/62wkl4d9dVBgoK9c79Tji1T3mO6o9Wd+t\r\nBbMqsVOe+RR1rZSDUhV7502bAhImyhEYYGXD8ViWMNZZWG2cMuAoAR6vwiRw\r\nWztKdcNGHRg5J1NlL+PtU2+5THF9AaTCKV1hroTmuOiIGHl6iJKhI4ufqA/S\r\nImH6Ou4nj9DUIEiMNdQhw+qDSIJsyhOx5Y41PSG0O/HZ+xdO6UIgJY/0gVGx\r\nNamjOEtURvCipW7W3ma3QILFwYR+wNn3/PTWIBDEGVxD9xl891j60oLTJ9Ql\r\nEMJ9aTkJ3EH5nnD6RxDJ5ZFLwKSExhv05CKeO4qEL+59U6EoIJ+oTYV7LvY/\r\nonmsT0MhDzpwRM5yl8WaZyu5dD3IWo2OfH5VlSfEOd3UCMdJSReFfpDJSoF8\r\nV0xmXoYGihjTwnscPMhvdXBF/Qsrpw7BxD7YnVLK3TTGI8wm0jKmCD8hYT/T\r\n0/tRe5HpMZl4zfGgryHEX7UNXvOBjldkVm4=\r\n=1QKA\r\n-----END PGP SIGNATURE-----\r\n","size":3232,"noattachment":false,"key":"/@aomao/plugin-redo/-/@aomao/plugin-redo-2.8.18.tgz"},"_npmUser":{"name":"aomao","email":"me@aomao.com"},"directories":{},"maintainers":[{"name":"aomao","email":"me@aomao.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-redo_2.8.18_1649995232266_0.1543176857812838"},"_hasShrinkwrap":false,"readme":"# @aomao/plugin-redo\n\n重做历史插件\n\n## 安装\n\n```bash\n$ yarn add @aomao/plugin-redo\n```\n\n添加到引擎\n\n```ts\nimport Engine, { EngineInterface } from '@aomao/engine';\nimport Redo from '@aomao/plugin-redo';\n\nnew Engine(...,{ plugins:[Redo] })\n```\n\n## 可选项\n\n### 快捷键\n\n默认快捷键为 `mod+y` `shift+mod+y`\n\n```ts\n//快捷键\nhotkey?: string | Array<string>;\n//使用配置\nnew Engine(...,{\n    config:{\n        \"redo\":{\n            //修改快捷键\n            hotkey:\"快捷键\"\n        }\n    }\n })\n```\n\n## 命令\n\n```ts\n//使用 command 执行插件、并传入所需参数\nengine.command.execute('redo');\n//使用 command 执行查询当前状态，返回 boolean | undefined\nengine.command.queryState('redo');\n```\n","publish_time":1649995232418,"_cnpm_publish_time":1649995232418,"dist-tags":{"latest":"2.10.0"}}