@startupjs-ui/docs 0.1.23 → 0.2.0-alpha.1

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/CHANGELOG.md CHANGED
@@ -3,7 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.1.23](https://github.com/startupjs/startupjs-ui/compare/v0.1.22...v0.1.23) (2026-03-27)
6
+ # [0.2.0-alpha.1](https://github.com/startupjs/startupjs-ui/compare/v0.2.0-alpha.0...v0.2.0-alpha.1) (2026-04-10)
7
+
8
+ **Note:** Version bump only for package @startupjs-ui/docs
9
+
10
+
11
+
12
+
13
+
14
+ # [0.2.0-alpha.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.22...v0.2.0-alpha.0) (2026-03-27)
7
15
 
8
16
  **Note:** Version bump only for package @startupjs-ui/docs
9
17
 
@@ -11,7 +11,7 @@ export default function useLocalStorage (key, initialValue) {
11
11
  const item = window.localStorage.getItem(key)
12
12
  // Parse stored json or if none return initialValue
13
13
  return item ? JSON.parse(item) : initialValue
14
- } catch (error) {
14
+ } catch {
15
15
  // If error also return initialValue
16
16
  return initialValue
17
17
  }
@@ -28,7 +28,7 @@ export default function useLocalStorage (key, initialValue) {
28
28
  setStoredValue(valueToStore)
29
29
  // Save to local storage
30
30
  window.localStorage.setItem(key, JSON.stringify(valueToStore))
31
- } catch (error) {
31
+ } catch {
32
32
  // A more advanced implementation would handle the error case
33
33
  }
34
34
  }
@@ -30,7 +30,7 @@ export default observer(themed(function TypeCell ({ possibleValues, theme, type
30
30
  onPress=toggleList
31
31
  )= $collapsed.get() ? 'More...' : 'Less'
32
32
  `
33
- }, [$collapsed, possibleValues, toggleList]) // eslint-disable-line react-hooks/exhaustive-deps
33
+ }, [$collapsed, possibleValues, toggleList])
34
34
 
35
35
  return pug`
36
36
  if type === 'oneOf'
@@ -64,7 +64,7 @@ const JSONInput = observer(function ({ $value, type }) {
64
64
  $badJSON.set(true)
65
65
  }
66
66
  }
67
- } catch (error) {
67
+ } catch {
68
68
  $badJSON.set(true)
69
69
  }
70
70
  }, 300),
@@ -74,10 +74,10 @@ export default observer(themed(function Constructor ({
74
74
  else
75
75
  | (tap to expand)
76
76
  if $showExtends.get()
77
- each entry, index in entries
77
+ each entry in entries
78
78
  if entry.extendedFrom === extendedFrom
79
79
  = renderEntry(entry)
80
- each entry, index in entries
80
+ each entry in entries
81
81
  if !entry.extendedFrom
82
82
  = renderEntry(entry)
83
83
  `
@@ -3,11 +3,6 @@ import { pug, observer, $, useId } from 'startupjs'
3
3
  import Span from '@startupjs-ui/span'
4
4
  import Alert from '@startupjs-ui/alert'
5
5
  import Props from '../Props'
6
- import {
7
- useShowGrid,
8
- useShowSizes,
9
- useValidateWidth
10
- } from '../../clientHelpers'
11
6
  import './index.styl'
12
7
 
13
8
  const MODELS = new WeakMap()
@@ -18,9 +13,6 @@ export default observer(function Sandbox ({
18
13
  $props,
19
14
  ...otherProps
20
15
  }) {
21
- const [showGrid] = useShowGrid()
22
- const [showSizes] = useShowSizes()
23
- const [validateWidth] = useValidateWidth()
24
16
  const uniqId = useId()
25
17
 
26
18
  if (!Component) {
@@ -48,9 +40,9 @@ export default observer(function Sandbox ({
48
40
  Component=Component
49
41
  propsJsonSchema=propsJsonSchema
50
42
  $props=$props || getUniqModel(Component, uniqId)
51
- showSizes=showSizes
52
- showGrid=showGrid
53
- validateWidth=validateWidth
43
+ showSizes
44
+ showGrid=false
45
+ validateWidth=false
54
46
  ...otherProps
55
47
  )
56
48
  `
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@startupjs-ui/docs",
3
3
  "description": "MDX documentation generator",
4
- "version": "0.1.23",
4
+ "version": "0.2.0-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -9,15 +9,15 @@
9
9
  "main": "index.js",
10
10
  "dependencies": {
11
11
  "@fortawesome/free-solid-svg-icons": "^7.1.0",
12
- "@startupjs-ui/alert": "^0.1.22",
13
- "@startupjs-ui/br": "^0.1.22",
14
- "@startupjs-ui/button": "^0.1.22",
15
- "@startupjs-ui/core": "^0.1.22",
16
- "@startupjs-ui/div": "^0.1.22",
17
- "@startupjs-ui/input": "^0.1.23",
18
- "@startupjs-ui/scroll-view": "^0.1.22",
19
- "@startupjs-ui/span": "^0.1.22",
20
- "@startupjs-ui/tag": "^0.1.22",
12
+ "@startupjs-ui/alert": "^0.2.0-alpha.1",
13
+ "@startupjs-ui/br": "^0.2.0-alpha.1",
14
+ "@startupjs-ui/button": "^0.2.0-alpha.1",
15
+ "@startupjs-ui/core": "^0.2.0-alpha.1",
16
+ "@startupjs-ui/div": "^0.2.0-alpha.1",
17
+ "@startupjs-ui/input": "^0.2.0-alpha.1",
18
+ "@startupjs-ui/scroll-view": "^0.2.0-alpha.1",
19
+ "@startupjs-ui/span": "^0.2.0-alpha.1",
20
+ "@startupjs-ui/tag": "^0.2.0-alpha.1",
21
21
  "lodash": "^4.17.20"
22
22
  },
23
23
  "peerDependencies": {
@@ -25,5 +25,5 @@
25
25
  "react-native": "*",
26
26
  "startupjs": "*"
27
27
  },
28
- "gitHead": "37e37c298a2467d18d1de1931f9e7942f06e7665"
28
+ "gitHead": "b48004779559b16c96a2a1995dab13b998eafce9"
29
29
  }