Emilio Martinez
9135ab6ab5
Addon-knobs: enable strictPropertyInitialization
2019-07-21 02:48:49 -07:00
Emilio Martinez
5e55ee6f1a
Addon-knobs: reconcile types for strict null checks
2019-07-21 02:09:00 -07:00
Emilio Martinez
4b6e235072
Addon-knobs: remedy styled types with extra props
2019-07-21 01:54:38 -07:00
Emilio Martinez
8bcceb00bd
Addon-knobs: use API definition in Panel
2019-07-20 21:21:47 -07:00
Emilio Martinez
40aefd8f08
Addon-knobs: clean up type definitions for proptypes
2019-07-20 21:20:35 -07:00
Emilio Martinez
98265c72f1
Addon-knobs: select support for enum-like record types
2019-07-17 03:06:21 -07:00
Emilio Martinez
0ef6675250
Addon-knobs: add knobs types test cases
2019-07-17 02:22:53 -07:00
Emilio Martinez
4cfd2f4cac
Addon-knobs: improve types via generics and readonlyarray
2019-07-17 02:22:53 -07:00
Norbert de Langen
86655f304d
FIX typescript shenanigans
2019-07-13 14:22:33 +02:00
Emilio Martinez
20ef9e5887
Addon-knobs: organize type definitions a bit
2019-07-11 18:29:39 -07:00
Emilio Martinez
a74097701b
Addon-knobs: fix knobs function return types
...
Applies generics and conditional types to ensure a proper return value from each of the knob functions respectively.
2019-07-11 12:20:47 -07:00
Norbert de Langen
0218cb5e1a
IMPROVE linting config
2019-07-11 10:55:46 +02:00
Norbert de Langen
9b40bf9f9b
Fix TypeError on KnobManager channel ( #7341 )
...
Fix TypeError on KnobManager channel
2019-07-10 22:49:27 +02:00
Norbert de Langen
9571fe1572
Merge branch 'next' into preview-hooks
...
# Conflicts:
# addons/actions/package.json
# addons/events/package.json
# addons/events/src/index.ts
# addons/ondevice-notes/package.json
# dev-kits/addon-roundtrip/package.json
# examples/dev-kits/package.json
# examples/html-kitchen-sink/package.json
# lib/client-api/package.json
# lib/client-api/src/client_api.ts
# lib/client-api/src/typings.d.ts
# lib/client-api/tsconfig.json
# lib/ui/src/index.js
# yarn.lock
2019-07-10 16:08:11 +02:00
Michael Shilman
0c3a8cdc2f
Revert 98235fc57fcdd9e9e67ffd694b5e7af99313371a
2019-07-10 20:18:57 +08:00
Michael Shilman
5f6ce01af5
Addon-knobs: Fix select options types to allow string[] and null ( #7356 )
...
Addon-knobs: Fix select options types to allow string[] and null
2019-07-10 10:27:01 +08:00
Emilio Martinez
5620db2025
Addon-knobs: allow other primitive values and array options in select
2019-07-09 08:40:18 -07:00
fabianmarinog-turner
c8086e7e03
Removes underscore on this.channel
2019-07-08 19:23:42 -05:00
Norbert de Langen
9fb72175b7
FIX types
2019-07-08 23:55:35 +02:00
fabianmarinog-turner
52de8a1e62
Fixing typo in comment
2019-07-08 16:40:24 -05:00
fabianmarinog-turner
7f598b6204
Update KnobManager.ts
...
When Storybook is loaded the KnobManager channel can be undefined. Include this code to prevent `Uncaught TypeError: Cannot read property 'emit' of undefined` error.
2019-07-08 16:36:53 -05:00
Norbert de Langen
fb4c35e49c
FIX linting after merge
2019-07-08 16:59:40 +02:00
Norbert de Langen
6c6a04ef1d
REMOVE the JS version of files after merge
2019-07-08 16:52:14 +02:00
Norbert de Langen
f10f346f31
FIX knobs/Color.tsx after merge
2019-07-08 15:44:13 +02:00
Norbert de Langen
c5c519a31d
Merge branch 'next' into upgrades
...
# Conflicts:
# addons/knobs/src/components/Panel.tsx
# addons/knobs/src/components/types/Checkboxes.js
# addons/knobs/src/components/types/Files.js
# addons/knobs/src/components/types/Options.js
2019-07-08 15:28:32 +02:00
Emilio Martinez
7d1fe63a4d
Addon-knobs: add typings.d.ts to remove ts-ignore usage
2019-07-07 18:19:07 -07:00
Emilio Martinez
d8bbc68adc
Addon-knobs: fixes after rebase
2019-07-07 18:19:06 -07:00
Emilio Martinez
98235fc57f
Addon-knobs: migrate deprecated entrypoints to ts
2019-07-07 18:19:06 -07:00
Emilio Martinez
8a1219e0eb
Addon-knobs: migrate registration, manager and panels to ts
2019-07-07 18:19:05 -07:00
Emilio Martinez
c2470ce3ed
Addon-knobs: install missing related types and refactor
2019-07-07 18:19:05 -07:00
Emilio Martinez
754ec02628
Addon-knobs: migrate components
2019-07-07 18:19:04 -07:00
Emilio Martinez
dfbf5d9cb5
Addon-knobs: straight rename js => ts
...
This commit simply transitions the files from js to ts to make the commit history clearer afterwards. Expected not to type-check.
2019-07-07 18:19:04 -07:00
Norbert de Langen
ac0a42bec1
FIX linting
2019-07-07 00:42:18 +02:00
Michael Shilman
d3d83576de
Merge branch 'next' into pr/7197
2019-07-06 17:39:09 +08:00
Hypnosphi
c8d437b789
Merge remote-tracking branch 'origin/next' into preview-hooks
...
# Conflicts:
# addons/actions/package.json
# addons/events/package.json
# addons/ondevice-notes/package.json
# dev-kits/addon-roundtrip/package.json
# examples/dev-kits/package.json
# examples/html-kitchen-sink/package.json
2019-07-04 19:42:22 +03:00
Norbert de Langen
3ae5d2c2d6
Merge branch 'next' into pr/andrefgneves/6793
2019-07-04 17:05:13 +02:00
Norbert de Langen
d818852136
Merge branch 'next' into pr/andrefgneves/6793
...
# Conflicts:
# examples/official-storybook/stories/__snapshots__/addon-knobs.stories.storyshot
# examples/official-storybook/stories/addon-knobs.stories.js
2019-07-02 15:48:03 +02:00
Daniel Acosta
e7cf084d06
Prevent rerender when a button callback returns false. (lint fix)
...
Co-Authored-By: Wei-Wei Wu <hello@weiweiwu.me>
2019-06-26 09:25:22 -05:00
Daniel Acosta
8973b5988f
Prevent rerender when a button callback returns false.
2019-06-25 15:29:59 -05:00
Jimmy Somsanith
6ee558c13e
Merge branch 'next' into jsomsanith/feat/disable_tab
2019-06-12 22:00:24 +02:00
Norbert de Langen
88c2a98ce5
Merge branch 'next' into preview-hooks
...
# Conflicts:
# addons/actions/package.json
# addons/events/package.json
# examples/html-kitchen-sink/package.json
2019-06-07 14:12:45 +02:00
Michael Shilman
bb3e7f71cd
Github org rename to storybookjs
2019-06-03 11:06:42 -07:00
Hypnosphi
2c114ede63
Replace REGISTER_SUBSCRIPTION with useEffect hook
2019-06-01 17:14:43 +02:00
Jimmy Somsanith
a8e6d1bcd9
feat: disable option for addon tab
2019-05-31 10:03:53 +02:00
Norbert de Langen
3f5d71ba8d
Merge branch 'next' into fix/knobs-in-eject-url
2019-05-23 14:03:05 +02:00
Norbert de Langen
5994174b35
Upgrade lodash to latest ( #6832 )
...
Upgrade lodash to latest
2019-05-20 20:52:11 +02:00
Steph Meslin-Weber
d610259d8b
deps(all): replace old lodash modularised dependencies with recent tree-shakeable ones, add restricted packages eslint rules to avoid lodash modularised usage in future
2019-05-20 11:47:50 +01:00
Leo Y. Li
72926660bd
BUGFIX v5.1.x change breaks Boolean knob ( #6366 )
...
Use ES6 argument default value assignment to handle `undefined` case,
which is never wanted; this prevent `false` cast to empty string (bug).
2019-05-20 00:42:24 -04:00
Norbert de Langen
1b8eb42bb2
FIX issue where the customQueryParams weren't being applied to the eject iframe button
2019-05-18 12:48:31 +02:00
André Neves
12fd8067e3
Ensure unique knob names across knob groups
2019-05-15 15:33:07 +01:00