{"name":"@aomao/plugin-redo","version":"2.3.7","main":"dist/index.ts","module":"dist/index.esm.js","typings":"dist/index.d.ts","author":{"name":"me@yanmao.cc"},"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.3.7","@babel/runtime":"^7.13.10"},"gitHead":"72fe0ef2674b3aefdfda174475666bc5bd92a0c4","description":"重做历史插件","_id":"@aomao/plugin-redo@2.3.7","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-swNRgwJFkeWwzGKKlJJxEVRpuVuv2u7Jpt6ss2qoc+JzDv3F9saXcmgzod+xOCBpVVwegmw23/OvtYP26XiATw==","shasum":"27359fd4c78dc8d93e22199662de49ef3739b50a","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-redo/download/@aomao/plugin-redo-2.3.7.tgz","fileCount":7,"unpackedSize":8336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCDndCRA9TVsSAnZWagAAHWYP/0rI4fFOjS0s6/Lpl+ib\nG8GUPdbhRS9XLcuil40o+hscGkUnb+THsYOD8DjoFjJiJ9ER6gTzfy+altnw\nzXdFW/1R56Rj7jMEFmVV9Ceod1lqP2NZYvx2fUgjuVZ2yCA/nDo1MbCDZeXl\nufNxx19YNMoZQNqyA6GM1hVBShLBAmKdtmxgq4XVGWiV4+FZ5Gj/c33kWrbZ\nTrujtqhQahmK8zVI0qvA0jKOCPBZsY0mDQ32kkFGITzKix/UhXjZQah0jUDs\nfjyNHjySfflW26DPVJ0ut4oMtkuzAREKhLUCa8u4UWTt4H9FVTl/zL2Bq9lM\nj337WGO787N+lscXPTXXQKST8qgfJMxgpk8oXB+ZbYH4vGIOHBuy1O6ePldw\nRAtU0MCPoRdelz9f4naUX8ykjlGS64LE20XFfjcER7BiReFsdsDYMmPYHKiZ\nDIbBP+JzBY+ATxIJhsDxTI0LWKLD54lqNbNJOKaNc3r9tHpZvdhuoS6lteur\nrJrCUKl/stWNAmgbSQYTkY0vI5Ijp/QgYHFpiSrOh+lUzW/iKvSR9eQmOIC/\nw0fhS+EYJXTlxfEVKr550FG9x/3xdNd5GCY7e7CQuOhRYlJlg9N4qnkJr5Rb\nESlzy26l1fEMsMibJpafF1YLybWC9fDC1nhfwSwQBjXXH6slkD2YnMe7mCX1\nHkS8\r\n=mQIT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDOa2LGA2Z3lXqbBqxClHguiMAzy93m1iy+6nmSqcsNVAiEA9v3TZC8ac2iT1M7wR/SPQr5iwzuUOfN++fqwlKpP4rM="}],"size":3196,"noattachment":false,"key":"/@aomao/plugin-redo/-/@aomao/plugin-redo-2.3.7.tgz"},"_npmUser":{"name":"aomao","email":"me@yanmao.cc"},"directories":{},"maintainers":[{"name":"aomao","email":"me@yanmao.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-redo_2.3.7_1627929053573_0.6742249269208695"},"_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":1627929053759,"_cnpm_publish_time":1627929053759,"dist-tags":{"latest":"2.10.0"}}