motion-start 0.1.15 → 0.1.17

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.
@@ -17,7 +17,7 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
17
17
  } ? Props extends Record<string, never> ? any : {
18
18
  children?: any;
19
19
  } : {});
20
- declare const MotionSsr: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<MotionProps & {
20
+ declare const MotionSSR: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<MotionProps & {
21
21
  isSVG?: boolean;
22
22
  update?: any;
23
23
  forwardMotionProps?: boolean;
@@ -36,6 +36,6 @@ declare const MotionSsr: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_Props
36
36
  props: any;
37
37
  };
38
38
  }, {}, string>;
39
- type MotionSsr = InstanceType<typeof MotionSsr>;
40
- export default MotionSsr;
39
+ type MotionSSR = InstanceType<typeof MotionSSR>;
40
+ export default MotionSSR;
41
41
  //# sourceMappingURL=MotionSSR.svelte.d.ts.map
@@ -1,22 +1,31 @@
1
1
  <!-- <svelte:options runes={true}/> -->
2
2
  <script lang="ts">
3
- import type { SvelteHTMLElements } from "svelte/elements";
4
- import type { MotionProps } from "../../motion";
5
- import Motion from "../../motion/Motion.svelte";
3
+ import type { SvelteHTMLElements } from "svelte/elements";
4
+ import type { MotionProps } from "../../motion";
5
+ import Motion from "../../motion/Motion.svelte";
6
6
 
7
- // let {as, class: className, children, ...restProps}: {as: keyof SvelteHTMLElements, children: Snippet, class: string } & MotionProps = $props();
8
- export let ___tag: keyof SvelteHTMLElements;
9
- export let el: SvelteHTMLElements[typeof ___tag]["this"];
7
+ // let {as, class: className, children, ...restProps}: {as: keyof SvelteHTMLElements, children: Snippet, class: string } & MotionProps = $props();
8
+ export let ___tag: keyof SvelteHTMLElements;
9
+ export let el: SvelteHTMLElements[typeof ___tag]["this"];
10
+ export let isSVG = false;
10
11
  </script>
11
12
 
12
- <Motion {...$$restProps} let:props let:motion>
13
- <svelte:element
14
- this={___tag}
15
- {...props}
16
- bind:this={el}
17
- class={props.class}
18
- use:motion
19
- >
20
- <slot />
21
- </svelte:element>
13
+ <Motion {...$$restProps} let:props let:motion {isSVG}>
14
+ <svelte:element
15
+ this={___tag}
16
+ {...Object.fromEntries(
17
+ Object.entries(props).filter(
18
+ ([key, _]) =>
19
+ key !== "latestvalues" &&
20
+ key !== "renderstate" &&
21
+ key !== "visualProps"
22
+ )
23
+ )}
24
+ bind:this={el}
25
+ class={props.class}
26
+ xmlns={isSVG ? "http://www.w3.org/2000/svg" : undefined}
27
+ use:motion
28
+ >
29
+ <slot />
30
+ </svelte:element>
22
31
  </Motion>
@@ -21,6 +21,7 @@ declare const MotionProxy: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_Pro
21
21
  [x: string]: any;
22
22
  ___tag: keyof SvelteHTMLElements;
23
23
  el: SvelteHTMLElements[keyof SvelteHTMLElements]["this"];
24
+ isSVG?: boolean | undefined;
24
25
  }, {
25
26
  default: {};
26
27
  }>, {
@@ -1 +1 @@
1
- {"version":3,"file":"Motion-Proxy.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/render/dom/Motion-Proxy.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAuB1D,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAA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