{"_id":"@acepad/widget","name":"@acepad/widget","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"main":"acepad-widget.js","name":"@acepad/widget","type":"module","version":"1.0.0","dependencies":{"@hoge1e3/is-plain-object":"^1.0.0","@hoge1e3/events":"^1.0.0","@hoge1e3/dom-bind":"^1.0.0","@acepad/here":"^1.0.0","@acepad/browser":"^1.0.0","@acepad/menu":"^1.0.0","@hoge1e3/dom-updater":"^1.0.1","@acepad/overlay":"^1.0.0","@acepad/css":"^1.0.0"},"devDependencies":{"@hoge1e3/dom":"^1.0.0"},"types":"types.d.ts","repository":{"type":"git","url":"git+https://github.com/acepad/acepad-widget.git"},"description":"A widget system for embedding iframes and UI components into Acepad editors.","license":"MIT","author":{"name":"Acepad Contributors"},"keywords":["acepad","widget","iframe","editor","UI","overlay"],"gitHead":"f1671c02f81f4c0d5e81980e1e47a86597b31630","_id":"@acepad/widget@1.0.0","bugs":{"url":"https://github.com/acepad/acepad-widget/issues"},"homepage":"https://github.com/acepad/acepad-widget#readme","_nodeVersion":"22.17.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-JSX2Fo8pmk65TVuQmzbm0sEf47kmYP8TXsOmrow4kSD2XvIlG5ormgCILZ+gljq3MeK0LVbtHEfRVZNWX4Pgtg==","shasum":"27919b4cec502f60f03e71a63d097b9ba97b494d","tarball":"https://registry.npmjs.org/@acepad/widget/-/widget-1.0.0.tgz","fileCount":7,"unpackedSize":9840,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIELGNRL1Zh/RWEuZGIc/FKuwMYJkBZjGV1M9QyIiqRFgAiEAwLT1GLJhTrFQaVIQJuTolHTSNz/Bj1oF7djRzUBLhUg="}]},"_npmUser":{"name":"acepad","email":"pnode.acepad@gmail.com"},"directories":{},"maintainers":[{"name":"acepad","email":"pnode.acepad@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/widget_1.0.0_1769149405029_0.36228962183213187"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-23T06:23:24.916Z","1.0.0":"2026-01-23T06:23:25.180Z","modified":"2026-01-23T06:23:25.356Z"},"maintainers":[{"name":"acepad","email":"pnode.acepad@gmail.com"}],"description":"A widget system for embedding iframes and UI components into Acepad editors.","homepage":"https://github.com/acepad/acepad-widget#readme","keywords":["acepad","widget","iframe","editor","UI","overlay"],"repository":{"type":"git","url":"git+https://github.com/acepad/acepad-widget.git"},"author":{"name":"Acepad Contributors"},"bugs":{"url":"https://github.com/acepad/acepad-widget/issues"},"license":"MIT","readme":"NOTE: This package is supporsed to work in [acepad](https://github.com/hoge1e3/acepad-dev), not a regular node envronment.\n\n# @acepad/widget\n\nA widget(GUI) system for the Acepad editor that supports rendering iframes, overlay components, and dynamically interactive UI blocks inside the editor layout.\n\n## functions \n\n- showIframe(url_or_file)\n   - shows url or file(in html) as a widget. \n- show(dom, options)\n   - Shows widget\n   - `dom`: optional. Element to be used as the widget.\n   - `options`:\n      - `width`: Specify width in percent(100 for full width), default is 100.\n      - `buttons`: Configure buttons on title bar.\n         - Array of `{command: , caption: }` where `command` is either \"close\", \"minify\" or custom function\n      - `noMenu`: do not show minified icon.\n      - `fullscreen`: Set true and show over screen keyboard\n      - `overlay`: Set true and enable auto overlay editor for each `<input>` or `<textarea>` elements in the widget. Overlay editor allows input via acepad screen keyboard. \n   - returns\n      - `element` The element used as this widget \n      - `close` Close the widget\n      - `minify` Minify the widget\n      - `print(dom)` Put `dom` element into the widget. If the element of same id exists. The element is 'overwritten' by preserving original DOM tree and events as possible. See `examples/print.js` \n- See `types.d.ts` for full TypeScript definitions.\n\n## Features\n- Embed iframe panels with custom URLs and live content\n- Minimize, close, and manage widgets from the toolbar\n- Dynamic DOM updating and data binding via `.print`\n- Optional overlay activation for Smartphone input.\n\n\n## License\nMIT\n\n## Repository\nhttps://github.com/hoge1e3/acepad-dev/","readmeFilename":"README.md","_rev":"1-b2b20b3b4342efcfbf110670f27d1264"}