@camunda/play 3.2.2-rc.1 → 3.3.0
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/build/index.js +165 -165
- package/package.json +7 -6
package/build/index.js
CHANGED
|
@@ -2487,7 +2487,7 @@ function Fs(i, e, t) {
|
|
|
2487
2487
|
}), i;
|
|
2488
2488
|
}
|
|
2489
2489
|
var H7 = /* @__PURE__ */ Symbol("mobx-keys");
|
|
2490
|
-
function
|
|
2490
|
+
function Li(i, e, t) {
|
|
2491
2491
|
return process.env.NODE_ENV !== "production" && (!Io(i) && !Io(Object.getPrototypeOf(i)) && Ke("'makeAutoObservable' can only be used for classes that don't have a superclass"), J2(i) && Ke("makeAutoObservable can only be used on objects not already made observable")), Io(i) ? w_e(i, i, e, t) : (k1(function() {
|
|
2492
2492
|
var n = Z0(i, t)[Ot];
|
|
2493
2493
|
if (!i[H7]) {
|
|
@@ -2720,33 +2720,33 @@ var Sb = {
|
|
|
2720
2720
|
return n > -1 ? (this.splice(n, 1), !0) : !1;
|
|
2721
2721
|
}
|
|
2722
2722
|
};
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
function
|
|
2723
|
+
ki("at", _a);
|
|
2724
|
+
ki("concat", _a);
|
|
2725
|
+
ki("flat", _a);
|
|
2726
|
+
ki("includes", _a);
|
|
2727
|
+
ki("indexOf", _a);
|
|
2728
|
+
ki("join", _a);
|
|
2729
|
+
ki("lastIndexOf", _a);
|
|
2730
|
+
ki("slice", _a);
|
|
2731
|
+
ki("toString", _a);
|
|
2732
|
+
ki("toLocaleString", _a);
|
|
2733
|
+
ki("toSorted", _a);
|
|
2734
|
+
ki("toSpliced", _a);
|
|
2735
|
+
ki("with", _a);
|
|
2736
|
+
ki("every", mc);
|
|
2737
|
+
ki("filter", mc);
|
|
2738
|
+
ki("find", mc);
|
|
2739
|
+
ki("findIndex", mc);
|
|
2740
|
+
ki("findLast", mc);
|
|
2741
|
+
ki("findLastIndex", mc);
|
|
2742
|
+
ki("flatMap", mc);
|
|
2743
|
+
ki("forEach", mc);
|
|
2744
|
+
ki("map", mc);
|
|
2745
|
+
ki("some", mc);
|
|
2746
|
+
ki("toReversed", mc);
|
|
2747
|
+
ki("reduce", E_e);
|
|
2748
|
+
ki("reduceRight", E_e);
|
|
2749
|
+
function ki(i, e) {
|
|
2750
2750
|
typeof Array.prototype[i] == "function" && (Sb[i] = e(i));
|
|
2751
2751
|
}
|
|
2752
2752
|
function _a(i) {
|
|
@@ -4408,7 +4408,7 @@ const VH = {
|
|
|
4408
4408
|
let FFe = class {
|
|
4409
4409
|
state = { ...VH };
|
|
4410
4410
|
constructor() {
|
|
4411
|
-
|
|
4411
|
+
Li(this);
|
|
4412
4412
|
}
|
|
4413
4413
|
fetchElementInstances = async ({
|
|
4414
4414
|
instanceKey: e,
|
|
@@ -4467,7 +4467,7 @@ const Oo = new FFe(), j_e = (i) => {
|
|
|
4467
4467
|
let zFe = class {
|
|
4468
4468
|
state = { ...HH };
|
|
4469
4469
|
constructor() {
|
|
4470
|
-
|
|
4470
|
+
Li(this);
|
|
4471
4471
|
}
|
|
4472
4472
|
setDiagramDetails = async (e) => {
|
|
4473
4473
|
const { rootElement: t, elementsById: n } = await PFe(e);
|
|
@@ -4624,7 +4624,7 @@ let UFe = class {
|
|
|
4624
4624
|
canUserSaveExampleData = !1;
|
|
4625
4625
|
diagramId;
|
|
4626
4626
|
constructor() {
|
|
4627
|
-
|
|
4627
|
+
Li(this);
|
|
4628
4628
|
}
|
|
4629
4629
|
init({
|
|
4630
4630
|
xml: e,
|
|
@@ -5361,7 +5361,7 @@ const FH = {
|
|
|
5361
5361
|
let YFe = class {
|
|
5362
5362
|
state = { ...FH };
|
|
5363
5363
|
constructor() {
|
|
5364
|
-
|
|
5364
|
+
Li(this);
|
|
5365
5365
|
}
|
|
5366
5366
|
fetchIncidents = async ({
|
|
5367
5367
|
instanceKey: e,
|
|
@@ -5403,7 +5403,7 @@ const m0 = new YFe(), zH = {
|
|
|
5403
5403
|
let XFe = class {
|
|
5404
5404
|
state = { ...zH };
|
|
5405
5405
|
constructor() {
|
|
5406
|
-
|
|
5406
|
+
Li(this);
|
|
5407
5407
|
}
|
|
5408
5408
|
fetchMessageSubscriptions = async ({ instanceKey: e }) => {
|
|
5409
5409
|
this.startFetching();
|
|
@@ -5432,7 +5432,7 @@ const Vw = new XFe(), WH = {
|
|
|
5432
5432
|
class JFe {
|
|
5433
5433
|
state = { ...WH };
|
|
5434
5434
|
constructor() {
|
|
5435
|
-
|
|
5435
|
+
Li(this);
|
|
5436
5436
|
}
|
|
5437
5437
|
fetchMessageSubscriptions = async ({ playId: e }) => {
|
|
5438
5438
|
this.startFetching();
|
|
@@ -5469,7 +5469,7 @@ let eze = class {
|
|
|
5469
5469
|
processManuallyCompletedDisposer = null;
|
|
5470
5470
|
calledProcessDisposer = null;
|
|
5471
5471
|
constructor() {
|
|
5472
|
-
|
|
5472
|
+
Li(this, { init: !1 });
|
|
5473
5473
|
}
|
|
5474
5474
|
init = () => {
|
|
5475
5475
|
this.calledProcessDisposer = n2(
|
|
@@ -5526,7 +5526,7 @@ const Ut = new eze(), ZH = {
|
|
|
5526
5526
|
let tze = class {
|
|
5527
5527
|
state = { ...ZH };
|
|
5528
5528
|
constructor() {
|
|
5529
|
-
|
|
5529
|
+
Li(this);
|
|
5530
5530
|
}
|
|
5531
5531
|
fetchUserTasks = async ({ instanceKey: e }) => {
|
|
5532
5532
|
this.startFetching();
|
|
@@ -5555,7 +5555,7 @@ const Bw = new tze(), UH = {
|
|
|
5555
5555
|
let nze = class {
|
|
5556
5556
|
state = { ...UH };
|
|
5557
5557
|
constructor() {
|
|
5558
|
-
|
|
5558
|
+
Li(this);
|
|
5559
5559
|
}
|
|
5560
5560
|
fetchTimers = async ({ instanceKey: e }) => {
|
|
5561
5561
|
this.startFetching();
|
|
@@ -5584,7 +5584,7 @@ const Tb = new nze(), qH = {
|
|
|
5584
5584
|
let ize = class {
|
|
5585
5585
|
state = { ...qH };
|
|
5586
5586
|
constructor() {
|
|
5587
|
-
|
|
5587
|
+
Li(this);
|
|
5588
5588
|
}
|
|
5589
5589
|
fetchTimers = async ({ playId: e }) => {
|
|
5590
5590
|
this.startFetching();
|
|
@@ -5611,7 +5611,7 @@ let rze = class {
|
|
|
5611
5611
|
state = { ...GH };
|
|
5612
5612
|
rootNodeSelectionDisposer = null;
|
|
5613
5613
|
constructor() {
|
|
5614
|
-
|
|
5614
|
+
Li(this, { init: !1 });
|
|
5615
5615
|
}
|
|
5616
5616
|
init = () => {
|
|
5617
5617
|
this.rootNodeSelectionDisposer = n2(
|
|
@@ -5671,7 +5671,7 @@ const rh = new rze(), QH = {
|
|
|
5671
5671
|
let sze = class {
|
|
5672
5672
|
state = { ...QH };
|
|
5673
5673
|
constructor() {
|
|
5674
|
-
|
|
5674
|
+
Li(this);
|
|
5675
5675
|
}
|
|
5676
5676
|
fetchVariables = async ({ instanceKey: e }) => {
|
|
5677
5677
|
this.startFetching();
|
|
@@ -5725,7 +5725,7 @@ const il = new sze(), KH = {
|
|
|
5725
5725
|
let oze = class {
|
|
5726
5726
|
state = { ...KH };
|
|
5727
5727
|
constructor() {
|
|
5728
|
-
|
|
5728
|
+
Li(this);
|
|
5729
5729
|
}
|
|
5730
5730
|
fetchJobs = async ({ instanceKey: e }) => {
|
|
5731
5731
|
this.startFetching();
|
|
@@ -5796,7 +5796,7 @@ const $r = new oze(), YH = {
|
|
|
5796
5796
|
let aze = class {
|
|
5797
5797
|
state = { ...YH };
|
|
5798
5798
|
constructor() {
|
|
5799
|
-
|
|
5799
|
+
Li(this);
|
|
5800
5800
|
}
|
|
5801
5801
|
fetchChildInstances = async ({ instanceKey: e }) => {
|
|
5802
5802
|
this.startFetching();
|
|
@@ -29670,7 +29670,7 @@ const Bot = G.button`
|
|
|
29670
29670
|
&:hover {
|
|
29671
29671
|
color: var(--cds-blue-70);
|
|
29672
29672
|
}
|
|
29673
|
-
`, Fot = Pot,
|
|
29673
|
+
`, Fot = Pot, Mi = {
|
|
29674
29674
|
title: "Unable to process request",
|
|
29675
29675
|
subtitle: "Please try again"
|
|
29676
29676
|
}, zot = 255, bd = "Instance started", Wot = [
|
|
@@ -30278,7 +30278,7 @@ const Pwe = G.header`
|
|
|
30278
30278
|
let oat = class {
|
|
30279
30279
|
state = { ...zwe };
|
|
30280
30280
|
constructor() {
|
|
30281
|
-
|
|
30281
|
+
Li(this);
|
|
30282
30282
|
}
|
|
30283
30283
|
fetchInstances = async ({ id: e }) => {
|
|
30284
30284
|
this.startFetching();
|
|
@@ -35502,7 +35502,7 @@ const to = {
|
|
|
35502
35502
|
};
|
|
35503
35503
|
}
|
|
35504
35504
|
return () => zb();
|
|
35505
|
-
})(),
|
|
35505
|
+
})(), Di = {
|
|
35506
35506
|
// path.resolve([from ...], to)
|
|
35507
35507
|
resolve(...i) {
|
|
35508
35508
|
let e = "", t = !1;
|
|
@@ -35529,10 +35529,10 @@ const to = {
|
|
|
35529
35529
|
const n = i[t];
|
|
35530
35530
|
Gi(n, "path"), n.length > 0 && (e === void 0 ? e = n : e += `/${n}`);
|
|
35531
35531
|
}
|
|
35532
|
-
return e === void 0 ? "." :
|
|
35532
|
+
return e === void 0 ? "." : Di.normalize(e);
|
|
35533
35533
|
},
|
|
35534
35534
|
relative(i, e) {
|
|
35535
|
-
if (Gi(i, "from"), Gi(e, "to"), i === e || (i =
|
|
35535
|
+
if (Gi(i, "from"), Gi(e, "to"), i === e || (i = Di.resolve(i), e = Di.resolve(e), i === e))
|
|
35536
35536
|
return "";
|
|
35537
35537
|
const t = 1, n = i.length, r = n - t, s = 1, o = e.length - s, a = r < o ? r : o;
|
|
35538
35538
|
let l = -1, c = 0;
|
|
@@ -35652,9 +35652,9 @@ const to = {
|
|
|
35652
35652
|
win32: null,
|
|
35653
35653
|
posix: null
|
|
35654
35654
|
};
|
|
35655
|
-
|
|
35656
|
-
|
|
35657
|
-
const kxe = N1 ? to.normalize :
|
|
35655
|
+
Di.win32 = to.win32 = to;
|
|
35656
|
+
Di.posix = to.posix = Di;
|
|
35657
|
+
const kxe = N1 ? to.normalize : Di.normalize, Act = N1 ? to.resolve : Di.resolve, wct = N1 ? to.relative : Di.relative, vct = N1 ? to.dirname : Di.dirname, Nxe = N1 ? to.basename : Di.basename, bct = N1 ? to.extname : Di.extname, Yu = N1 ? to.sep : Di.sep, yct = /^\w[\w\d+.-]*$/, Cct = /^\//, Ect = /^\/\//;
|
|
35658
35658
|
function _ct(i, e) {
|
|
35659
35659
|
if (!i.scheme && e)
|
|
35660
35660
|
throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${i.authority}", path: "${i.path}", query: "${i.query}", fragment: "${i.fragment}"}`);
|
|
@@ -35788,7 +35788,7 @@ class Bt {
|
|
|
35788
35788
|
if (!e.path)
|
|
35789
35789
|
throw new Error("[UriError]: cannot call joinPath on URI without path");
|
|
35790
35790
|
let n;
|
|
35791
|
-
return Bs && e.scheme === "file" ? n = Bt.file(to.join(jb(e, !0), ...t)).path : n =
|
|
35791
|
+
return Bs && e.scheme === "file" ? n = Bt.file(to.join(jb(e, !0), ...t)).path : n = Di.join(e.path, ...t), e.with({ path: n });
|
|
35792
35792
|
}
|
|
35793
35793
|
// ---- printing/externalize ---------------------------
|
|
35794
35794
|
/**
|
|
@@ -37312,7 +37312,7 @@ class Oct {
|
|
|
37312
37312
|
return this._tokenizationSupport || (this._tokenizationSupport = this.createSupport()), this._tokenizationSupport;
|
|
37313
37313
|
}
|
|
37314
37314
|
}
|
|
37315
|
-
const
|
|
37315
|
+
const Si = new Nct();
|
|
37316
37316
|
var dve;
|
|
37317
37317
|
(function(i) {
|
|
37318
37318
|
i[i.Invoke = 0] = "Invoke", i[i.Automatic = 1] = "Automatic";
|
|
@@ -39300,7 +39300,7 @@ class Bht {
|
|
|
39300
39300
|
this._preferredWebSchema = e;
|
|
39301
39301
|
}
|
|
39302
39302
|
get _remoteResourcesPath() {
|
|
39303
|
-
return
|
|
39303
|
+
return Di.join(this._serverRootPath, Ct.vscodeRemoteResource);
|
|
39304
39304
|
}
|
|
39305
39305
|
rewrite(e) {
|
|
39306
39306
|
if (this._delegate)
|
|
@@ -50701,7 +50701,7 @@ class xft {
|
|
|
50701
50701
|
this._lastTokenType === t && this._lastTokenLanguage === this._languageId || (this._lastTokenType = t, this._lastTokenLanguage = this._languageId, this._tokens.push(new Zw(e, t, this._languageId)));
|
|
50702
50702
|
}
|
|
50703
50703
|
nestedLanguageTokenize(e, t, n, r) {
|
|
50704
|
-
const s = n.languageId, o = n.state, a =
|
|
50704
|
+
const s = n.languageId, o = n.state, a = Si.get(s);
|
|
50705
50705
|
if (!a)
|
|
50706
50706
|
return this.enterLanguage(s), this.emit(r, ""), o;
|
|
50707
50707
|
const l = a.tokenize(e, t, o);
|
|
@@ -50742,7 +50742,7 @@ class a8 {
|
|
|
50742
50742
|
return n !== null && a.set(n, r + s), a;
|
|
50743
50743
|
}
|
|
50744
50744
|
nestedLanguageTokenize(e, t, n, r) {
|
|
50745
|
-
const s = n.languageId, o = n.state, a =
|
|
50745
|
+
const s = n.languageId, o = n.state, a = Si.get(s);
|
|
50746
50746
|
if (!a)
|
|
50747
50747
|
return this.enterLanguage(s), this.emit(r, ""), o;
|
|
50748
50748
|
const l = a.tokenizeEncoded(e, t, o);
|
|
@@ -50759,7 +50759,7 @@ let tv = oL = class extends me {
|
|
|
50759
50759
|
constructor(e, t, n, r, s) {
|
|
50760
50760
|
super(), this._configurationService = s, this._languageService = e, this._standaloneThemeService = t, this._languageId = n, this._lexer = r, this._embeddedLanguages = /* @__PURE__ */ Object.create(null), this.embeddedLoaded = Promise.resolve(void 0);
|
|
50761
50761
|
let o = !1;
|
|
50762
|
-
this._register(
|
|
50762
|
+
this._register(Si.onDidChange((a) => {
|
|
50763
50763
|
if (o)
|
|
50764
50764
|
return;
|
|
50765
50765
|
let l = !1;
|
|
@@ -50770,7 +50770,7 @@ let tv = oL = class extends me {
|
|
|
50770
50770
|
break;
|
|
50771
50771
|
}
|
|
50772
50772
|
}
|
|
50773
|
-
l && (o = !0,
|
|
50773
|
+
l && (o = !0, Si.handleChange([this._languageId]), o = !1);
|
|
50774
50774
|
})), this._maxTokenizationLineLength = this._configurationService.getValue("editor.maxTokenizationLineLength", {
|
|
50775
50775
|
overrideIdentifier: this._languageId
|
|
50776
50776
|
}), this._register(this._configurationService.onDidChangeConfiguration((a) => {
|
|
@@ -50782,7 +50782,7 @@ let tv = oL = class extends me {
|
|
|
50782
50782
|
getLoadStatus() {
|
|
50783
50783
|
const e = [];
|
|
50784
50784
|
for (const t in this._embeddedLanguages) {
|
|
50785
|
-
const n =
|
|
50785
|
+
const n = Si.get(t);
|
|
50786
50786
|
if (n) {
|
|
50787
50787
|
if (n instanceof oL) {
|
|
50788
50788
|
const r = n.getLoadStatus();
|
|
@@ -50790,7 +50790,7 @@ let tv = oL = class extends me {
|
|
|
50790
50790
|
}
|
|
50791
50791
|
continue;
|
|
50792
50792
|
}
|
|
50793
|
-
|
|
50793
|
+
Si.isResolved(t) || e.push(Si.getOrCreate(t));
|
|
50794
50794
|
}
|
|
50795
50795
|
return e.length === 0 ? {
|
|
50796
50796
|
loaded: !0
|
|
@@ -50991,8 +50991,8 @@ let tv = oL = class extends me {
|
|
|
50991
50991
|
_getNestedEmbeddedLanguageData(e) {
|
|
50992
50992
|
if (!this._languageService.isRegisteredLanguageId(e))
|
|
50993
50993
|
return new Jp(e, Jw);
|
|
50994
|
-
e !== this._languageId && (this._languageService.requestBasicLanguageFeatures(e),
|
|
50995
|
-
const t =
|
|
50994
|
+
e !== this._languageId && (this._languageService.requestBasicLanguageFeatures(e), Si.getOrCreate(e), this._embeddedLanguages[e] = !0);
|
|
50995
|
+
const t = Si.get(e);
|
|
50996
50996
|
return t ? new Jp(e, t.getInitialState()) : new Jp(e, Jw);
|
|
50997
50997
|
}
|
|
50998
50998
|
};
|
|
@@ -51044,7 +51044,7 @@ class CO {
|
|
|
51044
51044
|
const a = om(t);
|
|
51045
51045
|
if (!e.isRegisteredLanguageId(n))
|
|
51046
51046
|
return L3e(a, o, s);
|
|
51047
|
-
const l = await
|
|
51047
|
+
const l = await Si.getOrCreate(n);
|
|
51048
51048
|
return l ? Mft(a, o, l, s) : L3e(a, o, s);
|
|
51049
51049
|
}
|
|
51050
51050
|
static colorizeLine(e, t, n, r, s = 4) {
|
|
@@ -56058,7 +56058,7 @@ let CL = class extends co {
|
|
|
56058
56058
|
width: u,
|
|
56059
56059
|
height: this._lineHeight,
|
|
56060
56060
|
useCover: !1,
|
|
56061
|
-
color: (
|
|
56061
|
+
color: (Si.getColorMap() || [])[A.foreground],
|
|
56062
56062
|
italic: A.italic,
|
|
56063
56063
|
bold: A.bold,
|
|
56064
56064
|
underline: A.underline,
|
|
@@ -63018,12 +63018,12 @@ class DC extends me {
|
|
|
63018
63018
|
return this._INSTANCE || (this._INSTANCE = new DC()), this._INSTANCE;
|
|
63019
63019
|
}
|
|
63020
63020
|
constructor() {
|
|
63021
|
-
super(), this._onDidChange = new $(), this.onDidChange = this._onDidChange.event, this._updateColorMap(), this._register(
|
|
63021
|
+
super(), this._onDidChange = new $(), this.onDidChange = this._onDidChange.event, this._updateColorMap(), this._register(Si.onDidChange((e) => {
|
|
63022
63022
|
e.changedColorMap && this._updateColorMap();
|
|
63023
63023
|
}));
|
|
63024
63024
|
}
|
|
63025
63025
|
_updateColorMap() {
|
|
63026
|
-
const e =
|
|
63026
|
+
const e = Si.getColorMap();
|
|
63027
63027
|
if (!e) {
|
|
63028
63028
|
this._colors = [sa.Empty], this._backgroundIsLight = !0;
|
|
63029
63029
|
return;
|
|
@@ -64168,7 +64168,7 @@ class umt {
|
|
|
64168
64168
|
const l = n.get(
|
|
64169
64169
|
73
|
|
64170
64170
|
/* EditorOption.minimap */
|
|
64171
|
-
), c = l.enabled, d = l.side, u = t.getColor(Rgt), f =
|
|
64171
|
+
), c = l.enabled, d = l.side, u = t.getColor(Rgt), f = Si.getDefaultBackground();
|
|
64172
64172
|
u ? this.backgroundColor = u : c && d === "right" ? this.backgroundColor = f : this.backgroundColor = null;
|
|
64173
64173
|
const g = n.get(
|
|
64174
64174
|
146
|
|
@@ -64302,7 +64302,7 @@ class umt {
|
|
|
64302
64302
|
}
|
|
64303
64303
|
class fmt extends co {
|
|
64304
64304
|
constructor(e) {
|
|
64305
|
-
super(e), this._actualShouldRender = 0, this._renderedDecorations = [], this._renderedCursorPositions = [], this._domNode = qt(document.createElement("canvas")), this._domNode.setClassName("decorationsOverviewRuler"), this._domNode.setPosition("absolute"), this._domNode.setLayerHinting(!0), this._domNode.setContain("strict"), this._domNode.setAttribute("aria-hidden", "true"), this._updateSettings(!1), this._tokensColorTrackerListener =
|
|
64305
|
+
super(e), this._actualShouldRender = 0, this._renderedDecorations = [], this._renderedCursorPositions = [], this._domNode = qt(document.createElement("canvas")), this._domNode.setClassName("decorationsOverviewRuler"), this._domNode.setPosition("absolute"), this._domNode.setLayerHinting(!0), this._domNode.setContain("strict"), this._domNode.setAttribute("aria-hidden", "true"), this._updateSettings(!1), this._tokensColorTrackerListener = Si.onDidChange((t) => {
|
|
64306
64306
|
t.changedColorMap && this._updateSettings(!0);
|
|
64307
64307
|
}), this._cursorPositions = [{ position: new he(1, 1), color: this._settings.cursorColorSingle }];
|
|
64308
64308
|
}
|
|
@@ -68328,12 +68328,12 @@ function du(i) {
|
|
|
68328
68328
|
return i === 47 || i === 92;
|
|
68329
68329
|
}
|
|
68330
68330
|
function uMe(i) {
|
|
68331
|
-
return i.replace(/[\\/]/g,
|
|
68331
|
+
return i.replace(/[\\/]/g, Di.sep);
|
|
68332
68332
|
}
|
|
68333
68333
|
function fAt(i) {
|
|
68334
68334
|
return i.indexOf("/") === -1 && (i = uMe(i)), /^[a-zA-Z]:(\/|$)/.test(i) && (i = "/" + i), i;
|
|
68335
68335
|
}
|
|
68336
|
-
function E4e(i, e =
|
|
68336
|
+
function E4e(i, e = Di.sep) {
|
|
68337
68337
|
if (!i)
|
|
68338
68338
|
return "";
|
|
68339
68339
|
const t = i.length, n = i.charCodeAt(0);
|
|
@@ -68414,16 +68414,16 @@ class gAt {
|
|
|
68414
68414
|
return JO(e) || e.authority;
|
|
68415
68415
|
}
|
|
68416
68416
|
basename(e) {
|
|
68417
|
-
return
|
|
68417
|
+
return Di.basename(e.path);
|
|
68418
68418
|
}
|
|
68419
68419
|
extname(e) {
|
|
68420
|
-
return
|
|
68420
|
+
return Di.extname(e.path);
|
|
68421
68421
|
}
|
|
68422
68422
|
dirname(e) {
|
|
68423
68423
|
if (e.path.length === 0)
|
|
68424
68424
|
return e;
|
|
68425
68425
|
let t;
|
|
68426
|
-
return e.scheme === Ct.file ? t = Bt.file(vct(Bh(e))).path : (t =
|
|
68426
|
+
return e.scheme === Ct.file ? t = Bt.file(vct(Bh(e))).path : (t = Di.dirname(e.path), e.authority && t.length && t.charCodeAt(0) !== 47 && (console.error(`dirname("${e.toString})) resulted in a relative path`), t = "/")), e.with({
|
|
68427
68427
|
path: t
|
|
68428
68428
|
});
|
|
68429
68429
|
}
|
|
@@ -68431,7 +68431,7 @@ class gAt {
|
|
|
68431
68431
|
if (!e.path.length)
|
|
68432
68432
|
return e;
|
|
68433
68433
|
let t;
|
|
68434
|
-
return e.scheme === Ct.file ? t = Bt.file(kxe(Bh(e))).path : t =
|
|
68434
|
+
return e.scheme === Ct.file ? t = Bt.file(kxe(Bh(e))).path : t = Di.normalize(e.path), e.with({
|
|
68435
68435
|
path: t
|
|
68436
68436
|
});
|
|
68437
68437
|
}
|
|
@@ -68450,7 +68450,7 @@ class gAt {
|
|
|
68450
68450
|
;
|
|
68451
68451
|
n = r.substr(0, s) + n.substr(s);
|
|
68452
68452
|
}
|
|
68453
|
-
return
|
|
68453
|
+
return Di.relative(n, r);
|
|
68454
68454
|
}
|
|
68455
68455
|
resolvePath(e, t) {
|
|
68456
68456
|
if (e.scheme === Ct.file) {
|
|
@@ -68461,7 +68461,7 @@ class gAt {
|
|
|
68461
68461
|
});
|
|
68462
68462
|
}
|
|
68463
68463
|
return t = fAt(t), e.with({
|
|
68464
|
-
path:
|
|
68464
|
+
path: Di.resolve(e.path, t)
|
|
68465
68465
|
});
|
|
68466
68466
|
}
|
|
68467
68467
|
// --- misc
|
|
@@ -71385,7 +71385,7 @@ class KAt extends me {
|
|
|
71385
71385
|
return this._backgroundTokenizationState;
|
|
71386
71386
|
}
|
|
71387
71387
|
constructor(e, t, n, r) {
|
|
71388
|
-
super(), this._languageIdCodec = e, this._textModel = t, this.getLanguageId = n, this._tokenizer = null, this._defaultBackgroundTokenizer = null, this._backgroundTokenizer = this._register(new Pd()), this._tokens = new hv(this._languageIdCodec), this._debugBackgroundTokenizer = this._register(new Pd()), this._backgroundTokenizationState = 1, this._onDidChangeBackgroundTokenizationState = this._register(new $()), this.onDidChangeBackgroundTokenizationState = this._onDidChangeBackgroundTokenizationState.event, this._onDidChangeTokens = this._register(new $()), this.onDidChangeTokens = this._onDidChangeTokens.event, this._attachedViewStates = this._register(new II()), this._register(
|
|
71388
|
+
super(), this._languageIdCodec = e, this._textModel = t, this.getLanguageId = n, this._tokenizer = null, this._defaultBackgroundTokenizer = null, this._backgroundTokenizer = this._register(new Pd()), this._tokens = new hv(this._languageIdCodec), this._debugBackgroundTokenizer = this._register(new Pd()), this._backgroundTokenizationState = 1, this._onDidChangeBackgroundTokenizationState = this._register(new $()), this.onDidChangeBackgroundTokenizationState = this._onDidChangeBackgroundTokenizationState.event, this._onDidChangeTokens = this._register(new $()), this.onDidChangeTokens = this._onDidChangeTokens.event, this._attachedViewStates = this._register(new II()), this._register(Si.onDidChange((s) => {
|
|
71389
71389
|
const o = this.getLanguageId();
|
|
71390
71390
|
s.changedLanguages.indexOf(o) !== -1 && this.resetTokenization();
|
|
71391
71391
|
})), this.resetTokenization(), this._register(r.onDidChangeVisibleRanges(({ view: s, state: o }) => {
|
|
@@ -71409,7 +71409,7 @@ class KAt extends me {
|
|
|
71409
71409
|
const t = () => {
|
|
71410
71410
|
if (this._textModel.isTooLargeForTokenization())
|
|
71411
71411
|
return [null, null];
|
|
71412
|
-
const s =
|
|
71412
|
+
const s = Si.get(this.getLanguageId());
|
|
71413
71413
|
if (!s)
|
|
71414
71414
|
return [null, null];
|
|
71415
71415
|
let o;
|
|
@@ -74098,7 +74098,7 @@ const Z4e = {
|
|
|
74098
74098
|
async function Fwt(i, e, t) {
|
|
74099
74099
|
if (!t)
|
|
74100
74100
|
return U4e(e, i.languageIdCodec, Z4e);
|
|
74101
|
-
const n = await
|
|
74101
|
+
const n = await Si.getOrCreate(t);
|
|
74102
74102
|
return U4e(e, i.languageIdCodec, n || Z4e);
|
|
74103
74103
|
}
|
|
74104
74104
|
function zwt(i, e, t, n, r, s, o) {
|
|
@@ -76415,7 +76415,7 @@ let ovt = class extends me {
|
|
|
76415
76415
|
return l;
|
|
76416
76416
|
}
|
|
76417
76417
|
_getColorMap() {
|
|
76418
|
-
const e =
|
|
76418
|
+
const e = Si.getColorMap(), t = ["#000000"];
|
|
76419
76419
|
if (e)
|
|
76420
76420
|
for (let n = 1, r = e.length; n < r; n++)
|
|
76421
76421
|
t[n] = ge.Format.CSS.formatHex(e[n]);
|
|
@@ -79193,7 +79193,7 @@ function qvt(i, e) {
|
|
|
79193
79193
|
return o.length && (r.allPaths = o), r;
|
|
79194
79194
|
}
|
|
79195
79195
|
function c5e(i, e, t) {
|
|
79196
|
-
const n = Yu ===
|
|
79196
|
+
const n = Yu === Di.sep, r = n ? i : i.replace(Bvt, Yu), s = Yu + r, o = Di.sep + i;
|
|
79197
79197
|
let a;
|
|
79198
79198
|
return t ? a = function(l, c) {
|
|
79199
79199
|
return typeof l == "string" && (l === r || l.endsWith(s) || !n && (l === i || l.endsWith(o))) ? e : null;
|
|
@@ -84662,7 +84662,7 @@ function $4t(i, e) {
|
|
|
84662
84662
|
filenameLowercase: i.filename ? i.filename.toLowerCase() : void 0,
|
|
84663
84663
|
extensionLowercase: i.extension ? i.extension.toLowerCase() : void 0,
|
|
84664
84664
|
filepatternLowercase: i.filepattern ? VMe(i.filepattern.toLowerCase()) : void 0,
|
|
84665
|
-
filepatternOnPath: i.filepattern ? i.filepattern.indexOf(
|
|
84665
|
+
filepatternOnPath: i.filepattern ? i.filepattern.indexOf(Di.sep) >= 0 : !1
|
|
84666
84666
|
};
|
|
84667
84667
|
}
|
|
84668
84668
|
function e5t() {
|
|
@@ -84903,7 +84903,7 @@ class U8 extends me {
|
|
|
84903
84903
|
this._requestedBasicLanguages.has(e) || (this._requestedBasicLanguages.add(e), this._onDidRequestBasicLanguageFeatures.fire(e));
|
|
84904
84904
|
}
|
|
84905
84905
|
requestRichLanguageFeatures(e) {
|
|
84906
|
-
this._requestedRichLanguages.has(e) || (this._requestedRichLanguages.add(e), this.requestBasicLanguageFeatures(e),
|
|
84906
|
+
this._requestedRichLanguages.has(e) || (this._requestedRichLanguages.add(e), this.requestBasicLanguageFeatures(e), Si.getOrCreate(e), this._onDidRequestRichLanguageFeatures.fire(e));
|
|
84907
84907
|
}
|
|
84908
84908
|
}
|
|
84909
84909
|
class I5e {
|
|
@@ -98660,7 +98660,7 @@ ${this._themeCSS}`, this._globalStyleElement = null, this._styleElements = [], t
|
|
|
98660
98660
|
`)} }`);
|
|
98661
98661
|
const s = this._colorMapOverride || this._theme.tokenTheme.getColorMap();
|
|
98662
98662
|
n.addRule(N8t(s)), this._themeCSS = e.join(`
|
|
98663
|
-
`), this._updateCSS(),
|
|
98663
|
+
`), this._updateCSS(), Si.setColorMap(s), this._onColorThemeChange.fire(this._theme);
|
|
98664
98664
|
}
|
|
98665
98665
|
_updateCSS() {
|
|
98666
98666
|
this._allCSS = `${this._codiconCSS}
|
|
@@ -105211,14 +105211,14 @@ function Xyt(i, e, t = 4) {
|
|
|
105211
105211
|
return Ge.get(Cl).registerEditorContainer(En.document.body), CO.colorizeModelLine(i, e, t);
|
|
105212
105212
|
}
|
|
105213
105213
|
function Jyt(i) {
|
|
105214
|
-
const e =
|
|
105214
|
+
const e = Si.get(i);
|
|
105215
105215
|
return e || {
|
|
105216
105216
|
getInitialState: () => Jw,
|
|
105217
105217
|
tokenize: (t, n, r) => $Se(i, r)
|
|
105218
105218
|
};
|
|
105219
105219
|
}
|
|
105220
105220
|
function $yt(i, e) {
|
|
105221
|
-
|
|
105221
|
+
Si.getOrCreate(e);
|
|
105222
105222
|
const t = Jyt(e), n = om(i), r = [];
|
|
105223
105223
|
let s = t.getInitialState();
|
|
105224
105224
|
for (let o = 0, a = n.length; o < a; o++) {
|
|
@@ -105747,16 +105747,16 @@ function uV(i, e) {
|
|
|
105747
105747
|
const n = await Promise.resolve(e.create());
|
|
105748
105748
|
return n ? vCt(n) ? Cke(i, n) : new tv(Ge.get(or), Ge.get(Cl), i, bke(i, n), Ge.get(gi)) : null;
|
|
105749
105749
|
});
|
|
105750
|
-
return
|
|
105750
|
+
return Si.registerFactory(i, t);
|
|
105751
105751
|
}
|
|
105752
105752
|
function CCt(i, e) {
|
|
105753
105753
|
if (!Ge.get(or).isRegisteredLanguageId(i))
|
|
105754
105754
|
throw new Error(`Cannot set tokens provider for unknown language ${i}`);
|
|
105755
|
-
return yke(e) ? uV(i, { create: () => e }) :
|
|
105755
|
+
return yke(e) ? uV(i, { create: () => e }) : Si.register(i, Cke(i, e));
|
|
105756
105756
|
}
|
|
105757
105757
|
function ECt(i, e) {
|
|
105758
105758
|
const t = (n) => new tv(Ge.get(or), Ge.get(Cl), i, bke(i, n), Ge.get(gi));
|
|
105759
|
-
return yke(e) ? uV(i, { create: () => e }) :
|
|
105759
|
+
return yke(e) ? uV(i, { create: () => e }) : Si.register(i, t(e));
|
|
105760
105760
|
}
|
|
105761
105761
|
function _Ct(i, e) {
|
|
105762
105762
|
return Ge.get(Vn).referenceProvider.register(i, e);
|
|
@@ -109185,7 +109185,7 @@ const vEt = G.div`
|
|
|
109185
109185
|
b && m !== void 0 && ts(kr(m.key), {
|
|
109186
109186
|
action: "setVariables",
|
|
109187
109187
|
variables: v
|
|
109188
|
-
}), b || t.displayNotification?.error(
|
|
109188
|
+
}), b || t.displayNotification?.error(Mi), l(!1), r(null);
|
|
109189
109189
|
},
|
|
109190
109190
|
onClose: () => {
|
|
109191
109191
|
d(!1), r(null);
|
|
@@ -109221,7 +109221,7 @@ const vEt = G.div`
|
|
|
109221
109221
|
y && m !== void 0 && ts(kr(m.key), {
|
|
109222
109222
|
action: "setVariables",
|
|
109223
109223
|
variables: b
|
|
109224
|
-
}), y || t.displayNotification?.error(
|
|
109224
|
+
}), y || t.displayNotification?.error(Mi), l(!1), r(null);
|
|
109225
109225
|
},
|
|
109226
109226
|
onClose: () => {
|
|
109227
109227
|
f(!1), r(null);
|
|
@@ -109650,7 +109650,7 @@ const pbe = {
|
|
|
109650
109650
|
let n_t = class {
|
|
109651
109651
|
state = { ...pbe };
|
|
109652
109652
|
constructor() {
|
|
109653
|
-
|
|
109653
|
+
Li(this);
|
|
109654
109654
|
}
|
|
109655
109655
|
setupConnectors = async () => {
|
|
109656
109656
|
this.setIsReady(!1);
|
|
@@ -109794,7 +109794,7 @@ const wh = new n_t(), wV = rt(({ children: i, secrets: e }) => {
|
|
|
109794
109794
|
const f = Object.entries(d).map(
|
|
109795
109795
|
([g, m]) => ({ name: g, value: m })
|
|
109796
109796
|
);
|
|
109797
|
-
await wh.addConnectorSecrets(f) || t.displayNotification?.error(
|
|
109797
|
+
await wh.addConnectorSecrets(f) || t.displayNotification?.error(Mi), o(!1), r(!1);
|
|
109798
109798
|
},
|
|
109799
109799
|
variant: "primary",
|
|
109800
109800
|
children: "Update"
|
|
@@ -131741,9 +131741,9 @@ class Xc {
|
|
|
131741
131741
|
return new Xc(this.from, this.length + e.length, this.top, this.height + e.height, t);
|
|
131742
131742
|
}
|
|
131743
131743
|
}
|
|
131744
|
-
var
|
|
131744
|
+
var Ni = /* @__PURE__ */ function(i) {
|
|
131745
131745
|
return i[i.ByPos = 0] = "ByPos", i[i.ByHeight = 1] = "ByHeight", i[i.ByPosNoHeight = 2] = "ByPosNoHeight", i;
|
|
131746
|
-
}(
|
|
131746
|
+
}(Ni || (Ni = {}));
|
|
131747
131747
|
const ub = 1e-3;
|
|
131748
131748
|
class so {
|
|
131749
131749
|
constructor(e, t, n = 2) {
|
|
@@ -131774,9 +131774,9 @@ class so {
|
|
|
131774
131774
|
applyChanges(e, t, n, r) {
|
|
131775
131775
|
let s = this, o = n.doc;
|
|
131776
131776
|
for (let a = r.length - 1; a >= 0; a--) {
|
|
131777
|
-
let { fromA: l, toA: c, fromB: d, toB: u } = r[a], f = s.lineAt(l,
|
|
131777
|
+
let { fromA: l, toA: c, fromB: d, toB: u } = r[a], f = s.lineAt(l, Ni.ByPosNoHeight, n.setDoc(t), 0, 0), p = f.to >= c ? f : s.lineAt(c, Ni.ByPosNoHeight, n, 0, 0);
|
|
131778
131778
|
for (u += p.to - c, c = p.to; a > 0 && f.from <= r[a - 1].toA; )
|
|
131779
|
-
l = r[a - 1].fromA, d = r[a - 1].fromB, a--, l < f.from && (f = s.lineAt(l,
|
|
131779
|
+
l = r[a - 1].fromA, d = r[a - 1].fromB, a--, l < f.from && (f = s.lineAt(l, Ni.ByPosNoHeight, n, 0, 0));
|
|
131780
131780
|
d += f.from - l, l = f.from;
|
|
131781
131781
|
let g = iB.build(n.setDoc(o), e, d, u);
|
|
131782
131782
|
s = s.replace(l, c, g);
|
|
@@ -131878,9 +131878,9 @@ class ls extends so {
|
|
|
131878
131878
|
}
|
|
131879
131879
|
}
|
|
131880
131880
|
lineAt(e, t, n, r, s) {
|
|
131881
|
-
if (t ==
|
|
131881
|
+
if (t == Ni.ByHeight)
|
|
131882
131882
|
return this.blockAt(e, n, r, s);
|
|
131883
|
-
if (t ==
|
|
131883
|
+
if (t == Ni.ByPosNoHeight) {
|
|
131884
131884
|
let { from: p, to: g } = n.doc.lineAt(e);
|
|
131885
131885
|
return new Xc(p, g - p, 0, 0, 0);
|
|
131886
131886
|
}
|
|
@@ -131952,10 +131952,10 @@ class pRt extends so {
|
|
|
131952
131952
|
return e < s ? this.left.blockAt(e, t, n, r) : this.right.blockAt(e, t, s, r + this.left.length + this.break);
|
|
131953
131953
|
}
|
|
131954
131954
|
lineAt(e, t, n, r, s) {
|
|
131955
|
-
let o = r + this.left.height, a = s + this.left.length + this.break, l = t ==
|
|
131955
|
+
let o = r + this.left.height, a = s + this.left.length + this.break, l = t == Ni.ByHeight ? e < o : e < a, c = l ? this.left.lineAt(e, t, n, r, s) : this.right.lineAt(e, t, n, o, a);
|
|
131956
131956
|
if (this.break || (l ? c.to < a : c.from > a))
|
|
131957
131957
|
return c;
|
|
131958
|
-
let d = t ==
|
|
131958
|
+
let d = t == Ni.ByPosNoHeight ? Ni.ByPosNoHeight : Ni.ByPos;
|
|
131959
131959
|
return l ? c.join(this.right.lineAt(a, d, n, o, a)) : this.left.lineAt(a, d, n, r, s).join(c);
|
|
131960
131960
|
}
|
|
131961
131961
|
forEachLine(e, t, n, r, s, o) {
|
|
@@ -131963,7 +131963,7 @@ class pRt extends so {
|
|
|
131963
131963
|
if (this.break)
|
|
131964
131964
|
e < l && this.left.forEachLine(e, t, n, r, s, o), t >= l && this.right.forEachLine(e, t, n, a, l, o);
|
|
131965
131965
|
else {
|
|
131966
|
-
let c = this.lineAt(l,
|
|
131966
|
+
let c = this.lineAt(l, Ni.ByPos, n, r, s);
|
|
131967
131967
|
e < c.from && this.left.forEachLine(e, c.from - 1, n, r, s, o), c.to >= e && c.from <= t && o(c), t > c.to && this.right.forEachLine(c.to + 1, t, n, a, l, o);
|
|
131968
131968
|
}
|
|
131969
131969
|
}
|
|
@@ -132235,26 +132235,26 @@ class Yye {
|
|
|
132235
132235
|
return this.scaler.fromDOM(this.pixelViewport.bottom);
|
|
132236
132236
|
}
|
|
132237
132237
|
getViewport(e, t) {
|
|
132238
|
-
let n = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), r = this.heightMap, s = this.heightOracle, { visibleTop: o, visibleBottom: a } = this, l = new K5(r.lineAt(o - n * 1e3,
|
|
132238
|
+
let n = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), r = this.heightMap, s = this.heightOracle, { visibleTop: o, visibleBottom: a } = this, l = new K5(r.lineAt(o - n * 1e3, Ni.ByHeight, s, 0, 0).from, r.lineAt(a + (1 - n) * 1e3, Ni.ByHeight, s, 0, 0).to);
|
|
132239
132239
|
if (t) {
|
|
132240
132240
|
let { head: c } = t.range;
|
|
132241
132241
|
if (c < l.from || c > l.to) {
|
|
132242
|
-
let d = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), u = r.lineAt(c,
|
|
132243
|
-
t.y == "center" ? f = (u.top + u.bottom) / 2 - d / 2 : t.y == "start" || t.y == "nearest" && c < l.from ? f = u.top : f = u.bottom - d, l = new K5(r.lineAt(f - 1e3 / 2,
|
|
132242
|
+
let d = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), u = r.lineAt(c, Ni.ByPos, s, 0, 0), f;
|
|
132243
|
+
t.y == "center" ? f = (u.top + u.bottom) / 2 - d / 2 : t.y == "start" || t.y == "nearest" && c < l.from ? f = u.top : f = u.bottom - d, l = new K5(r.lineAt(f - 1e3 / 2, Ni.ByHeight, s, 0, 0).from, r.lineAt(f + d + 1e3 / 2, Ni.ByHeight, s, 0, 0).to);
|
|
132244
132244
|
}
|
|
132245
132245
|
}
|
|
132246
132246
|
return l;
|
|
132247
132247
|
}
|
|
132248
132248
|
mapViewport(e, t) {
|
|
132249
132249
|
let n = t.mapPos(e.from, -1), r = t.mapPos(e.to, 1);
|
|
132250
|
-
return new K5(this.heightMap.lineAt(n,
|
|
132250
|
+
return new K5(this.heightMap.lineAt(n, Ni.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(r, Ni.ByPos, this.heightOracle, 0, 0).to);
|
|
132251
132251
|
}
|
|
132252
132252
|
// Checks if a given viewport covers the visible part of the
|
|
132253
132253
|
// document and not too much beyond that.
|
|
132254
132254
|
viewportIsAppropriate({ from: e, to: t }, n = 0) {
|
|
132255
132255
|
if (!this.inView)
|
|
132256
132256
|
return !0;
|
|
132257
|
-
let { top: r } = this.heightMap.lineAt(e,
|
|
132257
|
+
let { top: r } = this.heightMap.lineAt(e, Ni.ByPos, this.heightOracle, 0, 0), { bottom: s } = this.heightMap.lineAt(t, Ni.ByPos, this.heightOracle, 0, 0), { visibleTop: o, visibleBottom: a } = this;
|
|
132258
132258
|
return (e == 0 || r <= o - Math.max(10, Math.min(
|
|
132259
132259
|
-n,
|
|
132260
132260
|
250
|
|
@@ -132354,10 +132354,10 @@ class Yye {
|
|
|
132354
132354
|
return this.visibleRanges = t, n ? 4 : 0;
|
|
132355
132355
|
}
|
|
132356
132356
|
lineBlockAt(e) {
|
|
132357
|
-
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || PA(this.heightMap.lineAt(e,
|
|
132357
|
+
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || PA(this.heightMap.lineAt(e, Ni.ByPos, this.heightOracle, 0, 0), this.scaler);
|
|
132358
132358
|
}
|
|
132359
132359
|
lineBlockAtHeight(e) {
|
|
132360
|
-
return PA(this.heightMap.lineAt(this.scaler.fromDOM(e),
|
|
132360
|
+
return PA(this.heightMap.lineAt(this.scaler.fromDOM(e), Ni.ByHeight, this.heightOracle, 0, 0), this.scaler);
|
|
132361
132361
|
}
|
|
132362
132362
|
scrollAnchorAt(e) {
|
|
132363
132363
|
let t = this.lineBlockAtHeight(e + 8);
|
|
@@ -132430,7 +132430,7 @@ class ERt {
|
|
|
132430
132430
|
constructor(e, t, n) {
|
|
132431
132431
|
let r = 0, s = 0, o = 0;
|
|
132432
132432
|
this.viewports = n.map(({ from: a, to: l }) => {
|
|
132433
|
-
let c = t.lineAt(a,
|
|
132433
|
+
let c = t.lineAt(a, Ni.ByPos, e, 0, 0).top, d = t.lineAt(l, Ni.ByPos, e, 0, 0).bottom;
|
|
132434
132434
|
return r += d - c, { from: a, to: l, top: c, bottom: d, domTop: 0, domBottom: 0 };
|
|
132435
132435
|
}), this.scale = (7e6 - r) / (t.height - r);
|
|
132436
132436
|
for (let a of this.viewports)
|
|
@@ -145676,7 +145676,7 @@ const Yzt = G.div`
|
|
|
145676
145676
|
title: bd
|
|
145677
145677
|
}), l.displayNotification?.success({
|
|
145678
145678
|
title: `Message "${m}" published`
|
|
145679
|
-
}))) : l.displayNotification?.error(
|
|
145679
|
+
}))) : l.displayNotification?.error(Mi);
|
|
145680
145680
|
},
|
|
145681
145681
|
modalBody: /* @__PURE__ */ E.jsx(Q2, { children: /* @__PURE__ */ E.jsxs(Mn, { gap: 5, children: [
|
|
145682
145682
|
!d && /* @__PURE__ */ E.jsx(
|
|
@@ -145797,7 +145797,7 @@ const Yzt = G.div`
|
|
|
145797
145797
|
title: bd
|
|
145798
145798
|
}), r.displayNotification?.success({
|
|
145799
145799
|
title: `Message "${i.messageName}" published`
|
|
145800
|
-
}))) : r.displayNotification?.error(
|
|
145800
|
+
}))) : r.displayNotification?.error(Mi);
|
|
145801
145801
|
}
|
|
145802
145802
|
},
|
|
145803
145803
|
{
|
|
@@ -145865,7 +145865,7 @@ const Yzt = G.div`
|
|
|
145865
145865
|
" ",
|
|
145866
145866
|
e.dueDate
|
|
145867
145867
|
] })
|
|
145868
|
-
})) : s.displayNotification?.error(
|
|
145868
|
+
})) : s.displayNotification?.error(Mi), a(!1);
|
|
145869
145869
|
}
|
|
145870
145870
|
}
|
|
145871
145871
|
]
|
|
@@ -145971,7 +145971,7 @@ const Yzt = G.div`
|
|
|
145971
145971
|
const H = await t.startInstance?.(JSON.stringify(N));
|
|
145972
145972
|
o(!1), H ? t.displayNotification?.success({
|
|
145973
145973
|
title: bd
|
|
145974
|
-
}) : t.displayNotification?.error(
|
|
145974
|
+
}) : t.displayNotification?.error(Mi);
|
|
145975
145975
|
}
|
|
145976
145976
|
}
|
|
145977
145977
|
if (Ve(() => {
|
|
@@ -146005,7 +146005,7 @@ const Yzt = G.div`
|
|
|
146005
146005
|
o(!0);
|
|
146006
146006
|
else {
|
|
146007
146007
|
if (u(!0), !await t.startInstance?.()) {
|
|
146008
|
-
t.displayNotification?.error(
|
|
146008
|
+
t.displayNotification?.error(Mi), u(!1);
|
|
146009
146009
|
return;
|
|
146010
146010
|
}
|
|
146011
146011
|
t.displayNotification?.success({
|
|
@@ -146047,7 +146047,7 @@ const Yzt = G.div`
|
|
|
146047
146047
|
onClose: () => p(!1),
|
|
146048
146048
|
onSubmit: async (V) => {
|
|
146049
146049
|
if (p(!1), u(!0), !await t.startInstance?.(V)) {
|
|
146050
|
-
t.displayNotification?.error(
|
|
146050
|
+
t.displayNotification?.error(Mi), u(!1);
|
|
146051
146051
|
return;
|
|
146052
146052
|
}
|
|
146053
146053
|
t.displayNotification?.success({
|
|
@@ -146349,7 +146349,7 @@ const OB = rt(
|
|
|
146349
146349
|
}), Ji.trackUserCompletesElement(
|
|
146350
146350
|
i,
|
|
146351
146351
|
JSON.stringify(le)
|
|
146352
|
-
)) : t.displayNotification?.error(
|
|
146352
|
+
)) : t.displayNotification?.error(Mi);
|
|
146353
146353
|
}
|
|
146354
146354
|
}
|
|
146355
146355
|
const O = r?.[i.id]?.get("extensionElements")?.get("values")?.find((z) => z.$type === "zeebe:formDefinition")?.formKey, N = (n ? B_e(n) : void 0)?.get("extensionElements")?.get("values")?.find(
|
|
@@ -146440,7 +146440,7 @@ const OB = rt(
|
|
|
146440
146440
|
o(!0);
|
|
146441
146441
|
else {
|
|
146442
146442
|
if (d(!0), !(await t.startInstance?.(de || "{}") ?? !1)) {
|
|
146443
|
-
t.displayNotification?.error(
|
|
146443
|
+
t.displayNotification?.error(Mi), d(!1);
|
|
146444
146444
|
return;
|
|
146445
146445
|
}
|
|
146446
146446
|
Ji.trackUserCompletesElement(i, de);
|
|
@@ -146470,7 +146470,7 @@ const OB = rt(
|
|
|
146470
146470
|
onClose: () => f(!1),
|
|
146471
146471
|
onSubmit: async (z) => {
|
|
146472
146472
|
if (f(!1), d(!0), !await t.startInstance?.(z)) {
|
|
146473
|
-
t.displayNotification?.error(
|
|
146473
|
+
t.displayNotification?.error(Mi), d(!1);
|
|
146474
146474
|
return;
|
|
146475
146475
|
}
|
|
146476
146476
|
Ji.trackUserCompletesElement(
|
|
@@ -146708,12 +146708,12 @@ Error message: ${e.errorMessage}`
|
|
|
146708
146708
|
if (r(!1), e.job?.key && !await m0.updateRetries({
|
|
146709
146709
|
jobKey: e.job.key
|
|
146710
146710
|
})) {
|
|
146711
|
-
t.displayNotification?.error(
|
|
146711
|
+
t.displayNotification?.error(Mi);
|
|
146712
146712
|
return;
|
|
146713
146713
|
}
|
|
146714
146714
|
Ji.trackResolveIncident(Lt.processId), (await m0.resolveIncident({
|
|
146715
146715
|
incidentKey: e.key
|
|
146716
|
-
}))?.success === !1 ? t.displayNotification?.error(
|
|
146716
|
+
}))?.success === !1 ? t.displayNotification?.error(Mi) : s !== void 0 && ts(kr(s.key), {
|
|
146717
146717
|
action: "resolveIncident",
|
|
146718
146718
|
elementId: i.id,
|
|
146719
146719
|
hasJob: !!e.job?.key
|
|
@@ -146750,7 +146750,7 @@ Error message: ${e.errorMessage}`
|
|
|
146750
146750
|
action: "invokeConnector",
|
|
146751
146751
|
elementId: i.id
|
|
146752
146752
|
}
|
|
146753
|
-
), c || (e.displayNotification?.error(
|
|
146753
|
+
), c || (e.displayNotification?.error(Mi), s(!1));
|
|
146754
146754
|
}
|
|
146755
146755
|
},
|
|
146756
146756
|
{
|
|
@@ -146784,7 +146784,7 @@ Error message: ${e.errorMessage}`
|
|
|
146784
146784
|
type: "serviceTask",
|
|
146785
146785
|
elementId: i.id,
|
|
146786
146786
|
variables: c ?? void 0
|
|
146787
|
-
}), d || e.displayNotification?.error(
|
|
146787
|
+
}), d || e.displayNotification?.error(Mi);
|
|
146788
146788
|
},
|
|
146789
146789
|
placeholder: v3
|
|
146790
146790
|
}
|
|
@@ -146856,7 +146856,7 @@ const BWt = rt(({ element: i }) => {
|
|
|
146856
146856
|
type: i.type === "bpmn:UserTask" ? "userTask" : "serviceTask",
|
|
146857
146857
|
elementId: i.id,
|
|
146858
146858
|
variables: JSON.stringify(ee)
|
|
146859
|
-
}), ie ? YS(i, e) : e.displayNotification?.error(
|
|
146859
|
+
}), ie ? YS(i, e) : e.displayNotification?.error(Mi), localStorage.setItem(
|
|
146860
146860
|
`jobCompletion ${Lt.processId} ${i.id}`,
|
|
146861
146861
|
JSON.stringify(ee)
|
|
146862
146862
|
);
|
|
@@ -146902,7 +146902,7 @@ const BWt = rt(({ element: i }) => {
|
|
|
146902
146902
|
action: "completeJob",
|
|
146903
146903
|
type: i.type === "bpmn:UserTask" ? "userTask" : "serviceTask",
|
|
146904
146904
|
elementId: i.id
|
|
146905
|
-
}), q ? YS(i, e) : e.displayNotification?.error(
|
|
146905
|
+
}), q ? YS(i, e) : e.displayNotification?.error(Mi);
|
|
146906
146906
|
}
|
|
146907
146907
|
}
|
|
146908
146908
|
},
|
|
@@ -146960,7 +146960,7 @@ const BWt = rt(({ element: i }) => {
|
|
|
146960
146960
|
type: i.type === "bpmn:UserTask" ? "userTask" : "serviceTask",
|
|
146961
146961
|
elementId: i.id,
|
|
146962
146962
|
variables: q ?? void 0
|
|
146963
|
-
}), ee ? YS(i, e) : e.displayNotification?.error(
|
|
146963
|
+
}), ee ? YS(i, e) : e.displayNotification?.error(Mi);
|
|
146964
146964
|
},
|
|
146965
146965
|
placeholder: v3
|
|
146966
146966
|
}
|
|
@@ -147034,7 +147034,7 @@ const BWt = rt(({ element: i }) => {
|
|
|
147034
147034
|
}
|
|
147035
147035
|
);
|
|
147036
147036
|
}
|
|
147037
|
-
q || e.displayNotification?.error(
|
|
147037
|
+
q || e.displayNotification?.error(Mi);
|
|
147038
147038
|
},
|
|
147039
147039
|
variant: "primary",
|
|
147040
147040
|
children: "Fail"
|
|
@@ -147153,7 +147153,7 @@ const FWt = rt(({ element: i }) => {
|
|
|
147153
147153
|
}), Ji.trackUserCompletesElement(
|
|
147154
147154
|
i,
|
|
147155
147155
|
JSON.stringify(I)
|
|
147156
|
-
)), U ? XS(i, e) : e.displayNotification?.error(
|
|
147156
|
+
)), U ? XS(i, e) : e.displayNotification?.error(Mi), localStorage.setItem(
|
|
147157
147157
|
`jobCompletion ${Lt.processId} ${i.id}`,
|
|
147158
147158
|
JSON.stringify(I)
|
|
147159
147159
|
);
|
|
@@ -147250,7 +147250,7 @@ const FWt = rt(({ element: i }) => {
|
|
|
147250
147250
|
elementId: i.id,
|
|
147251
147251
|
variables: Q ?? void 0
|
|
147252
147252
|
}), Ji.trackUserCompletesElement(i, Q)), !P)
|
|
147253
|
-
e.displayNotification?.error(
|
|
147253
|
+
e.displayNotification?.error(Mi);
|
|
147254
147254
|
else {
|
|
147255
147255
|
let I;
|
|
147256
147256
|
z === "bpmn" && (I = "with example data"), z === "cache" && (I = "with cached data"), XS(i, e, I);
|
|
@@ -147304,7 +147304,7 @@ const FWt = rt(({ element: i }) => {
|
|
|
147304
147304
|
), localStorage.setItem(
|
|
147305
147305
|
`jobCompletion ${Lt.processId} ${i.id}`,
|
|
147306
147306
|
P ?? ""
|
|
147307
|
-
)), I ? XS(i, e) : e.displayNotification?.error(
|
|
147307
|
+
)), I ? XS(i, e) : e.displayNotification?.error(Mi);
|
|
147308
147308
|
}
|
|
147309
147309
|
}
|
|
147310
147310
|
),
|
|
@@ -147377,7 +147377,7 @@ const FWt = rt(({ element: i }) => {
|
|
|
147377
147377
|
}
|
|
147378
147378
|
);
|
|
147379
147379
|
}
|
|
147380
|
-
P || e.displayNotification?.error(
|
|
147380
|
+
P || e.displayNotification?.error(Mi);
|
|
147381
147381
|
},
|
|
147382
147382
|
variant: "primary",
|
|
147383
147383
|
children: "Fail"
|
|
@@ -147686,7 +147686,7 @@ const FWt = rt(({ element: i }) => {
|
|
|
147686
147686
|
}
|
|
147687
147687
|
}
|
|
147688
147688
|
}
|
|
147689
|
-
)), f || o.displayNotification?.error(
|
|
147689
|
+
)), f || o.displayNotification?.error(Mi);
|
|
147690
147690
|
} else
|
|
147691
147691
|
t(!0);
|
|
147692
147692
|
}
|
|
@@ -147737,7 +147737,7 @@ const FWt = rt(({ element: i }) => {
|
|
|
147737
147737
|
}
|
|
147738
147738
|
}
|
|
147739
147739
|
}
|
|
147740
|
-
)), d || o.displayNotification?.error(
|
|
147740
|
+
)), d || o.displayNotification?.error(Mi);
|
|
147741
147741
|
},
|
|
147742
147742
|
modalBody: /* @__PURE__ */ E.jsx(
|
|
147743
147743
|
l3,
|
|
@@ -149530,7 +149530,7 @@ class oZt {
|
|
|
149530
149530
|
state = { ...A7e };
|
|
149531
149531
|
rootNodeSelectionDisposer = null;
|
|
149532
149532
|
constructor() {
|
|
149533
|
-
|
|
149533
|
+
Li(this, { init: !1 });
|
|
149534
149534
|
}
|
|
149535
149535
|
init = () => {
|
|
149536
149536
|
this.rootNodeSelectionDisposer = n2(
|
|
@@ -149597,7 +149597,7 @@ class aZt {
|
|
|
149597
149597
|
state = { ...w7e };
|
|
149598
149598
|
#n = void 0;
|
|
149599
149599
|
constructor() {
|
|
149600
|
-
|
|
149600
|
+
Li(this);
|
|
149601
149601
|
}
|
|
149602
149602
|
init = (e) => {
|
|
149603
149603
|
this.#n = e;
|
|
@@ -149682,7 +149682,7 @@ const ul = new aZt(), qVe = (i) => {
|
|
|
149682
149682
|
let lZt = class {
|
|
149683
149683
|
state = { ...b7e };
|
|
149684
149684
|
constructor() {
|
|
149685
|
-
|
|
149685
|
+
Li(this);
|
|
149686
149686
|
}
|
|
149687
149687
|
setDiagramDetails = async (e) => {
|
|
149688
149688
|
try {
|
|
@@ -149915,7 +149915,7 @@ class uZt {
|
|
|
149915
149915
|
authType;
|
|
149916
149916
|
operateBaseUrl;
|
|
149917
149917
|
constructor() {
|
|
149918
|
-
|
|
149918
|
+
Li(this);
|
|
149919
149919
|
}
|
|
149920
149920
|
init({
|
|
149921
149921
|
xml: e,
|
|
@@ -150710,7 +150710,7 @@ const gb = new mZt(), S7e = {
|
|
|
150710
150710
|
class AZt {
|
|
150711
150711
|
state = { ...S7e };
|
|
150712
150712
|
constructor() {
|
|
150713
|
-
|
|
150713
|
+
Li(this);
|
|
150714
150714
|
}
|
|
150715
150715
|
fetchTimers = async ({ instanceKey: e }) => {
|
|
150716
150716
|
this.startFetching();
|
|
@@ -150739,7 +150739,7 @@ const VT = new AZt(), D7e = {
|
|
|
150739
150739
|
class wZt {
|
|
150740
150740
|
state = { ...D7e };
|
|
150741
150741
|
constructor() {
|
|
150742
|
-
|
|
150742
|
+
Li(this);
|
|
150743
150743
|
}
|
|
150744
150744
|
fetchTimers = async () => {
|
|
150745
150745
|
this.startFetching();
|
|
@@ -150940,7 +150940,7 @@ const ta = new bZt(), k7e = {
|
|
|
150940
150940
|
class yZt {
|
|
150941
150941
|
state = { ...k7e };
|
|
150942
150942
|
constructor() {
|
|
150943
|
-
|
|
150943
|
+
Li(this);
|
|
150944
150944
|
}
|
|
150945
150945
|
completeJob = async ({
|
|
150946
150946
|
taskDefinitionType: e,
|
|
@@ -152176,7 +152176,7 @@ const _Ut = G.header`
|
|
|
152176
152176
|
let TUt = class {
|
|
152177
152177
|
state = { ...B7e };
|
|
152178
152178
|
constructor() {
|
|
152179
|
-
|
|
152179
|
+
Li(this);
|
|
152180
152180
|
}
|
|
152181
152181
|
init(e) {
|
|
152182
152182
|
e && Js.setActiveTab("scenarios");
|
|
@@ -152750,7 +152750,7 @@ let WUt = class extends JVe {
|
|
|
152750
152750
|
updateSingleScenarioRun = (e, t) => {
|
|
152751
152751
|
this.state.scenarioRuns[e] = t;
|
|
152752
152752
|
};
|
|
152753
|
-
getScenarioRun = (e) =>
|
|
152753
|
+
getScenarioRun = (e) => xi.state.scenarioRuns[e];
|
|
152754
152754
|
isScenarioCompleted = ({
|
|
152755
152755
|
instanceKey: e
|
|
152756
152756
|
}) => su(async () => {
|
|
@@ -152778,7 +152778,7 @@ let WUt = class extends JVe {
|
|
|
152778
152778
|
this.state = { ...W7e };
|
|
152779
152779
|
};
|
|
152780
152780
|
};
|
|
152781
|
-
const
|
|
152781
|
+
const xi = new WUt(), j7e = G.p`
|
|
152782
152782
|
${El.body01};
|
|
152783
152783
|
`, $Ve = rt(
|
|
152784
152784
|
({ title: i, isOpen: e, onScenarioSaved: t, onClose: n, topContent: r }) => {
|
|
@@ -152803,7 +152803,7 @@ const Ni = new WUt(), j7e = G.p`
|
|
|
152803
152803
|
/* @__PURE__ */ E.jsxs(j7e, { children: [
|
|
152804
152804
|
"This scenario increases the BPMN coverage of your scenario suite from",
|
|
152805
152805
|
" ",
|
|
152806
|
-
/* @__PURE__ */ E.jsx(PT, { children: `${
|
|
152806
|
+
/* @__PURE__ */ E.jsx(PT, { children: `${xi.totalCoverage.toFixed(0)}%` }),
|
|
152807
152807
|
" ",
|
|
152808
152808
|
"to",
|
|
152809
152809
|
" ",
|
|
@@ -152811,7 +152811,7 @@ const Ni = new WUt(), j7e = G.p`
|
|
|
152811
152811
|
PT,
|
|
152812
152812
|
{
|
|
152813
152813
|
isGreen: !0,
|
|
152814
|
-
children: `${(
|
|
152814
|
+
children: `${(xi.totalCoverage + xi.diffCoverage).toFixed(0)}%`
|
|
152815
152815
|
}
|
|
152816
152816
|
),
|
|
152817
152817
|
". ",
|
|
@@ -152836,7 +152836,7 @@ const Ni = new WUt(), j7e = G.p`
|
|
|
152836
152836
|
invalidText: a,
|
|
152837
152837
|
onChange: (c) => {
|
|
152838
152838
|
const d = c.target.value;
|
|
152839
|
-
if (o(d),
|
|
152839
|
+
if (o(d), xi.state.scenarios.some(
|
|
152840
152840
|
(f) => f.name === d
|
|
152841
152841
|
)) {
|
|
152842
152842
|
l(
|
|
@@ -152988,7 +152988,7 @@ const Ni = new WUt(), j7e = G.p`
|
|
|
152988
152988
|
] });
|
|
152989
152989
|
}
|
|
152990
152990
|
), tBe = rt(() => {
|
|
152991
|
-
const i = vn(qr), { isReplayScenariosEnabled: e } = i.featureFlags, { instanceKey: t, processInstance: n, scenarioName: r } = Be.state, { scenarioRuns: s } =
|
|
152991
|
+
const i = vn(qr), { isReplayScenariosEnabled: e } = i.featureFlags, { instanceKey: t, processInstance: n, scenarioName: r } = Be.state, { scenarioRuns: s } = xi.state, { sanitizedOperateBaseUrl: o, hasLinkToOperate: a } = wt, l = n?.bpmnProcessId;
|
|
152992
152992
|
if (!t || !n || !l)
|
|
152993
152993
|
return null;
|
|
152994
152994
|
const c = n.incident ? "INCIDENT" : n.state, d = `${o}/processes/${t}`, u = r !== ZVe, f = Object.keys(s).find((p) => {
|
|
@@ -153059,9 +153059,9 @@ const Ni = new WUt(), j7e = G.p`
|
|
|
153059
153059
|
/* @__PURE__ */ E.jsx(
|
|
153060
153060
|
PT,
|
|
153061
153061
|
{
|
|
153062
|
-
isGreen:
|
|
153062
|
+
isGreen: xi.diffCoverage > 0,
|
|
153063
153063
|
hasPrecedingPlusIcon: !0,
|
|
153064
|
-
children: `${
|
|
153064
|
+
children: `${xi.diffCoverage.toFixed(0)}% `
|
|
153065
153065
|
}
|
|
153066
153066
|
),
|
|
153067
153067
|
/* @__PURE__ */ E.jsx(
|
|
@@ -154183,7 +154183,7 @@ const G7e = {
|
|
|
154183
154183
|
class Jqt {
|
|
154184
154184
|
state = { ...G7e };
|
|
154185
154185
|
constructor() {
|
|
154186
|
-
|
|
154186
|
+
Li(this);
|
|
154187
154187
|
}
|
|
154188
154188
|
setupConnectors = async () => {
|
|
154189
154189
|
this.setIsReady(!1);
|
|
@@ -154247,7 +154247,7 @@ class Jqt {
|
|
|
154247
154247
|
const Kd = new Jqt();
|
|
154248
154248
|
class $qt {
|
|
154249
154249
|
constructor() {
|
|
154250
|
-
|
|
154250
|
+
Li(this);
|
|
154251
154251
|
}
|
|
154252
154252
|
get problemCount() {
|
|
154253
154253
|
return wt.fileProblems.length + Kd.connectorProblems.length + Rt.diagramProblemCount;
|
|
@@ -154428,7 +154428,7 @@ const rD = G(hi)`
|
|
|
154428
154428
|
}
|
|
154429
154429
|
),
|
|
154430
154430
|
/* @__PURE__ */ E.jsxs(eGt, { children: [
|
|
154431
|
-
|
|
154431
|
+
xi.totalCoverage.toFixed(0),
|
|
154432
154432
|
"%"
|
|
154433
154433
|
] })
|
|
154434
154434
|
] }));
|
|
@@ -154445,7 +154445,7 @@ const sGt = G(Mn)`
|
|
|
154445
154445
|
align-items: center;
|
|
154446
154446
|
padding-left: 0;
|
|
154447
154447
|
`, cBe = rt(() => {
|
|
154448
|
-
const [i, e] = ye(!1), t =
|
|
154448
|
+
const [i, e] = ye(!1), t = xi.state.scenarios, { processId: n } = wt;
|
|
154449
154449
|
if (n !== void 0)
|
|
154450
154450
|
return /* @__PURE__ */ E.jsxs(sGt, { gap: 5, orientation: "horizontal", children: [
|
|
154451
154451
|
/* @__PURE__ */ E.jsx(lBe, {}),
|
|
@@ -154458,11 +154458,11 @@ const sGt = G(Mn)`
|
|
|
154458
154458
|
size: "sm",
|
|
154459
154459
|
kind: "ghost",
|
|
154460
154460
|
renderIcon: vI,
|
|
154461
|
-
disabled:
|
|
154461
|
+
disabled: xi.isAnyScenarioRunning,
|
|
154462
154462
|
onClick: async () => {
|
|
154463
154463
|
e(!0), await Promise.all(
|
|
154464
154464
|
t.map(async ({ name: r, actions: s }) => {
|
|
154465
|
-
await
|
|
154465
|
+
await xi.runSingleScenario({
|
|
154466
154466
|
name: r,
|
|
154467
154467
|
processId: n,
|
|
154468
154468
|
actions: s
|
|
@@ -154523,9 +154523,9 @@ const sGt = G(Mn)`
|
|
|
154523
154523
|
null
|
|
154524
154524
|
), { processId: t } = wt;
|
|
154525
154525
|
Ve(() => {
|
|
154526
|
-
t !== void 0 &&
|
|
154526
|
+
t !== void 0 && xi.setScenarios(t);
|
|
154527
154527
|
}, [t]);
|
|
154528
|
-
const { scenarios: n, selectedScenario: r } =
|
|
154528
|
+
const { scenarios: n, selectedScenario: r } = xi.state;
|
|
154529
154529
|
return n.length === 0 || t === void 0 ? /* @__PURE__ */ E.jsx(aGt, {}) : /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
154530
154530
|
/* @__PURE__ */ E.jsx(cBe, {}),
|
|
154531
154531
|
/* @__PURE__ */ E.jsxs(r3, { size: "sm", children: [
|
|
@@ -154535,7 +154535,7 @@ const sGt = G(Mn)`
|
|
|
154535
154535
|
/* @__PURE__ */ E.jsx($s, { children: "Operations" })
|
|
154536
154536
|
] }) }),
|
|
154537
154537
|
/* @__PURE__ */ E.jsx(o3, { children: n?.map((s) => {
|
|
154538
|
-
const { key: o, name: a, actions: l } = s, c = r?.name === a, d =
|
|
154538
|
+
const { key: o, name: a, actions: l } = s, c = r?.name === a, d = xi.getScenarioRun(a), u = d?.status;
|
|
154539
154539
|
return /* @__PURE__ */ E.jsxs(
|
|
154540
154540
|
Q7e,
|
|
154541
154541
|
{
|
|
@@ -154543,7 +154543,7 @@ const sGt = G(Mn)`
|
|
|
154543
154543
|
$isClickable: !0,
|
|
154544
154544
|
isSelected: c,
|
|
154545
154545
|
onClick: () => {
|
|
154546
|
-
c ?
|
|
154546
|
+
c ? xi.clearSelectedScenario() : xi.setSelectedScenario(s);
|
|
154547
154547
|
},
|
|
154548
154548
|
children: [
|
|
154549
154549
|
/* @__PURE__ */ E.jsx(rD, { children: a }),
|
|
@@ -154569,7 +154569,7 @@ const sGt = G(Mn)`
|
|
|
154569
154569
|
kind: "ghost",
|
|
154570
154570
|
size: "sm",
|
|
154571
154571
|
onClick: async (f) => {
|
|
154572
|
-
f.stopPropagation(),
|
|
154572
|
+
f.stopPropagation(), xi.runSingleScenario({
|
|
154573
154573
|
name: a,
|
|
154574
154574
|
processId: t,
|
|
154575
154575
|
actions: l
|
|
@@ -154598,7 +154598,7 @@ const sGt = G(Mn)`
|
|
|
154598
154598
|
kind: "ghost",
|
|
154599
154599
|
size: "sm",
|
|
154600
154600
|
onClick: () => {
|
|
154601
|
-
|
|
154601
|
+
xi.runSingleScenario({
|
|
154602
154602
|
name: a,
|
|
154603
154603
|
processId: t,
|
|
154604
154604
|
actions: l
|
|
@@ -154644,10 +154644,10 @@ const sGt = G(Mn)`
|
|
|
154644
154644
|
e(null);
|
|
154645
154645
|
},
|
|
154646
154646
|
onRequestSubmit: () => {
|
|
154647
|
-
t === void 0 || i === null || (e(null),
|
|
154647
|
+
t === void 0 || i === null || (e(null), xi.deleteScenario({
|
|
154648
154648
|
processId: t,
|
|
154649
154649
|
scenario: i
|
|
154650
|
-
}),
|
|
154650
|
+
}), xi.setScenarios(t));
|
|
154651
154651
|
},
|
|
154652
154652
|
children: /* @__PURE__ */ E.jsx("div", { children: `Are you sure you want to delete '${i?.name}' scenario? This action cannot be undone.` })
|
|
154653
154653
|
}
|
|
@@ -156181,7 +156181,7 @@ yBe.displayName = "IncidentButton";
|
|
|
156181
156181
|
const CBe = rt(({ element: i }) => {
|
|
156182
156182
|
const { completedElementInstances: e } = sr, { isInstanceDetailPageVisible: t } = Be, n = Js.state.activeTab === "scenarios", {
|
|
156183
156183
|
state: { sequenceFlows: r }
|
|
156184
|
-
} = z2, s =
|
|
156184
|
+
} = z2, s = xi.state.selectedScenario?.coveredSequenceFlows ?? xi.allCoveredSequenceFlows;
|
|
156185
156185
|
return Ve(() => {
|
|
156186
156186
|
if (t)
|
|
156187
156187
|
return r.includes(i.id) || i?.di?.bpmnElement?.sourceRef?.$type === "bpmn:EventBasedGateway" && e.some(
|
|
@@ -158712,7 +158712,7 @@ const PBe = rt(({ element: i, addOverlay: e }) => {
|
|
|
158712
158712
|
});
|
|
158713
158713
|
PBe.displayName = "ProblemOverlay";
|
|
158714
158714
|
const FBe = rt(({ element: i }) => {
|
|
158715
|
-
const { isInstanceDetailPageVisible: e } = Be, t =
|
|
158715
|
+
const { isInstanceDetailPageVisible: e } = Be, t = xi.state.selectedScenario?.coveredFlowNodeIds ?? xi.allCoveredFlowNodeIds, n = Js.state.activeTab === "scenarios";
|
|
158716
158716
|
return Ve(() => {
|
|
158717
158717
|
if (!e && t.length > 0 && n)
|
|
158718
158718
|
return t.includes(i.id) ? Rt.state.viewer?.addMarker(i.id, "play-flow-node-taken") : Rt.state.viewer?.removeMarker(
|
|
@@ -159005,7 +159005,7 @@ const _Jt = ({
|
|
|
159005
159005
|
),
|
|
159006
159006
|
[]
|
|
159007
159007
|
), Ve(() => (Js.init(A?.isReplayScenariosEnabled), () => {
|
|
159008
|
-
Be.reset(), Kd.reset(), wt.reset(), Rt.reset(), Js.reset();
|
|
159008
|
+
Be.reset(), Kd.reset(), wt.reset(), Rt.reset(), Js.reset(), xi.reset();
|
|
159009
159009
|
}), [A?.isReplayScenariosEnabled]), Ve(() => {
|
|
159010
159010
|
V === "saas" && !R || (di.init(c), ct.init({
|
|
159011
159011
|
authConfig: i,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/play",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "vite",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"playwright": "playwright test",
|
|
12
12
|
"test:e2e": "yarn playwright e2e/tests",
|
|
13
13
|
"test:e2e:ci": "IS_E2E=true yarn playwright e2e/tests",
|
|
14
|
+
"generate-screenshots": "yarn playwright e2e/docs-screenshots",
|
|
14
15
|
"eslint": "eslint .",
|
|
15
16
|
"lint": "yarn tsc && yarn eslint",
|
|
16
17
|
"analyze-bundle": "yarn build && source-map-explorer build/* --no-border-checks",
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"@carbon/react": "1.70.0",
|
|
47
48
|
"@eslint/js": "9.16.0",
|
|
48
49
|
"@monaco-editor/react": "4.6.0",
|
|
49
|
-
"@playwright/test": "1.49.
|
|
50
|
+
"@playwright/test": "1.49.1",
|
|
50
51
|
"@semantic-release/changelog": "6.0.3",
|
|
51
52
|
"@semantic-release/git": "10.0.1",
|
|
52
53
|
"@semantic-release/release-notes-generator": "14.0.1",
|
|
@@ -66,14 +67,14 @@
|
|
|
66
67
|
"@types/react": "18.3.12",
|
|
67
68
|
"@types/react-dom": "18.3.1",
|
|
68
69
|
"@types/vimeo__player": "2.18.3",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
70
|
-
"@typescript-eslint/parser": "8.
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
71
|
+
"@typescript-eslint/parser": "8.18.0",
|
|
71
72
|
"@vitejs/plugin-react": "4.3.4",
|
|
72
73
|
"@vitest/coverage-istanbul": "2.1.8",
|
|
73
74
|
"@vitest/ui": "2.1.8",
|
|
74
75
|
"bpmn-js-headless": "0.1.0",
|
|
75
76
|
"bpmn-moddle": "9.0.1",
|
|
76
|
-
"camunda-bpmn-js": "5.2.
|
|
77
|
+
"camunda-bpmn-js": "5.2.2",
|
|
77
78
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
78
79
|
"diagram-js-grid": "1.1.0",
|
|
79
80
|
"diagram-js-minimap": "5.2.0",
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
"ts-toolbelt": "9.6.0",
|
|
104
105
|
"tsc-watch": "6.2.1",
|
|
105
106
|
"typescript": "5.7.2",
|
|
106
|
-
"typescript-eslint": "8.
|
|
107
|
+
"typescript-eslint": "8.18.0",
|
|
107
108
|
"vite": "6.0.3",
|
|
108
109
|
"vite-plugin-svgr": "4.3.0",
|
|
109
110
|
"vite-svg-loader": "5.1.0",
|