storybook-framework-qwik 0.0.7 → 0.0.8

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/preset.js CHANGED
@@ -9,7 +9,7 @@ export const viteFinal = async (defaultConfig, options) => {
9
9
  build: {
10
10
  target: 'es2020',
11
11
  rollupOptions: {
12
- external: ['@qwik-city-sw-register', '@qwik-city-plan'],
12
+ external: ['@qwik-city-plan'],
13
13
  },
14
14
  },
15
15
  });
@@ -1,6 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "@builder.io/qwik/jsx-runtime";
2
2
  import { QwikCityMockProvider } from '@builder.io/qwik-city';
3
3
  /** Wraps story in QwikCityMockProvider */
4
- export const qwikCityDecorator = (Story) =>
5
- // Something is out of sync with the JSXNode generated here and the type expected by Decorator
6
- (_jsx(QwikCityMockProvider, { children: Story() }));
4
+ export const qwikCityDecorator = (Story) => (_jsx(QwikCityMockProvider, { children: Story() }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-framework-qwik",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Storybook for Qwik: View Qwik components in isolation.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -53,7 +53,7 @@ export const Button = component$<ButtonProps>(
53
53
  return (
54
54
  <button
55
55
  class={classes}
56
- style={{ backgroundColor }}
56
+ style={backgroundColor ? { backgroundColor } : {}}
57
57
  onClick$={(event, element) => onClick$?.(event, element)}
58
58
  >
59
59
  <Slot />