Jiří Vyhnálek
4d26e2ae8e
fix: dependency matching for multi-line imports ( #34 )
...
* fix: Fix dependency matching for multi-line imports
* tests
2023-02-09 15:26:23 +01:00
ling1726
01f89d8b8e
Release 0.8.3 ( #33 )
2023-02-08 17:22:08 +01:00
Jiří Vyhnálek
a5a69c2411
fix: Default story import ( #32 )
2023-02-08 14:45:54 +01:00
ling1726
fbfbf6e8eb
Merge pull request #31 from marcosmoura/marcosmoura/fix/keep-break-lines-on-fullsource
...
fix: keep break lines intact after babel transform
2023-02-01 20:02:55 +01:00
Marcos Moura
650da582a8
docs: use full sourcecode for storybook examples
2023-02-01 19:58:48 +01:00
Marcos Moura
a79c73a50e
docs: add example of stories with break line in source code
2023-02-01 19:54:14 +01:00
Marcos Moura
20a2d520a4
fix: keep breaklines intact after babel transform
2023-02-01 19:50:13 +01:00
Oleksandr Fediashov
78b9bb9802
release: 0.8.2
2023-02-01 10:02:33 +01:00
Oleksandr Fediashov
0ed196fbe4
feat: format source in snippets ( #30 )
2023-02-01 09:35:20 +01:00
ling1726
65ad478cc1
Merge pull request #28 from microsoft/release/0.8.1
...
release: 0.8.1
2023-01-24 15:01:07 +01:00
Lingfan Gao
e7c3e6158b
release: 0.8.1
2023-01-24 14:56:40 +01:00
ling1726
9402cb06d8
Merge pull request #26 from george-cz/fix_codesandbox_story_undefined
...
fix: Remove Storybook parameters from CodeSandbox examples
2023-01-24 14:52:39 +01:00
Jiří Vyhnálek
4a84e90e6d
introduce pluginTester function for shared code
2023-01-13 12:17:13 +01:00
Jiří Vyhnálek
ea5bd88382
add tests
2023-01-13 11:56:06 +01:00
Jiří Vyhnálek
98e3d00e8b
add warning for multiple exports
2023-01-10 12:22:30 +01:00
Jiří Vyhnálek
73c474e46a
simplify based on Shift's comments
2023-01-10 11:00:09 +01:00
Jiri Vyhnalek
208f999962
Change logic to remove all assignments on exported members
2023-01-09 14:51:15 +01:00
Jiri Vyhnalek
b9d68b2cfd
fix: Remove Storybook parameters if story is present
2023-01-06 15:19:49 +01:00
ling1726
d812fa02c1
Merge pull request #24 from microsoft/release/0.7.1
...
Bump to 0.7.1
2022-12-08 10:28:48 +01:00
Lingfan Gao
c2a58673b8
Bump to 0.7.1
2022-12-08 07:26:34 +01:00
ling1726
cf1db9426a
Merge pull request #22 from marcosmoura/fix/avoid-conditional-hook-call
...
fix: avoid conditional hook call
2022-12-08 07:15:15 +01:00
Marcos Moura
6a5e2db8b8
fix: avoid conditional hook call
2022-12-07 19:21:54 +01:00
ling1726
98b518ddca
Merge pull request #18 from microsoft/publish/0.7.0
...
Publish 0.7.0
2022-05-30 18:54:20 +02:00
Lingfan Gao
83e682f79c
Publish 0.7.0
2022-05-30 18:14:04 +02:00
ling1726
a26d106411
Merge pull request #17 from microsoft/feat/react-components-unstable
...
feat: Configuration for dependency replacement
2022-05-30 18:09:30 +02:00
Lingfan Gao
c3fa6225ef
optional dependencies
2022-05-30 18:07:55 +02:00
Lingfan Gao
9b04842811
update dependnecy matching
2022-05-30 17:48:55 +02:00
Lingfan Gao
2bc8bebb70
PR suggestions
2022-05-30 16:44:52 +02:00
Lingfan Gao
e0d3649051
remove react-pkg-up
2022-05-29 17:09:49 +02:00
Lingfan Gao
c15630dd5c
add test
2022-05-29 16:51:57 +02:00
Lingfan Gao
9cbfdf3c60
feat: Configuration for dependency replacement
2022-05-29 16:46:28 +02:00
ling1726
2b793cbd12
Merge pull request #16 from micahgodbolt/button-classname
...
added classname to code sandbox button for easier styling
2022-05-19 19:11:50 +02:00
Micah Godbolt
31426bad7c
added classname to code sandbox button for easier styling
2022-05-05 10:28:03 -07:00
ling1726
929b3f0df6
Merge pull request #13 from ling1726/release/0.6.4
...
Release: 0.6.4
2021-11-05 16:12:48 +01:00
Lingfan Gao
cdf275c0ba
Release: 0.6.4
2021-11-05 16:12:27 +01:00
ling1726
f8175e32d0
Merge pull request #11 from ling1726/fix/story-name
...
fix: use `originalStoryFn.name` instead of `story` for import
2021-11-05 16:11:39 +01:00
Lingfan Gao
c1e1b9d03d
add issue link
2021-11-05 16:11:10 +01:00
Lingfan Gao
abfc03cfc0
fix: use `originalStoryFn.name` instead of `story` for import
...
This is a temporary workaround fo #
Previously the addon used `context.story` as the name of the export for
codoesandbox. However the below example shows how this value can be
incorrect
```ts
export const MyStory = () => {/* story */}
MyStory.storyName = 'My custom story name'
```
This will break the export as the `index.ts` will include the following
```ts
import * as ReactDOM from 'react-dom';
import { FluentProvider, webLightTheme } from '@fluentui/react-components';
import { My custom story as Example } from './example';
//
// You can edit this example in "example.tsx".
//
ReactDOM.render(
<FluentProvider theme={webLightTheme}>
<Example />
</FluentProvider>,
document.getElementById('root'),
);
```
2021-11-05 16:04:33 +01:00
ling1726
279366a1fd
Merge pull request #10 from ling1726/release/0.6.3
...
Release 0.6.3
2021-11-05 14:30:05 +01:00
Lingfan Gao
db8221f9fc
Release 0.6.3
2021-11-05 14:29:43 +01:00
ling1726
d2ab9088d4
Merge pull request #9 from ling1726/feat/modify-imports-babel-plugin
...
feat(babel-plugin): Add internal `modifyImports` babel plugin
2021-11-05 14:27:04 +01:00
Lingfan Gao
6e2c1cd194
rename fixture folders
2021-11-05 14:22:00 +01:00
Lingfan Gao
a35d0276f8
clean up jest config
2021-11-05 14:21:04 +01:00
Lingfan Gao
71e078dc72
inline function
2021-11-05 14:20:15 +01:00
Lingfan Gao
e6e214c5c7
newlines
2021-11-05 14:18:50 +01:00
Lingfan Gao
e9a93ca48b
pr suggestion
2021-11-05 14:18:16 +01:00
Lingfan Gao
c9e8a1c953
use replaceWith instead of mutation
2021-11-05 14:14:36 +01:00
Lingfan Gao
7b10064da8
remove link feature
2021-11-05 14:12:07 +01:00
Lingfan Gao
9b6cc3cef2
revert addon
2021-10-29 15:55:09 +02:00
Lingfan Gao
e335077a95
feat(babel-plugin): Add internal `modifyImports` babel plugin
...
Adds an internal babel plugin to transform the `__STORY__` source code
to collect all import declarations and gather them to one single
declaration for `@fluentui/react-components`
Gives an official `fullsource` name to the existing plugin to better
reflect what it does
Adds tests for both current plugin and new plugin.
2021-10-29 15:48:30 +02:00