@poveste/plugin-svelte 0.17.0 → 0.17.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.
package/dist/client/Wrap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createApp as e,h as t,reactive as n}from"@poveste/vendors/vue";import{createEventDispatcher as r,onMount as
|
|
1
|
+
import{createApp as e,h as t,reactive as n}from"@poveste/vendors/vue";import{createEventDispatcher as r,onDestroy as i,onMount as a}from"svelte";import"svelte/internal/disclose-version";import"svelte/internal/flags/legacy";import*as o from"svelte/internal/client";var s=o.from_html(`<div> </div>`);function c(c,l){let u=o.legacy_rest_props(l,[`children`,`$$slots`,`$$events`,`$$legacy`]),d=o.legacy_rest_props(u,[`controlComponent`,`value`]);o.push(l,!1);let f=o.prop(l,`controlComponent`,8),p=o.prop(l,`value`,12),m=r(),h=o.mutable_source(),g,_=n({});function v(e,t){Object.assign(_,{value:e,attrs:t})}a(()=>{v(p(),d),g=e({render(){let e={};if(f().emits)for(let t in f().emits){let n=Array.isArray(f().emits)?f().emits[t]:t,r=n===`input`?`update:modelValue`:n;e[`on${r.charAt(0).toUpperCase()}${r.substring(1)}`]=(...e)=>{n===`update:modelValue`?p(e[0]):m(n,...e)}}return t(f(),{modelValue:_.value,..._.attrs,...e,key:`component`})}}),g.mount(o.get(h))}),i(()=>{g?.unmount()}),o.legacy_pre_effect(()=>(o.deep_read_state(p()),o.deep_read_state(d)),()=>{v(p(),d)}),o.legacy_pre_effect_reset(),o.init();var y=s(),b=o.only_child(y,!0);o.bind_this(y,e=>o.set(h,e),()=>o.get(h)),o.template_effect(()=>o.set_text(b,(o.deep_read_state(f()),o.untrack(()=>f().name)))),o.append(c,y),o.pop()}export{c as default};
|
package/dist/client/Wrap.svelte
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
h as _h,
|
|
5
5
|
reactive as _reactive,
|
|
6
6
|
} from '@poveste/vendors/vue'
|
|
7
|
-
import { createEventDispatcher, onMount } from 'svelte'
|
|
7
|
+
import { createEventDispatcher, onDestroy, onMount } from 'svelte'
|
|
8
8
|
|
|
9
9
|
export let controlComponent
|
|
10
10
|
export let value
|
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
app.mount(el)
|
|
61
61
|
})
|
|
62
62
|
|
|
63
|
+
onDestroy(() => {
|
|
64
|
+
app?.unmount()
|
|
65
|
+
})
|
|
66
|
+
|
|
63
67
|
$: updateState(value, $$restProps)
|
|
64
68
|
</script>
|
|
65
69
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ClientSupportPlugin } from '@poveste/shared';
|
|
2
|
+
import type { Component } from '@poveste/vendors/vue';
|
|
3
|
+
import type * as client from './index.js';
|
|
4
|
+
type Satisfies<T extends ClientSupportPlugin<Component>> = T;
|
|
5
|
+
export type ClientContract = Satisfies<typeof client>;
|
|
6
|
+
export {};
|
package/dist/client/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/plugin-svelte",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.1",
|
|
5
5
|
"description": "Poveste plugin for Svelte 5 and SvelteKit support",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@sveltejs/kit": "^2.53.0",
|
|
67
67
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
68
|
-
"poveste": "^0.17.
|
|
68
|
+
"poveste": "^0.17.1",
|
|
69
69
|
"svelte": "^5.46.4"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@poveste/controls": "^0.17.
|
|
78
|
-
"@poveste/shared": "^0.17.
|
|
79
|
-
"@poveste/vendors": "^0.17.
|
|
77
|
+
"@poveste/controls": "^0.17.1",
|
|
78
|
+
"@poveste/shared": "^0.17.1",
|
|
79
|
+
"@poveste/vendors": "^0.17.1",
|
|
80
80
|
"change-case": "^5.4.4",
|
|
81
81
|
"ignore": "^7.0.10",
|
|
82
82
|
"launch-editor": "^2.9.1",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"@types/node": "^26.6.3",
|
|
89
89
|
"concurrently": "^10.0.5",
|
|
90
90
|
"fs-extra": "^11.4.1",
|
|
91
|
-
"
|
|
91
|
+
"jsdom": "^30.1.1",
|
|
92
|
+
"poveste": "0.17.1",
|
|
92
93
|
"svelte": "5.57.1",
|
|
93
94
|
"svelte-preprocess": "^6.0.5",
|
|
94
95
|
"typescript": "6.0.3",
|