storybook-framework-qwik 0.2.4 → 0.2.5
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/docs/qwik-docgen.js +1 -1
- package/dist/preview.js +1 -1
- package/package.json +6 -6
package/dist/docs/qwik-docgen.js
CHANGED
|
@@ -17,7 +17,7 @@ export function qwikDocgen() {
|
|
|
17
17
|
skipPropsWithName: ["key", "q:slot"],
|
|
18
18
|
},
|
|
19
19
|
});
|
|
20
|
-
const s = new MagicString
|
|
20
|
+
const s = new MagicString(src);
|
|
21
21
|
s.append(`window.__STORYBOOK_COMPONENT_DOC__ ??= new Map();`);
|
|
22
22
|
componentDocs.forEach((componentDoc) => s.append(`window.__STORYBOOK_COMPONENT_DOC__.set("${toKebabCase(componentDoc.displayName)}", ${JSON.stringify(componentDoc)});`));
|
|
23
23
|
return {
|
package/dist/preview.js
CHANGED
|
@@ -12,9 +12,9 @@ export const render = (args, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
export async function renderToCanvas({ storyFn, showMain }, canvasElement) {
|
|
14
14
|
const container = document.createElement("div");
|
|
15
|
-
await renderQwik(container, storyFn());
|
|
16
15
|
canvasElement.childNodes.forEach((c) => c.remove());
|
|
17
16
|
canvasElement.append(container);
|
|
17
|
+
await renderQwik(container, storyFn());
|
|
18
18
|
showMain();
|
|
19
19
|
}
|
|
20
20
|
// I don't know how to do HMR stuff correctly, and Vite seems to keep referencing old files when you make a change.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook-framework-qwik",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Storybook for Qwik: View Qwik components in isolation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -85,22 +85,22 @@
|
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@storybook/builder-vite": ">=7.0.0",
|
|
87
87
|
"@storybook/docs-tools": ">=7.0.0",
|
|
88
|
-
"magic-string": "^0.30.
|
|
88
|
+
"magic-string": "^0.30.5",
|
|
89
89
|
"react-docgen-typescript": "^2.2.2"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@builder.io/qwik": ">=0.15.2"
|
|
93
93
|
},
|
|
94
94
|
"optionalDependencies": {
|
|
95
|
-
"@builder.io/qwik-city": "^1.
|
|
95
|
+
"@builder.io/qwik-city": "^1.3.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@storybook/types": ">=7.0.0",
|
|
99
99
|
"@suin/semantic-release-yarn": "1.1.0",
|
|
100
100
|
"@types/node": "^18.16.16",
|
|
101
|
-
"semantic-release": "^
|
|
102
|
-
"typescript": "~5.
|
|
103
|
-
"vite": "^
|
|
101
|
+
"semantic-release": "^22.0.10",
|
|
102
|
+
"typescript": "~5.3.3",
|
|
103
|
+
"vite": "^5.0.7"
|
|
104
104
|
},
|
|
105
105
|
"engines": {
|
|
106
106
|
"node": "^14.18 || >=16"
|