{"name":"@aomao/plugin-redo","version":"2.7.9","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.7.9","@babel/runtime":"^7.13.10"},"gitHead":"91ec0f709130b4a04037c329bfc5766d1a92b65e","description":"重做历史插件","_id":"@aomao/plugin-redo@2.7.9","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (win32)","dist":{"integrity":"sha512-MhF8D6xbWDgLVCHJqns/dMtJoKnov/5K8BqtE47vG0uKdJOPX/8Xx5dw1LkffEHiEG8W/s4UEjuNbPKGYZL0XA==","shasum":"c81807c0ae798d329b5ff527b61fa9914734a638","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-redo/download/@aomao/plugin-redo-2.7.9.tgz","fileCount":7,"unpackedSize":8476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1pC4CRA9TVsSAnZWagAACv8P/iHOR8mhA/XJAZ3uQ9uc\nI9KXWU1zM/zliNqp0mZZ+cqMvlDSPcJIFqPrPuNfTeq99ZsibWIKaxdBOkRj\nN5e+Ruvu8EGvS1W81fttAvnST0rndLL8bHhUeyxHCM8rlLMAi3OIRNrKiQtr\nuoqEcV4OqrB0WMan1vBNeq+y4FIJyUOI3qCsroxQzn3750EudNaf+A6SsiUG\nhQ6028n3/+4glLp4jYCKFp3GRVsD0d8KtGFhYiI/Xs8vApugswqgItXsWDBO\nUyfEY013eoFCXPNMf4H7JmSyXaZZQMZOwWCVc0LvlhemXdj78ENtHAuLQc95\nTzdrB0jF/o4LZZdsnqkNgQtC7nenPTZo54gA2tXhzlTS/gUoPLvpiFOr+QDS\nk3qKeNEPNZv6ZbeXRiHtsivWvh6swtlzT3wzR90XecFc7tZhe4gTQ+xsc382\nSf5vBp2oTAThHB5+vShYDlOabM9LU2ibgSjis8pQOw6LGGx5dgva6mHq8wRu\n30tds0GNRBjnub/6lUI4SzgkZdOHwtGCTlv3AUjEWsJAEGALm+MzW3DR8tdM\nq7dxJXxtvwbirGEJIFoYNHVjxVHHI/yOc7xJglP0PU5gOl4+kVpqmZK0ndu+\nEQLBqV7JnV78l8vk7W/YDViZiqTDdoqphR+qYIbIBc7SkWyaXF5A/HJf7Vad\nRzn0\r\n=gBU/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDD6fgrA3DWFUcT5p8Cu3x4btGRJECGVdB8B2U3KSyFZgIgT27MfBLaGTHI5Tv+Y45U4grezy02jjgTdiF2F6CZ6B0="}],"size":3231,"noattachment":false,"key":"/@aomao/plugin-redo/-/@aomao/plugin-redo-2.7.9.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.7.9_1641451704240_0.5729353493598113"},"_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":1641451704386,"_cnpm_publish_time":1641451704386,"dist-tags":{"latest":"2.10.0"}}