@formicoidea/labre-framework-uml 0.42.0 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drawio-import.js +7 -0
- package/package.json +3 -3
package/dist/drawio-import.js
CHANGED
|
@@ -741,6 +741,11 @@ export function importDrawio(xml, options = {}) {
|
|
|
741
741
|
? [
|
|
742
742
|
{
|
|
743
743
|
id: UML_DRAWIO_FORMAT_ID,
|
|
744
|
+
// The LAST resort, reached only by a headless call that names
|
|
745
|
+
// nothing: the editor's own import resolves
|
|
746
|
+
// `com.labre.interchange.import.default-name` and passes it as
|
|
747
|
+
// `options.name` (#390), so this reader stays pure and the two
|
|
748
|
+
// spellings are the same English text on purpose.
|
|
744
749
|
name: sheetName?.trim() || 'Imported diagram',
|
|
745
750
|
lifelines,
|
|
746
751
|
messages,
|
|
@@ -858,6 +863,8 @@ function emptyModel(name,
|
|
|
858
863
|
// nowhere else, so a drawing that holds one is an `sd` sheet and saying so
|
|
859
864
|
// costs the author a retag they would otherwise have to make.
|
|
860
865
|
kind = DIAGRAM_KIND) {
|
|
866
|
+
// Same last resort as in `readSequence`: the editor's import resolves
|
|
867
|
+
// `com.labre.interchange.import.default-name` and hands it over as `name`.
|
|
861
868
|
const label = name?.trim() || 'Imported diagram';
|
|
862
869
|
return {
|
|
863
870
|
diagram: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-uml",
|
|
3
3
|
"description": "Labre uml framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.43.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@formicoidea/labre-core": "0.
|
|
35
|
-
"@formicoidea/labre-ddd-shared": "0.
|
|
34
|
+
"@formicoidea/labre-core": "0.43.1",
|
|
35
|
+
"@formicoidea/labre-ddd-shared": "0.43.1",
|
|
36
36
|
"lit": "^3.2.0"
|
|
37
37
|
}
|
|
38
38
|
}
|