Skip to content

Commit 0197bee

Browse files
github-actions[bot]daKmoR
authored andcommitted
Version Packages
1 parent 5c6b9c9 commit 0197bee

File tree

6 files changed

+96
-58
lines changed

6 files changed

+96
-58
lines changed

.changeset/funny-news-rhyme.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.changeset/lucky-forks-film.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/mdjs-core/CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# Change Log
22

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+
341
## 0.9.0
442

543
### Minor Changes

packages/mdjs-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mdjs/core",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"publishConfig": {
55
"access": "public"
66
},
@@ -45,7 +45,7 @@
4545
"remark"
4646
],
4747
"dependencies": {
48-
"@mdjs/mdjs-preview": "^0.5.1",
48+
"@mdjs/mdjs-preview": "^0.5.3",
4949
"@mdjs/mdjs-story": "^0.3.0",
5050
"@types/unist": "^2.0.3",
5151
"es-module-lexer": "^0.3.26",

packages/mdjs-preview/CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
11
# @mdjs/mdjs-preview
22

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+
358
## 0.5.2
459

560
### Patch Changes

packages/mdjs-preview/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mdjs/mdjs-preview",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"publishConfig": {
55
"access": "public"
66
},

0 commit comments

Comments
 (0)