Skip to content

Commit

Permalink
0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
marcveens committed Aug 6, 2024
1 parent 39be722 commit a4289fd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.1.9
- Added `embed=1` URL parameter, as documented by draw.io

# 0.1.8
- Added types for more `export` parameters

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-drawio",
"version": "0.1.8",
"version": "0.1.9",
"type": "module",
"description": "React component for integrating the Diagrams (draw.io) embed iframe",
"main": "index.js",
Expand Down
1 change: 1 addition & 0 deletions src/utils/getEmbedUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const getEmbedUrl = (
const url = new URL('/', baseUrl ?? 'https://embed.diagrams.net');
const urlSearchParams = new URLSearchParams();

urlSearchParams.append('embed', '1');
urlSearchParams.append('proto', 'json');

if (addConfiguration) {
Expand Down

0 comments on commit a4289fd

Please sign in to comment.