@startupjs/docs 0.40.0 → 0.40.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.
@@ -2,11 +2,14 @@ import React, { useMemo, useState } from 'react'
2
2
  import { ScrollView } from 'react-native'
3
3
  import { observer, $root, useComponentId } from 'startupjs'
4
4
  import { themed, Button, Row, Div } from '@startupjs/ui'
5
- import parsePropTypes from 'parse-prop-types'
5
+ import parsePropTypesModule from 'parse-prop-types'
6
6
  import Constructor from './Constructor'
7
7
  import Renderer from './Renderer'
8
8
  import './index.styl'
9
9
 
10
+ const parsePropTypes = parsePropTypesModule.default || parsePropTypesModule
11
+ if (!parsePropTypes) throw Error('> Can\'t load parse-prop-types module. Issues with bundling')
12
+
10
13
  function useEntries ({ Component, props, extraParams }) {
11
14
  return useMemo(() => {
12
15
  const propTypes = parsePropTypes(Component)
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  "access": "public"
5
5
  },
6
6
  "description": "MDX documentation generator",
7
- "version": "0.40.0",
7
+ "version": "0.40.5",
8
8
  "type": "module",
9
9
  "main": "index.js",
10
10
  "dependencies": {
11
11
  "@fortawesome/free-solid-svg-icons": "^5.12.0",
12
- "@startupjs/mdx": "^0.40.0",
13
- "@startupjs/scrollable-anchors": "^0.40.0",
14
- "@startupjs/ui": "^0.40.0",
12
+ "@startupjs/mdx": "^0.40.5",
13
+ "@startupjs/scrollable-anchors": "^0.40.5",
14
+ "@startupjs/ui": "^0.40.5",
15
15
  "parse-prop-types": "^0.3.0"
16
16
  },
17
17
  "peerDependencies": {
@@ -19,5 +19,5 @@
19
19
  "react-native": ">= 0.61.4 < 0.64.0",
20
20
  "startupjs": ">= 0.33.0"
21
21
  },
22
- "gitHead": "fb84b4d0f93a8fae4c84d3f7d2d4c95772b1fb88"
22
+ "gitHead": "514534b3809fe956333bdb799f11ea790ee7e8a6"
23
23
  }