fuma 0.3.55 → 0.3.56

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.
@@ -15,16 +15,16 @@ $:
15
15
  let header;
16
16
  let timeout;
17
17
  async function handleClick(event) {
18
- if (isClickOnLink(event))
18
+ if (isClickOnInteractiveElement(event))
19
19
  return;
20
20
  await goto($urlParam.toggle({ section: value }), { noScroll: true, keepFocus: true });
21
21
  }
22
- function isClickOnLink(event) {
22
+ function isClickOnInteractiveElement(event) {
23
23
  if (!event)
24
24
  return false;
25
25
  const target = event.target;
26
- const links = [...header.getElementsByTagName("a")];
27
- return !!links.filter((link) => link.contains(target)).length;
26
+ const elements = [...header.querySelectorAll("a, button")];
27
+ return !!elements.filter((element) => element.contains(target)).length;
28
28
  }
29
29
  onDestroy(() => {
30
30
  clearTimeout(timeout);
@@ -31,7 +31,7 @@ export type FormInputProps<T extends FormInputsType> = ComponentProps<InstanceTy
31
31
  export type FormInputsProps = {
32
32
  [T in FormInputsType]: FormInputProps<T>;
33
33
  };
34
- export declare const formInputsType: ("number" | "boolean" | "select" | "textarea" | "date" | "text" | "password" | "radio" | "textrich" | "datetime" | "relation" | "relations")[];
34
+ export declare const formInputsType: ("number" | "boolean" | "select" | "textarea" | "text" | "date" | "password" | "radio" | "textrich" | "datetime" | "relation" | "relations")[];
35
35
  export declare function relationProps<Item extends {
36
36
  id: string;
37
37
  }>(props: ComponentProps<InstanceType<typeof InputRelation<Item>>>): {
@@ -186,7 +186,7 @@ export declare const z: {
186
186
  map: "map";
187
187
  set: "set";
188
188
  };
189
- getParsedType: (data: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "map" | "nan" | "integer" | "float" | "date" | "null" | "array" | "unknown" | "promise" | "void" | "never" | "set";
189
+ getParsedType: (data: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "map" | "set" | "nan" | "integer" | "float" | "date" | "null" | "array" | "unknown" | "promise" | "void" | "never";
190
190
  ZodType: typeof zod.ZodType;
191
191
  ZodString: typeof zod.ZodString;
192
192
  ZodNumber: typeof zod.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "0.3.55",
3
+ "version": "0.3.56",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",