histoire 0.6.2 → 0.6.3

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.
@@ -581,6 +581,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
581
581
  default: defaultValue
582
582
  });
583
583
  if ((_c2 = (_b2 = (_a2 = props.variant.state) == null ? void 0 : _a2._hPropState) == null ? void 0 : _b2[index]) == null ? void 0 : _c2[key]) {
584
+ if (!vnode.props) {
585
+ vnode.props = {};
586
+ }
584
587
  vnode.props[key] = props.variant.state._hPropState[index][key];
585
588
  if (!vnode.dynamicProps) {
586
589
  vnode.dynamicProps = [];
@@ -87,6 +87,9 @@ async function mountVariant () {
87
87
 
88
88
  // Props overrides
89
89
  if (props.variant.state?._hPropState?.[index]?.[key]) {
90
+ if (!vnode.props) {
91
+ vnode.props = {}
92
+ }
90
93
  vnode.props[key] = props.variant.state._hPropState[index][key]
91
94
  if (!vnode.dynamicProps) {
92
95
  vnode.dynamicProps = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "histoire",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "A fast story book powered by Vite",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,7 +33,7 @@
33
33
  "histoire": "./bin.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@histoire/controls": "^0.6.2",
36
+ "@histoire/controls": "^0.6.3",
37
37
  "@iconify/vue": "^3.2.1",
38
38
  "@types/markdown-it": "^12.2.3",
39
39
  "@vueuse/core": "^8.2.5",
@@ -87,6 +87,9 @@ async function mountVariant () {
87
87
 
88
88
  // Props overrides
89
89
  if (props.variant.state?._hPropState?.[index]?.[key]) {
90
+ if (!vnode.props) {
91
+ vnode.props = {}
92
+ }
90
93
  vnode.props[key] = props.variant.state._hPropState[index][key]
91
94
  if (!vnode.dynamicProps) {
92
95
  vnode.dynamicProps = []