Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit f3cd98e

Browse files
Merge pull request #1013 from deckgo/preview
feat: preview slide when editing markdown, code etc.
2 parents 64a7ac4 + 7becc8a commit f3cd98e

File tree

40 files changed

+567
-208
lines changed

40 files changed

+567
-208
lines changed

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@
2828

2929
### Web Components: New
3030

31-
- markdown: v1.1.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/markdown/CHANGELOG.md))
31+
- markdown: v2.0.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/markdown/CHANGELOG.md))
3232

3333
### Web Components
3434

3535
- core: v8.1.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/core/CHANGELOG.md))
36+
- highlight-code: v2.2.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/highlight-code/CHANGELOG.md))
3637
- lazy-img: v3.0.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/lazy-img/CHANGELOG.md))
3738

3839
### Others: New
@@ -43,8 +44,9 @@
4344

4445
- deck-utils: v3.2.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/utils/deck/CHANGELOG.md))
4546
- slide-utils: v2.6.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/utils/slide/CHANGELOG.md))
46-
- starter kit: v7.1.1 ([CHANGELOG](https://github.com/deckgo/starter-kit/blob/master/CHANGELOG.md))
47-
- studio kit: v7.1.1 ([CHANGELOG](https://github.com/deckgo/studio-kit/blob/master/CHANGELOG.md))
47+
- starter kit: v7.1.2 ([CHANGELOG](https://github.com/deckgo/starter-kit/blob/master/CHANGELOG.md))
48+
- studio kit: v7.1.2 ([CHANGELOG](https://github.com/deckgo/studio-kit/blob/master/CHANGELOG.md))
49+
- utils: v1.7.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/utils/utils/CHANGELOG.md))
4850

4951
<a name="3.0.0"></a>
5052

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ Are you interested to contribute to our open source project? That would be aweso
112112
| **Cloud** | | ![version](https://img.shields.io/static/v1.svg?label=production&message=v1.1.1&color=success) | [`README`](cloud/README.md) | [`CHANGELOG`](cloud/CHANGELOG.md) |
113113
| **Gatsby plugin highlight code** | | [![version](https://img.shields.io/npm/v/gatsby-remark-highlight-code/latest.svg?color=success)](https://www.npmjs.com/package/gatsby-remark-highlight-code) | [`Repo`](https://github.com/deckgo/gatsby-remark-highlight-code/) | [`CHANGELOG`](https://github.com/deckgo/gatsby-remark-highlight-code/blob/master/CHANGELOG.md) |
114114
| **Infrastructure** | | | [`README`](infra/README.md) | |
115-
| **Starter kit** | | ![version](https://img.shields.io/static/v1.svg?label=version&message=v7.1.1&color=success) | [`Repo`](http://github.com/deckgo/starter-kit/) | [`CHANGELOG`](https://github.com/deckgo/starter-kit/blob/master/CHANGELOG.md) |
116-
| **Studio kit** | | ![version](https://img.shields.io/static/v1.svg?label=version&message=v7.1.1&color=success) | [`Repo`](http://github.com/deckgo/studio-kit/) | [`CHANGELOG`](https://github.com/deckgo/studio-kit/blob/master/CHANGELOG.md) |
115+
| **Starter kit** | | ![version](https://img.shields.io/static/v1.svg?label=version&message=v7.1.2&color=success) | [`Repo`](http://github.com/deckgo/starter-kit/) | [`CHANGELOG`](https://github.com/deckgo/starter-kit/blob/master/CHANGELOG.md) |
116+
| **Studio kit** | | ![version](https://img.shields.io/static/v1.svg?label=version&message=v7.1.2&color=success) | [`Repo`](http://github.com/deckgo/studio-kit/) | [`CHANGELOG`](https://github.com/deckgo/studio-kit/blob/master/CHANGELOG.md) |
117117
| **WAI Lambda** | | | [`Repo`](https://github.com/deckgo/wai-lambda) | |
118118
| **Webpack plugins** | [`deckdeckgo-webpack-plugins`](https://www.npmjs.com/package/deckdeckgo-webpack-plugins) | [![version](https://img.shields.io/npm/v/deckdeckgo-webpack-plugins/latest.svg?color=success)](https://www.npmjs.com/package/deckdeckgo-webpack-plugins) | [`README`](webpack/README.md) | [`CHANGELOG`](webpack/CHANGELOG.md) |
119119

docs/docs/components/app-components-highlight-code/app-components-highlight-code.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,20 @@ If the code is displayed as an "ubuntu" terminal card (`terminal` property equal
228228
| --deckgo-highlight-code-ubuntu-header-button-height | 12px | The height of a button of the card header. |
229229
| --deckgo-highlight-code-ubuntu-header-button-border-radius | 50% | The border-radius of a button of the card header. |
230230
| --deckgo-highlight-code-ubuntu-header-button-margin | 0 6px 0 0 | The margin of a button of the card header. |
231-
| --deckgo-highlight-code-carbon-header-button-font-size | 7px | The font-size of a button of the card header. |
232-
| --deckgo-highlight-code-carbon-header-button-color | black | The color of a button of the card header. |
233-
| --deckgo-highlight-code-carbon-header-button-text-shadow | 0px 1px 0px rgba(255, 255, 255, 0.2) | The text-shadow of a button of the card header. |
234-
| --deckgo-highlight-code-carbon-header-button-box-shadow | 0px 0px 1px 0px #41403a, 0px 1px 1px 0px #474642 | The box-shadow of a button of the card header. |
235-
| --deckgo-highlight-code-carbon-header-button-close-background | linear-gradient(#f37458 0%, #de4c12 100%) | The close button background of the card header. |
236-
| --deckgo-highlight-code-carbon-header-button-close-border | | The close button border of the card header. |
237-
| --deckgo-highlight-code-carbon-header-button-minimize-background | linear-gradient(#7d7871 0%, #595953 100%) | The minimize button background of the card header. |
238-
| --deckgo-highlight-code-carbon-header-button-minimize-border | | The minimize button border of the card header. |
239-
| --deckgo-highlight-code-carbon-header-button-maximize-background | linear-gradient(#7d7871 0%, #595953 100%) | The maximize button background of the card header. |
240-
| --deckgo-highlight-code-carbon-header-button-maximize-border | | The maximize button border of the card header. |
241-
| --deckgo-highlight-code-carbon-header-user-color | #d5d0ce | The user's color of the card header. |
242-
| --deckgo-highlight-code-carbon-header-user-font-size | 12px | The user's font-size of the card header. |
243-
| --deckgo-highlight-code-carbon-header-user-line-height | 14px | The user's line-height of the card header. |
244-
| --deckgo-highlight-code-carbon-header-user-margin | 0 0 1px 4px | The user's margin of the card header. |
231+
| --deckgo-highlight-code-ubuntu-header-button-font-size | 7px | The font-size of a button of the card header. |
232+
| --deckgo-highlight-code-ubuntu-header-button-color | black | The color of a button of the card header. |
233+
| --deckgo-highlight-code-ubuntu-header-button-text-shadow | 0px 1px 0px rgba(255, 255, 255, 0.2) | The text-shadow of a button of the card header. |
234+
| --deckgo-highlight-code-ubuntu-header-button-box-shadow | 0px 0px 1px 0px #41403a, 0px 1px 1px 0px #474642 | The box-shadow of a button of the card header. |
235+
| --deckgo-highlight-code-ubuntu-header-button-close-background | linear-gradient(#f37458 0%, #de4c12 100%) | The close button background of the card header. |
236+
| --deckgo-highlight-code-ubuntu-header-button-close-border | | The close button border of the card header. |
237+
| --deckgo-highlight-code-ubuntu-header-button-minimize-background | linear-gradient(#7d7871 0%, #595953 100%) | The minimize button background of the card header. |
238+
| --deckgo-highlight-code-ubuntu-header-button-minimize-border | | The minimize button border of the card header. |
239+
| --deckgo-highlight-code-ubuntu-header-button-maximize-background | linear-gradient(#7d7871 0%, #595953 100%) | The maximize button background of the card header. |
240+
| --deckgo-highlight-code-ubuntu-header-button-maximize-border | | The maximize button border of the card header. |
241+
| --deckgo-highlight-code-ubuntu-header-user-color | #d5d0ce | The user's color of the card header. |
242+
| --deckgo-highlight-code-ubuntu-header-user-font-size | 12px | The user's font-size of the card header. |
243+
| --deckgo-highlight-code-ubuntu-header-user-line-height | 14px | The user's line-height of the card header. |
244+
| --deckgo-highlight-code-ubuntu-header-user-margin | 0 0 1px 4px | The user's margin of the card header. |
245245

246246
### Methods
247247

docs/package-lock.json

Lines changed: 16 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"@deckdeckgo/deck-utils": "^3.2.1",
2121
"@deckdeckgo/demo": "^2.0.1",
2222
"@deckdeckgo/drag-resize-rotate": "^2.0.1",
23-
"@deckdeckgo/highlight-code": "^2.1.1",
23+
"@deckdeckgo/highlight-code": "^2.2.1",
2424
"@deckdeckgo/inline-editor": "^3.0.2",
2525
"@deckdeckgo/lazy-img": "^3.0.0",
26-
"@deckdeckgo/markdown": "^1.1.0",
26+
"@deckdeckgo/markdown": "^2.0.0",
2727
"@deckdeckgo/math": "^2.0.3",
2828
"@deckdeckgo/qrcode": "^2.0.1",
2929
"@deckdeckgo/reveal": "^1.0.0",
@@ -44,6 +44,7 @@
4444
"@deckdeckgo/slide-video": "^2.2.2",
4545
"@deckdeckgo/slide-youtube": "^2.2.2",
4646
"@deckdeckgo/social": "^4.0.0",
47+
"@deckdeckgo/utils": "^1.7.0",
4748
"@deckdeckgo/word-cloud": "^1.0.5",
4849
"@deckdeckgo/youtube": "^2.0.1",
4950
"@ionic/core": "^5.4.4",

docs/src/app/pages/docs/components/app-components-highlight-code/app-components-highlight-code.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -780,72 +780,72 @@ export class AppComponentsHighlightCode {
780780
<td>The margin of a button of the card header.</td>
781781
</tr>
782782
<tr>
783-
<td>--deckgo-highlight-code-carbon-header-button-font-size</td>
783+
<td>--deckgo-highlight-code-ubuntu-header-button-font-size</td>
784784
<td>7px</td>
785785
<td>The font-size of a button of the card header.</td>
786786
</tr>
787787
<tr>
788-
<td>--deckgo-highlight-code-carbon-header-button-color</td>
788+
<td>--deckgo-highlight-code-ubuntu-header-button-color</td>
789789
<td>black</td>
790790
<td>The color of a button of the card header.</td>
791791
</tr>
792792
<tr>
793-
<td>--deckgo-highlight-code-carbon-header-button-text-shadow</td>
793+
<td>--deckgo-highlight-code-ubuntu-header-button-text-shadow</td>
794794
<td>0px 1px 0px rgba(255, 255, 255, 0.2)</td>
795795
<td>The text-shadow of a button of the card header.</td>
796796
</tr>
797797
<tr>
798-
<td>--deckgo-highlight-code-carbon-header-button-box-shadow</td>
798+
<td>--deckgo-highlight-code-ubuntu-header-button-box-shadow</td>
799799
<td>0px 0px 1px 0px #41403a, 0px 1px 1px 0px #474642</td>
800800
<td>The box-shadow of a button of the card header.</td>
801801
</tr>
802802
<tr>
803-
<td>--deckgo-highlight-code-carbon-header-button-close-background</td>
803+
<td>--deckgo-highlight-code-ubuntu-header-button-close-background</td>
804804
<td>linear-gradient(#f37458 0%, #de4c12 100%)</td>
805805
<td>The close button background of the card header.</td>
806806
</tr>
807807
<tr>
808-
<td>--deckgo-highlight-code-carbon-header-button-close-border</td>
808+
<td>--deckgo-highlight-code-ubuntu-header-button-close-border</td>
809809
<td></td>
810810
<td>The close button border of the card header.</td>
811811
</tr>
812812
<tr>
813-
<td>--deckgo-highlight-code-carbon-header-button-minimize-background</td>
813+
<td>--deckgo-highlight-code-ubuntu-header-button-minimize-background</td>
814814
<td>linear-gradient(#7d7871 0%, #595953 100%)</td>
815815
<td>The minimize button background of the card header.</td>
816816
</tr>
817817
<tr>
818-
<td>--deckgo-highlight-code-carbon-header-button-minimize-border</td>
818+
<td>--deckgo-highlight-code-ubuntu-header-button-minimize-border</td>
819819
<td></td>
820820
<td>The minimize button border of the card header.</td>
821821
</tr>
822822
<tr>
823-
<td>--deckgo-highlight-code-carbon-header-button-maximize-background</td>
823+
<td>--deckgo-highlight-code-ubuntu-header-button-maximize-background</td>
824824
<td>linear-gradient(#7d7871 0%, #595953 100%)</td>
825825
<td>The maximize button background of the card header.</td>
826826
</tr>
827827
<tr>
828-
<td>--deckgo-highlight-code-carbon-header-button-maximize-border</td>
828+
<td>--deckgo-highlight-code-ubuntu-header-button-maximize-border</td>
829829
<td></td>
830830
<td>The maximize button border of the card header.</td>
831831
</tr>
832832
<tr>
833-
<td>--deckgo-highlight-code-carbon-header-user-color</td>
833+
<td>--deckgo-highlight-code-ubuntu-header-user-color</td>
834834
<td>#d5d0ce</td>
835835
<td>The user&#39;s color of the card header.</td>
836836
</tr>
837837
<tr>
838-
<td>--deckgo-highlight-code-carbon-header-user-font-size</td>
838+
<td>--deckgo-highlight-code-ubuntu-header-user-font-size</td>
839839
<td>12px</td>
840840
<td>The user&#39;s font-size of the card header.</td>
841841
</tr>
842842
<tr>
843-
<td>--deckgo-highlight-code-carbon-header-user-line-height</td>
843+
<td>--deckgo-highlight-code-ubuntu-header-user-line-height</td>
844844
<td>14px</td>
845845
<td>The user&#39;s line-height of the card header.</td>
846846
</tr>
847847
<tr>
848-
<td>--deckgo-highlight-code-carbon-header-user-margin</td>
848+
<td>--deckgo-highlight-code-ubuntu-header-user-margin</td>
849849
<td>0 0 1px 4px</td>
850850
<td>The user&#39;s margin of the card header.</td>
851851
</tr>

0 commit comments

Comments
 (0)