78 Commits

Author SHA1 Message Date
Norbert de Langen
535eb811b0
fix linkTo 2022-05-11 16:57:41 +02:00
Norbert de Langen
ba354b86a8
working tsup setup 2022-04-29 10:06:04 +02:00
Norbert de Langen
2cbae9aa39
change addon-links to new structure 2022-03-18 13:32:57 +01:00
Norbert de Langen
7aff6dfbe2
rename /register to /manager 2022-03-18 10:27:04 +01:00
Norbert de Langen
89830ad763
change imports of types & interfaces to be clearly defined as type 2022-03-08 14:15:22 +01:00
Michael Shilman
8888ebc014 Fix prettier 2.3 formatting across the codebase 2022-01-14 23:26:56 +08:00
Tom Coleman
f9c4d4e78f Simplify addon-links a *lot*
No longer depend on the store, let the manager handle everything
2021-10-20 23:18:57 +11:00
Michael Shilman
90f6c79e83 Fix misc broken links 2021-07-03 03:25:25 +08:00
Ian VanSchooten
14f1c94102 Use named import for addons 2021-06-09 13:00:06 -04:00
Ian VanSchooten
f3a44f0c96 Do not try to named import from global 2021-05-25 15:59:46 -04:00
Michael Shilman
c5c5a983ab Merge from next WIP 2021-02-03 22:34:44 +08:00
Norbert de Langen
aafa2126a4
auto fix eslint isseus 2020-12-03 17:04:00 +01:00
Clément DUNGLER
722ca6b43f Fix link tests 2020-11-04 23:06:28 +01:00
Clément DUNGLER
d35bad421a fix tests 2020-11-04 08:29:57 +01:00
Clément DUNGLER
390b8332ab Remove enzyme from links 2020-11-03 23:29:12 +01:00
Norbert de Langen
92a16125f1
REMOVE the loglevel package, and roll-our-own 2020-06-09 13:22:35 +02:00
Norbert de Langen
b475070577
Merge branch 'next' into add/loglevel
# Conflicts:
#	yarn.lock
2020-05-01 18:01:21 +02:00
Norbert de Langen
5e3be6f267
FIX linting 2020-04-30 18:00:35 +02:00
Norbert de Langen
acc2de5551
FIX 2020-04-13 22:12:47 +02:00
Norbert de Langen
db162891c2
FIX tests 2020-04-10 11:48:29 +02:00
Norbert de Langen
341fc2d90d
FIX linting 2020-03-27 20:04:50 +01:00
Norbert de Langen
4e52c534d3
FIX linting 2020-02-24 14:18:59 +01:00
Jon Palmer
06bdaf5e92 use makeDecorator to allow disabling via parameters 2020-02-22 20:24:50 -05:00
Jon Palmer
2b7ce51fdf Add preset for Links Addon 2020-02-22 12:23:10 -05:00
Michael Shilman
b436339376 Refactor router utils into CSF library 2019-12-09 12:16:01 +08:00
atanasster
e2a81d293e fixed return type of linkTo and buttons examples 2019-11-26 21:03:39 -05:00
Norbert de Langen
a6136381c8 FIX test 2019-11-15 21:58:41 +01:00
Norbert de Langen
e018f67690 FIX linting 2019-11-15 21:48:31 +01:00
Michaël De Boey
99b69566b1
Fix React typings 2019-10-15 00:53:33 +02:00
Norbert de Langen
82a97158e1
Merge branch 'next' into sa-update-linkto-type 2019-09-28 11:00:09 +02:00
Norbert de Langen
27210146d6 CHANGE common-tags stripIndents to dedent, which is a lot smarter about removing indentation from code samples
Removes the need for formatter in syntaxhighlighter
2019-09-27 15:02:31 +02:00
Norbert de Langen
af2f5159fb FIX the broken addon links.
Functionality to support navigation by (storyId || kind || kind + storyName || storyName) is now implemented in the linkTo
itself.

It uses the global scope storyStore & clientApi, which isn't good, but we will refactor that later.

The navigate function now refuses to navigate to a story that does not exist.

hrefTo function also no longer throws an error when kind isn't provided

Add test to assert this functionality actually works
2019-09-24 16:49:39 +02:00
Simon Adcock
7dc5d2541e update linkto type to accept function arg 2019-09-18 17:27:25 +01:00
Norbert de Langen
ff58919e68 FIX it 2019-08-30 18:30:07 +02:00
Norbert de Langen
5066ef5345 FIX typescript error 2019-08-19 16:25:11 +02:00
Roberto Wesley Overdijk
f9cdfcda7d
remove unused import 2019-07-16 16:18:17 +02:00
Roberto Wesley Overdijk
25cc569763
use channel instead of api.on 2019-07-16 16:12:07 +02:00
Roberto Wesley Overdijk
e99ab01cd3
use SET_CURRENT_STORY with storyId 2019-07-16 16:09:56 +02:00
Filipp Riabchun
8ddc511e3b
Fix React warning
> Setting defaultProps as an instance property on LinkTo is not supported and will be ignored. Instead, define defaultProps as a static property on LinkTo.
2019-05-19 16:13:10 +02:00
Filipp Riabchun
59d0dda714
Fix typings 2019-05-19 15:18:14 +02:00
Filipp Riabchun
66067cc965
Fix withLinks decorator 2019-05-19 15:09:37 +02:00
Norbert de Langen
1c12e8cc78 REFACTOR addon/links to make creating themes work for react15 2019-04-27 00:44:04 +02:00
Norbert de Langen
f939e1417a just a few little linting issues fixed 2019-04-25 17:59:37 +02:00
Norbert de Langen
17fa318848 Merge branch 'ts-migration/addon-links' of github.com:sairus2k/storybook into pr/sairus2k/6246 2019-03-25 12:34:30 +01:00
Norbert de Langen
d2d8d3984d FIX linting & tests 2019-03-25 12:33:52 +01:00
Anton Savoskin
1cc89459d0 chore: fix linkTo type in addons/links 2019-03-25 18:20:52 +07:00
Anton Savoskin
c81f5617a5 chore: migrate src of addons/a11y to Typescript 2019-03-23 20:47:24 +07:00
Norbert de Langen
29a603a486 CLEANUP && FIX tests 2019-03-18 20:26:21 +01:00
Norbert de Langen
b7bc65c723 REMOVE much of the need for channel in addon-links 2019-03-18 17:55:06 +01:00
Norbert de Langen
3fc09942eb CHANGE all decorators to use storyFn instead of fn 2019-02-20 01:45:52 +01:00