summaryrefslogtreecommitdiff
path: root/src/jet/action-handlers/browser.ts
diff options
context:
space:
mode:
authorrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
committerrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
commitbce557cc2dc767628bed6aac87301a1be7c5431b (patch)
treeb51a051228d01fe3306cd7626d4a96768aadb944 /src/jet/action-handlers/browser.ts
init commit
Diffstat (limited to 'src/jet/action-handlers/browser.ts')
-rw-r--r--src/jet/action-handlers/browser.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/jet/action-handlers/browser.ts b/src/jet/action-handlers/browser.ts
new file mode 100644
index 0000000..08d1a5a
--- /dev/null
+++ b/src/jet/action-handlers/browser.ts
@@ -0,0 +1,16 @@
+// Browser ONLY logic. Must have the same exports as server.ts
+// See: docs/isomorphic-imports.md
+
+import type { Dependencies } from './types';
+
+import { registerHandler as registerFlowActionHandler } from '~/jet/action-handlers/flow-action';
+import { registerHandler as registerExternalURLActionHandler } from '~/jet/action-handlers/external-url-action';
+import { registerHandler as registerCompoundActionHandler } from '~/jet/action-handlers/compound-action';
+
+export type { Dependencies };
+
+export function registerActionHandlers(dependencies: Dependencies) {
+ registerCompoundActionHandler(dependencies);
+ registerFlowActionHandler(dependencies);
+ registerExternalURLActionHandler(dependencies);
+}