@startupjs/docs 0.60.0-canary.11 → 0.60.0-canary.13

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.
@@ -52,7 +52,6 @@ grid(direction, color, size)
52
52
  &Text
53
53
  font-size 10px
54
54
  color $invalid
55
- background-color $bg
56
55
  margin 0 .5u
57
56
 
58
57
  &.valid
@@ -58,20 +58,17 @@ function parseEntries (entries) {
58
58
  })
59
59
  }
60
60
 
61
- async function useInitDefaultProps ({ entries, $theProps }) {
61
+ function useInitDefaultProps ({ entries, $theProps }) {
62
62
  if ($theProps.get()) return
63
63
  $theProps.set({})
64
64
 
65
- const promises = []
66
-
67
65
  for (const { name, value, defaultValue } of entries) {
68
66
  if (value !== undefined) {
69
- promises.push($theProps[name].set(value))
67
+ $theProps[name].set(value)
70
68
  } else if (defaultValue !== undefined) {
71
- promises.push($theProps[name].set(defaultValue))
69
+ $theProps[name].set(defaultValue)
72
70
  }
73
71
  }
74
- if (promises.length) throw await Promise.all(promises)
75
72
  }
76
73
 
77
74
  export default observer(themed(function PComponent ({
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "description": "MDX documentation generator",
7
- "version": "0.60.0-canary.11",
7
+ "version": "0.60.0-canary.13",
8
8
  "type": "module",
9
9
  "main": "index.js",
10
10
  "dependencies": {
@@ -18,5 +18,5 @@
18
18
  "react-native": "*",
19
19
  "startupjs": "*"
20
20
  },
21
- "gitHead": "98f7cc4f4c26816b15366986e81de0a4b996f8b1"
21
+ "gitHead": "bc9426930282870fa1ac8832233204ed6773ad55"
22
22
  }