@webjsdev/core 0.7.46 → 0.7.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ /** Form actions (#1155): `<form action=${importedAction}>` and its wire. */
2
+
3
+ /** The hidden field carrying a bound action's identity into the submission. */
4
+ export const FORM_ACTION_FIELD: '__webjs_action';
5
+
6
+ /** The property a generated client RPC stub carries its own identity on. */
7
+ export const FORM_ACTION_ID_KEY: '$$webjsAction';
8
+
9
+ /**
10
+ * Server-only wiring: maps a REAL server-action function back to its
11
+ * `<hash>/<fn>` identity. `@webjsdev/server` installs it at boot; the browser
12
+ * bundle drops it, because a stub carries its identity on itself.
13
+ */
14
+ export function setFormActionResolver(
15
+ fn: (fn: Function) => string | null | Promise<string | null>,
16
+ ): void;