{"_id":"@cesarechazu/directus-extension-run-flow-refresh","name":"@cesarechazu/directus-extension-run-flow-refresh","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cesarechazu/directus-extension-run-flow-refresh","version":"1.0.0","description":"Interface to run a manual flow for the current item and optionally refresh the current form, reload the page, or navigate back after completion","type":"module","license":"MIT","author":{"name":"cesar","email":"cesarechazu@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/cesarechazu/directus-extension-run-flow-refresh.git"},"bugs":{"url":"https://github.com/cesarechazu/directus-extension-run-flow-refresh/issues"},"homepage":"https://github.com/cesarechazu/directus-extension-run-flow-refresh#readme","keywords":["directus","directus-extension","directus-extension-interface","flow","manual-flow","refresh"],"directus:extension":{"type":"interface","path":"dist/index.js","source":"src/index.js","host":"^11.0.0"},"scripts":{"build":"directus-extension build","dev":"directus-extension build --watch","validate":"directus-extension validate"},"devDependencies":{"@directus/extensions-sdk":"^11.0.0","vue":"^3.3.0"},"_id":"@cesarechazu/directus-extension-run-flow-refresh@1.0.0","gitHead":"0ddcb4c91cd1c93f5beb218bbb78b06ba4e416e8","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-YgAM/h/3XFj/wstk3rDKGhbYmj7oxv37MTp6PMQduwF7wmvuAL/pU8smdnBzW5DcRqu+wm6eLYYC3fev+2a55g==","shasum":"532287d27d2fda5e8a6031c5fa6f647259f14c1a","tarball":"https://registry.npmjs.org/@cesarechazu/directus-extension-run-flow-refresh/-/directus-extension-run-flow-refresh-1.0.0.tgz","fileCount":4,"unpackedSize":16257,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDMtQUer3ShS2sm16A1LLD5cjISB/UM5+Gw0xPfFEBdQAiEAt9V7ZcoJrjevokhBRCxEi9VZVgLzKKjj7nlRnZxoNL8="}]},"_npmUser":{"name":"cesarechazu","email":"cesarechazu@gmail.com"},"directories":{},"maintainers":[{"name":"cesarechazu","email":"cesarechazu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/directus-extension-run-flow-refresh_1.0.0_1772405423955_0.18301399030972343"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-01T22:50:23.846Z","1.0.0":"2026-03-01T22:50:24.118Z","modified":"2026-03-01T22:50:24.340Z"},"maintainers":[{"name":"cesarechazu","email":"cesarechazu@gmail.com"}],"description":"Interface to run a manual flow for the current item and optionally refresh the current form, reload the page, or navigate back after completion","homepage":"https://github.com/cesarechazu/directus-extension-run-flow-refresh#readme","keywords":["directus","directus-extension","directus-extension-interface","flow","manual-flow","refresh"],"repository":{"type":"git","url":"git+https://github.com/cesarechazu/directus-extension-run-flow-refresh.git"},"author":{"name":"cesar","email":"cesarechazu@gmail.com"},"bugs":{"url":"https://github.com/cesarechazu/directus-extension-run-flow-refresh/issues"},"license":"MIT","readme":"# Run Flow + Refresh\n\nRun a Directus manual flow for the current item and optionally refresh the current form, reload the page, or navigate back when the flow finishes.\n\nThis interface is designed for alias fields and works well in collection item views where a user needs a single action button to launch a manual flow and then refresh the UI.\n\n## Interface\n\n<img src=\"https://raw.githubusercontent.com/cesarechazu/directus-extension-run-flow-refresh/main/img/interface.png\" alt=\"Run Flow + Refresh interface\" width=\"720\">\n\n## Features\n\n- Runs a manual Directus flow for the current item\n- Passes the current collection and primary key to the flow trigger\n- Optional confirmation dialog before execution\n- Optional result dialog after completion\n- Configurable refresh delay\n- Supports form refresh, page reload, back navigation, or no reload after execution\n- Works as an `alias` field, so it does not create a database column\n\n## Usage\n\nUse this interface on an `alias` field inside an item form when you want to expose a manual action button to the user.\n\nTypical flow:\n\n- The user opens an existing item.\n- The user clicks the button to trigger a Directus manual flow for that record.\n- The flow receives the current collection and primary key.\n- When the flow finishes, the interface can refresh the current form, reload the page, go back, or do nothing.\n\n## Options\n\n- `flowId`: manual flow UUID to execute\n- `buttonLabel`: visible button text\n- `buttonIcon`: Directus icon for the action button\n- `refreshType`: controls what happens after the flow finishes\n  - `form`: refresh the current item form\n  - `full`: reload the page\n  - `back`: return to the previous page, with page reload fallback when there is no useful history entry\n  - `none`: keep the current page unchanged\n- `refreshDelay`: delay in milliseconds before applying the selected refresh behavior\n- `confirmTitle`: confirmation dialog title\n- `confirmMessage`: confirmation dialog message\n- `confirmCancelLabel`: cancel button label\n- `confirmContinueLabel`: continue button label\n- `resultDialogEnabled`: show a result dialog after success\n- `resultTitle`: result dialog title\n- `resultMessage`: result dialog message\n- `resultCloseLabel`: result dialog close button label\n\n## Notes\n\n- The selected flow must use the Directus `manual` trigger type.\n- New items must be saved before the flow can run.\n- If no flow completion event is detected, the interface falls back to a delayed completion handling path.\n- `Reload Form` uses the same refresh pattern as the native Directus flow sidebar. If the form refresh context is not available, it falls back to a page reload.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-56c8f913d9a716a21d3b06658187eab5"}