@zenuml/core 2.0.2 → 2.0.3
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/README.md +7 -8
- package/dist/zenuml/core.common.js +18 -10
- package/dist/zenuml/core.common.js.map +1 -1
- package/dist/zenuml/core.css +1 -1
- package/dist/zenuml/core.umd.js +18 -10
- package/dist/zenuml/core.umd.js.map +1 -1
- package/dist/zenuml/core.umd.min.js +2 -2
- package/dist/zenuml/core.umd.min.js.map +1 -1
- package/docs/images/editor-sample.png +0 -0
- package/package.json +1 -1
- package/tailwind.config.js +1 -0
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export images.
|
|
3
|
-
|
|
1
|
+

|
|
4
2
|
# ZenUML/Core
|
|
5
|
-
ZenUML is JavaScript-based diagramming tool that uses Markdown-inspired text definitions
|
|
3
|
+
ZenUML is JavaScript-based diagramming tool that requires **no server**. It uses Markdown-inspired text definitions
|
|
6
4
|
and a renderer to create and modify sequence diagrams. The main purpose of ZenUML is to
|
|
7
5
|
help documentation catch up with development.
|
|
8
6
|
|
|
@@ -15,11 +13,12 @@ You can use it ZenUML on your favorite platforms and applications:
|
|
|
15
13
|
* [JetBrains Plugin](https://plugins.jetbrains.com/plugin/12437-zenuml-support)
|
|
16
14
|
* [Chrome Extension](https://chrome.google.com/webstore/detail/zenuml-sequence/kcpganeflmhffnlofpdmcjklmdpbbmef)
|
|
17
15
|
|
|
18
|
-
#
|
|
16
|
+
# Integrations
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
ZenUML can be integrated with your favorite tools and platforms as a library or an embeddable widget.
|
|
19
|
+
Please follow the [integration guide](./docs/asciidoc/integration-guide.adoc) for detailed steps.
|
|
20
|
+
|
|
21
|
+
# Development
|
|
23
22
|
|
|
24
23
|
````
|
|
25
24
|
yarn install
|
|
@@ -1319,7 +1319,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
1319
1319
|
|
|
1320
1320
|
/***/ }),
|
|
1321
1321
|
|
|
1322
|
-
/***/
|
|
1322
|
+
/***/ 8441:
|
|
1323
1323
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1324
1324
|
|
|
1325
1325
|
"use strict";
|
|
@@ -1332,8 +1332,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1332
1332
|
"default": () => (/* binding */ Participant)
|
|
1333
1333
|
});
|
|
1334
1334
|
|
|
1335
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/lifeline/Participant.vue?vue&type=template&id=
|
|
1336
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"participant",staticClass:"relative participant flex flex-col justify-center z-10 h-10",class:{'selected': _vm.selected, 'border-transparent': !!_vm.icon},style:({backgroundColor: _vm.backgroundColor, color: _vm.color}),on:{"click":_vm.onSelect}},[(!!_vm.icon)?_c('img',{staticClass:"absolute left-1/2 transform -translate-x-1/2 -translate-y-full h-8",attrs:{"src":_vm.icon,"alt":("icon for " + (_vm.entity.name))}}):_vm._e(),_c('div',{staticClass:"h-5 flex flex-col justify-center"},[(_vm.stereotype)?_c('label',{staticClass:"interface"},[_vm._v("«"+_vm._s(_vm.stereotype)+"»")]):_vm._e(),_c('label',{staticClass:"name"},[_vm._v(_vm._s(_vm.entity.label || _vm.entity.name))])])])}
|
|
1335
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/lifeline/Participant.vue?vue&type=template&id=7caf2a4e&scoped=true&
|
|
1336
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"participant",staticClass:"relative participant flex flex-col justify-center z-10 h-10",class:{'selected': _vm.selected, 'border-transparent': !!_vm.icon},style:({backgroundColor: _vm.backgroundColor, color: _vm.color}),on:{"click":_vm.onSelect}},[(!!_vm.icon)?_c('img',{staticClass:"absolute left-1/2 transform -translate-x-1/2 -translate-y-full h-8",attrs:{"src":_vm.icon,"alt":("icon for " + (_vm.entity.name))}}):_vm._e(),_c('div',{staticClass:"h-5 group flex flex-col justify-center"},[_c('span',{staticClass:"absolute hidden rounded-lg transform -translate-y-8 bg-gray-400 px-2 py-1 text-center text-sm text-white group-hover:flex"},[_vm._v(" "+_vm._s(_vm.comment)+" ")]),(_vm.stereotype)?_c('label',{staticClass:"interface"},[_vm._v("«"+_vm._s(_vm.stereotype)+"»")]):_vm._e(),_c('label',{staticClass:"name"},[_vm._v(_vm._s(_vm.entity.label || _vm.entity.name))])])])}
|
|
1337
1337
|
var staticRenderFns = []
|
|
1338
1338
|
|
|
1339
1339
|
|
|
@@ -1357,7 +1357,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
1357
1357
|
staticRenderFns,
|
|
1358
1358
|
false,
|
|
1359
1359
|
null,
|
|
1360
|
-
"
|
|
1360
|
+
"7caf2a4e",
|
|
1361
1361
|
null
|
|
1362
1362
|
|
|
1363
1363
|
)
|
|
@@ -26510,7 +26510,7 @@ exports.ParticipantType = ParticipantType;
|
|
|
26510
26510
|
ParticipantType[ParticipantType["Undefined"] = 14] = "Undefined";
|
|
26511
26511
|
})(ParticipantType || (exports.ParticipantType = ParticipantType = {}));
|
|
26512
26512
|
class Participant {
|
|
26513
|
-
constructor(name, isStarter, stereotype, width, groupId, label, explicit, type, color) {
|
|
26513
|
+
constructor(name, isStarter, stereotype, width, groupId, label, explicit, type, color, comment) {
|
|
26514
26514
|
this.name = name;
|
|
26515
26515
|
this.stereotype = stereotype;
|
|
26516
26516
|
this.width = width;
|
|
@@ -26520,6 +26520,7 @@ class Participant {
|
|
|
26520
26520
|
this.label = label;
|
|
26521
26521
|
this.type = type;
|
|
26522
26522
|
this.color = color;
|
|
26523
|
+
this.comment = comment;
|
|
26523
26524
|
}
|
|
26524
26525
|
Type() {
|
|
26525
26526
|
var _a;
|
|
@@ -26559,8 +26560,8 @@ class Participants {
|
|
|
26559
26560
|
constructor() {
|
|
26560
26561
|
this.participants = new Map();
|
|
26561
26562
|
}
|
|
26562
|
-
Add(name, isStarter, stereotype, width, groupId, label, explicit, type, color) {
|
|
26563
|
-
const participant = new Participant(name, isStarter, stereotype, width, groupId, label, explicit, type, color);
|
|
26563
|
+
Add(name, isStarter, stereotype, width, groupId, label, explicit, type, color, comment) {
|
|
26564
|
+
const participant = new Participant(name, isStarter, stereotype, width, groupId, label, explicit, type, color, comment);
|
|
26564
26565
|
this.participants.set(name, (0, _mergeWith.default)({}, this.Get(name), participant, (a, b) => a || b));
|
|
26565
26566
|
}
|
|
26566
26567
|
// Returns an array of participants that are deduced from messages
|
|
@@ -27534,7 +27535,7 @@ exports.Z = void 0;
|
|
|
27534
27535
|
//
|
|
27535
27536
|
//
|
|
27536
27537
|
|
|
27537
|
-
const commitHash = "
|
|
27538
|
+
const commitHash = "6eb04bb";
|
|
27538
27539
|
const gitBranch = "main";
|
|
27539
27540
|
var _default = {
|
|
27540
27541
|
name: "Debug",
|
|
@@ -29010,7 +29011,7 @@ Object.defineProperty(exports, "X", ({
|
|
|
29010
29011
|
exports.Z = void 0;
|
|
29011
29012
|
var _logger = _interopRequireDefault(__webpack_require__(3416));
|
|
29012
29013
|
var _vuex = __webpack_require__(629);
|
|
29013
|
-
var _Participant = _interopRequireDefault(__webpack_require__(
|
|
29014
|
+
var _Participant = _interopRequireDefault(__webpack_require__(8441));
|
|
29014
29015
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29015
29016
|
//
|
|
29016
29017
|
//
|
|
@@ -29268,6 +29269,9 @@ var _Color = __webpack_require__(7271);
|
|
|
29268
29269
|
//
|
|
29269
29270
|
//
|
|
29270
29271
|
//
|
|
29272
|
+
//
|
|
29273
|
+
//
|
|
29274
|
+
//
|
|
29271
29275
|
|
|
29272
29276
|
const iconPath = {
|
|
29273
29277
|
actor: __webpack_require__(4347),
|
|
@@ -29355,6 +29359,9 @@ var _default = {
|
|
|
29355
29359
|
stereotype() {
|
|
29356
29360
|
return this.entity.stereotype;
|
|
29357
29361
|
},
|
|
29362
|
+
comment() {
|
|
29363
|
+
return this.entity.comment;
|
|
29364
|
+
},
|
|
29358
29365
|
icon() {
|
|
29359
29366
|
var _this$entity$type;
|
|
29360
29367
|
return iconPath[(_this$entity$type = this.entity.type) === null || _this$entity$type === void 0 ? void 0 : _this$entity$type.toLowerCase()];
|
|
@@ -35432,7 +35439,8 @@ let onParticipant = function (ctx) {
|
|
|
35432
35439
|
const label = ctx.label && ((_ctx$label = ctx.label()) === null || _ctx$label === void 0 ? void 0 : (_ctx$label$name = _ctx$label.name()) === null || _ctx$label$name === void 0 ? void 0 : _ctx$label$name.getFormattedText());
|
|
35433
35440
|
const explicit = true;
|
|
35434
35441
|
const color = (_ctx$COLOR = ctx.COLOR()) === null || _ctx$COLOR === void 0 ? void 0 : _ctx$COLOR.getText();
|
|
35435
|
-
|
|
35442
|
+
const comment = ctx.getComment();
|
|
35443
|
+
participants.Add(participant, false, stereotype, width, groupId, label, explicit, type, color, comment);
|
|
35436
35444
|
};
|
|
35437
35445
|
ToCollector.prototype.enterParticipant = onParticipant;
|
|
35438
35446
|
let onTo = function (ctx) {
|