@poveste/plugin-svelte 0.19.0 → 0.20.0
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/util.js +1 -1
- package/dist/collect/index.js +1 -1
- package/dist/helpers.d.ts +4 -3
- package/package.json +13 -13
package/dist/client/util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{watch as e}from"@poveste/vendors/vue";import{applyState as t,clone as n}from"@poveste/shared";function r(e){let t={};for(let n in e){if(n===`Hst`)continue;let r=e[n];typeof r!=`function`&&r!==void 0&&(r instanceof HTMLElement||typeof r==`object`&&r?.$$||(t[n]=r))}return t}function i(i,a){let o=!1,s=e(()=>i,e=>{
|
|
1
|
+
import{watch as e}from"@poveste/vendors/vue";import{applyState as t,clone as n}from"@poveste/shared";function r(e){let t={};for(let n in e){if(n===`Hst`)continue;let r=e[n];typeof r!=`function`&&r!==void 0&&(r instanceof HTMLElement||typeof r==`object`&&r?.$$||(t[n]=r))}return t}function i(i,a){let o=!1,s=e(()=>i,e=>{e!=null&&(o?o=!1:(o=!0,a(r(e))))},{deep:!0,immediate:!0});function c(e){e!=null&&(o=!o&&t(i,n(r(e))))}return{apply:c,stop(){s()}}}export{i as syncState};
|
package/dist/collect/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{addStoryContext as e,storyFileContext as t}from"../contexts.js";import{callSetupFunctions as n,mountSvelteComponent as r}from"../util/svelte.js";import{collectHst as i}from"./hst.js";import*as a from"virtual:$poveste-generated-global-setup";import*as o from"virtual:$poveste-setup";import{tick as s}from"svelte";async function c({file:c,el:l,storyData:u}){let{default:d}=await import(/* @vite-ignore */c.moduleId),f=await r(d,{target:l,props:{Hst:i()},context:new Map([[e.key,e=>{u.push(e)}],[t.key,c]])},`client`),p={app:f.app,story:void 0,variant:void 0};
|
|
1
|
+
import{addStoryContext as e,storyFileContext as t}from"../contexts.js";import{callSetupFunctions as n,mountSvelteComponent as r}from"../util/svelte.js";import{collectHst as i}from"./hst.js";import*as a from"virtual:$poveste-generated-global-setup";import*as o from"virtual:$poveste-setup";import{tick as s}from"svelte";async function c({file:c,el:l,storyData:u}){let{default:d}=await import(/* @vite-ignore */c.moduleId),f=await r(d,{target:l,props:{Hst:i()},context:new Map([[e.key,e=>{u.push(e)}],[t.key,c]])},`client`),p={app:f.app,story:void 0,variant:void 0};await n(a,o,p),await s(),u[0]&&(u[0].variants.length||u[0].variants.push({id:`_default`,title:`default`})),f.destroy()}export{c as run};
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HstControlOption } from '@poveste/controls';
|
|
2
|
-
import type { Story, StoryMeta, StoryProps, Variant, VariantMeta, VariantProps } from '@poveste/shared';
|
|
2
|
+
import type { Awaitable, Story, StoryMeta, StoryProps, Variant, VariantMeta, VariantProps } from '@poveste/shared';
|
|
3
3
|
import type { Component, Snippet } from 'svelte';
|
|
4
4
|
export interface SvelteStorySetupApi {
|
|
5
5
|
app: any;
|
|
@@ -108,7 +108,7 @@ export interface Hst {
|
|
|
108
108
|
value: unknown;
|
|
109
109
|
title: string;
|
|
110
110
|
}>;
|
|
111
|
-
|
|
111
|
+
ColorShades: Component<{
|
|
112
112
|
shades: Record<string, any>;
|
|
113
113
|
getName?: (key: string, color: string) => string;
|
|
114
114
|
search?: string;
|
|
@@ -123,7 +123,8 @@ export interface Hst {
|
|
|
123
123
|
colSize?: number;
|
|
124
124
|
}>;
|
|
125
125
|
CopyIcon: Component<{
|
|
126
|
-
content: string;
|
|
126
|
+
content: string | undefined | (() => Awaitable<string | undefined>);
|
|
127
|
+
loading?: boolean;
|
|
127
128
|
}>;
|
|
128
129
|
ColorSelect: Component<{
|
|
129
130
|
value?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/plugin-svelte",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.0",
|
|
5
5
|
"description": "Poveste plugin for Svelte 5 and SvelteKit support",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@sveltejs/kit": "^2.53.0 || ^3.0.0",
|
|
71
71
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
72
|
-
"poveste": "^0.
|
|
72
|
+
"poveste": "^0.20.0",
|
|
73
73
|
"svelte": "^5.46.4"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
@@ -78,27 +78,27 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@poveste/controls": "^0.
|
|
82
|
-
"@poveste/shared": "^0.
|
|
83
|
-
"@poveste/vendors": "^0.
|
|
81
|
+
"@poveste/controls": "^0.20.0",
|
|
82
|
+
"@poveste/shared": "^0.20.0",
|
|
83
|
+
"@poveste/vendors": "^0.20.0",
|
|
84
84
|
"change-case": "^5.4.4",
|
|
85
85
|
"ignore": "^7.0.10",
|
|
86
|
-
"launch-editor": "^2.
|
|
86
|
+
"launch-editor": "^2.14.2",
|
|
87
87
|
"pathe": "^2.0.3",
|
|
88
88
|
"tinyglobby": "^0.2.17"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
92
|
-
"@types/node": "^26.6.
|
|
93
|
-
"concurrently": "^10.0.
|
|
92
|
+
"@types/node": "^26.6.5",
|
|
93
|
+
"concurrently": "^10.0.6",
|
|
94
94
|
"fs-extra": "^11.4.1",
|
|
95
|
-
"jsdom": "^30.1.
|
|
96
|
-
"poveste": "0.
|
|
97
|
-
"svelte": "5.57.
|
|
95
|
+
"jsdom": "^30.1.2",
|
|
96
|
+
"poveste": "0.20.0",
|
|
97
|
+
"svelte": "5.57.2",
|
|
98
98
|
"svelte-preprocess": "^6.0.5",
|
|
99
99
|
"typescript": "6.0.3",
|
|
100
|
-
"vite": "^8.3.
|
|
101
|
-
"vitest": "^5.0.
|
|
100
|
+
"vite": "^8.3.4",
|
|
101
|
+
"vitest": "^5.0.4"
|
|
102
102
|
},
|
|
103
103
|
"scripts": {
|
|
104
104
|
"build": "rimraf dist && vite build && tsc -d -P tsconfig.build.json && pnpm run build:types",
|