Skip to content

Commit

Permalink
21.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed May 12, 2023
1 parent 4e1d223 commit d27dfa2
Show file tree
Hide file tree
Showing 87 changed files with 7,142 additions and 6,840 deletions.
14 changes: 14 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
12-MAY-2023: 21.3.0

- Updates DOMPurify from 3.0.2 to 3.0.3
- Fixes in-place change of graph bounds in fitWindow
- Restores sidebar on dark mode change [drawio-3577]
- Fixes page scroll while editing text [drawio-3523]
- [conf cloud] Fixed embed diagram macro when context lack the contentType [DID-8214]
- Preserves tabs in pasted text from text editors
- Uses simple theme on iPadOS, iOS and Android
- [desktop]] Potential fix for spawn errors [drawio-desktop-1122]
- Resets scrollbar state after inserting new pages
- Fixes reset of scrollbars after deleting last page
-

04-MAY-2023: 21.2.9

- Fixes scrolling of iframe parents [drawio-3563]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21.2.9
21.3.0
2 changes: 1 addition & 1 deletion etc/dependencies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"mermaid": "10.0.2",
"pako": "2.1.0",
"crypto-js": "3.1.2",
"dompurify": "2.4.3",
"dompurify": "3.0.3",
"spin.js": "2.0.0",
"roughjs": "4.4.1",
"jscolor": "^3.8.0"
Expand Down
14 changes: 7 additions & 7 deletions etc/propgen/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 etc/propgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"license": "ISC",
"dependencies": {
"bidi-js": "^1.0.2",
"node-fetch": "^3.3.1"
"node-fetch": "^3.2.10"
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/mxgraph/online/ConverterServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private void readApiKey()
}
}

//Little Indian
//Little-endian
private int fromByteArray(byte[] bytes, int start)
{
return ((bytes[start + 3] & 0xFF) << 24) |
Expand Down
12 changes: 10 additions & 2 deletions src/main/webapp/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -1887,7 +1887,11 @@ async function saveDraft(fileObject, data)
try
{
// Add Hidden attribute:
spawn('attrib', ['+h', draftFileName], {shell: true});
var child = spawn('attrib', ['+h', draftFileName], {shell: true});
child.on('error', function(err)
{
console.log('hiding draft file error: ' + err);
});
} catch(e) {}
}

Expand Down Expand Up @@ -1990,7 +1994,11 @@ async function saveFile(fileObject, data, origStat, overwrite, defEnc)
try
{
// Add Hidden attribute:
spawn('attrib', ['+h', bkpPath], {shell: true});
var child = spawn('attrib', ['+h', bkpPath], {shell: true});
child.on('error', function(err)
{
console.log('hiding backup file error: ' + err);
});
} catch(e) {}
}
}
Expand Down
3,420 changes: 1,716 additions & 1,704 deletions src/main/webapp/js/app.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main/webapp/js/diagramly/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ App.pluginRegistry = {'4xAKTrabTpTzahoLthkwPNUn': 'plugins/explore.js',
'ac': 'plugins/connect.js', 'acj': 'plugins/connectJira.js',
'ac148': 'plugins/cConf-1-4-8.js', 'ac148cmnt': 'plugins/cConf-comments.js',
'nxtcld': 'plugins/nextcloud.js',
'monday': 'plugins/monday.js',
'voice': 'plugins/voice.js',
'tips': 'plugins/tooltips.js', 'svgdata': 'plugins/svgdata.js',
'electron': 'plugins/electron.js',
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/js/diagramly/Devel.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if (!mxIsElectron && location.protocol !== 'http:')
if (urlParams['print-csp'] == '1')
{
console.log('Content-Security-Policy');
var app_diagrams_net = csp.replace(/%script-src%/g, 'https://www.dropbox.com https://api.trello.com').
var app_diagrams_net = csp.replace(/%script-src%/g, 'https://www.dropbox.com https://api.trello.com https://cdn.jsdelivr.net/npm/monday-sdk-js/dist/main.js').
replace(/%connect-src%/g, 'https://*.dropboxapi.com https://api.trello.com').
replace(/%frame-src%/g, '').
replace(/%style-src%/g, '').
Expand Down
33 changes: 19 additions & 14 deletions src/main/webapp/js/diagramly/Dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3888,7 +3888,7 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
var currentEntry = null, lastEntry = null;

// Adds local basic templates
categories['basic'] = [{title: 'blankDiagram', select: true}];
categories['basic'] = [{title: 'blankDiagram'}];
var templates = categories['basic'];

if (editorUi.isExternalDataComms() && editorUi.getServiceName() == 'draw.io')
Expand Down Expand Up @@ -4127,10 +4127,14 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
{
if (currentEntry != entry)
{
currentEntry.style.backgroundColor = '';
if (currentEntry != null)
{
currentEntry.style.backgroundColor = '';
}

currentEntry = entry;
currentEntry.style.backgroundColor = leftHighlight;

div.scrollTop = 0;
div.innerText = '';
i0 = 0;
Expand Down Expand Up @@ -4164,6 +4168,9 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc

for (var cat in categories)
{
var templateList = null;
var clickElem = null;

if (categories[cat].content != null)
{
var entry = document.createElement(subCats? 'ul' : 'div');
Expand All @@ -4174,14 +4181,14 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
mxUtils.write(entry, title);

list.appendChild(entry);
addEntryHandler(cat, entry);
clickElem = entry;
}
else
{
var subCats = subCategories[cat];
var entry = document.createElement(subCats? 'ul' : 'div');
var clickElem = entry;
var templateList = categories[cat];
templateList = categories[cat];
var entryTitle = getEntryTitle(cat, templateList);

if (subCats != null)
Expand Down Expand Up @@ -4245,15 +4252,13 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
}

list.appendChild(entry);

if (currentEntry == null && templateList.length > 0)
{
currentEntry = entry;
currentEntry.style.backgroundColor = leftHighlight;
templates = templateList;
}

addEntryHandler(cat, clickElem);
}

addEntryHandler(cat, clickElem);

if (currentEntry == null)
{
clickElem.click();
}
}

Expand Down
11 changes: 0 additions & 11 deletions src/main/webapp/js/diagramly/DriveFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,17 +753,6 @@ DriveFile.prototype.getDescriptorChecksum = function(desc)
{
result = tokens[1];
}



else
{


console.log('checksum ignored', value)

}

}

return result;
Expand Down
Loading

0 comments on commit d27dfa2

Please sign in to comment.