@webamoki/web-svelte 0.5.0 → 0.5.1

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.
@@ -19,7 +19,7 @@
19
19
  >;
20
20
  // TODO: Enforce use of resolve
21
21
  action: string;
22
- actionName: string;
22
+ actionName?: string;
23
23
  class: string;
24
24
  }
25
25
 
@@ -29,7 +29,7 @@
29
29
  onSuccess,
30
30
  invalidateAll = false,
31
31
  children,
32
- action: _action,
32
+ action,
33
33
  actionName,
34
34
  class: className
35
35
  }: Props = $props();
@@ -55,8 +55,9 @@
55
55
  }
56
56
  });
57
57
  const data = form.form;
58
+ const _action = actionName ? `${action}?/${actionName}` : action;
58
59
  </script>
59
60
 
60
- <form class={className} action="{_action}?/{actionName}" method="POST" use:form.enhance>
61
+ <form class={className} action={_action} method="POST" use:form.enhance>
61
62
  {@render children({ form, data })}
62
63
  </form>
@@ -13,7 +13,7 @@ declare function $$render<S extends type.Any<Record<string, unknown>>>(): {
13
13
  data: SuperFormData<S["infer"]>;
14
14
  }]>;
15
15
  action: string;
16
- actionName: string;
16
+ actionName?: string;
17
17
  class: string;
18
18
  };
19
19
  exports: {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.5.0",
6
+ "version": "0.5.1",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "dist",