File tree Expand file tree Collapse file tree 6 files changed +96
-58
lines changed Expand file tree Collapse file tree 6 files changed +96
-58
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## 0.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6221e5f: If your preview is followed by a code blocks marked as ` story-code ` then those will be shown when switching between multiple platforms
8
+
9
+ ```` md
10
+ ```js preview-story
11
+ // will be visible when platform web is selected
12
+ export const JsPreviewStory = () =>
13
+ html`
14
+ <demo-wc-card>JS Preview Story</demo-wc-card>
15
+ `;
16
+ ```
17
+
18
+ ```xml story-code
19
+ <!-- will be visible when platform android is selected -->
20
+ <Button
21
+ android:id="@+id/demoWcCard"
22
+ android:layout_width="wrap_content"
23
+ android:layout_height="wrap_content"
24
+ android:text="Android Code"
25
+ style="@style/Widget.FooComponents.Demo.Wc.Card"
26
+ />
27
+ ```
28
+
29
+ ```swift story-code
30
+ // will be visible when platform ios is selected
31
+ import DemoWc.Card
32
+
33
+ let card = DemoWcButton()
34
+ ```
35
+ ````
36
+
37
+ - Updated dependencies [ 5c6b9c9]
38
+ - Updated dependencies [ 6221e5f]
39
+ - @mdjs/mdjs-preview @0.5.3
40
+
3
41
## 0.9.0
4
42
5
43
### Minor Changes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @mdjs/core" ,
3
- "version" : " 0.9.0 " ,
3
+ "version" : " 0.9.1 " ,
4
4
"publishConfig" : {
5
5
"access" : " public"
6
6
},
45
45
" remark"
46
46
],
47
47
"dependencies" : {
48
- "@mdjs/mdjs-preview" : " ^0.5.1 " ,
48
+ "@mdjs/mdjs-preview" : " ^0.5.3 " ,
49
49
"@mdjs/mdjs-story" : " ^0.3.0" ,
50
50
"@types/unist" : " ^2.0.3" ,
51
51
"es-module-lexer" : " ^0.3.26" ,
Original file line number Diff line number Diff line change 1
1
# @mdjs/mdjs-preview
2
2
3
+ ## 0.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 5c6b9c9: The Platform and Size controls are now moved above the preview.
8
+ For the web platform we added a special "inline" size.
9
+ Only when platform=web & size=webInline it will render to dom.
10
+ On all other selections it will render the preview via an iframe.
11
+
12
+ ``` js
13
+ sizes: [
14
+ {
15
+ key: ' webInline' ,
16
+ name: ' Inline' ,
17
+ platform: ' web' ,
18
+ width: 360 ,
19
+ height: 640 ,
20
+ dpr: 1 ,
21
+ },
22
+ {
23
+ // ...
24
+ },
25
+ ];
26
+ ```
27
+
28
+ - 6221e5f: If your preview is followed by a code blocks marked as ` story-code ` then those will be shown when switching between multiple platforms
29
+
30
+ ```` md
31
+ ```js preview-story
32
+ // will be visible when platform web is selected
33
+ export const JsPreviewStory = () =>
34
+ html`
35
+ <demo-wc-card>JS Preview Story</demo-wc-card>
36
+ `;
37
+ ```
38
+
39
+ ```xml story-code
40
+ <!-- will be visible when platform android is selected -->
41
+ <Button
42
+ android:id="@+id/demoWcCard"
43
+ android:layout_width="wrap_content"
44
+ android:layout_height="wrap_content"
45
+ android:text="Android Code"
46
+ style="@style/Widget.FooComponents.Demo.Wc.Card"
47
+ />
48
+ ```
49
+
50
+ ```swift story-code
51
+ // will be visible when platform ios is selected
52
+ import DemoWc.Card
53
+
54
+ let card = DemoWcButton()
55
+ ```
56
+ ````
57
+
3
58
## 0.5.2
4
59
5
60
### Patch Changes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @mdjs/mdjs-preview" ,
3
- "version" : " 0.5.2 " ,
3
+ "version" : " 0.5.3 " ,
4
4
"publishConfig" : {
5
5
"access" : " public"
6
6
},
You can’t perform that action at this time.
0 commit comments