@pb33f/cowboy-components 0.7.17 → 0.7.18
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/assets/equalizer.worker-B1FBgh0h.js +1 -0
- package/dist/assets/graph-dependent.worker-CxW1u577.js +1 -0
- package/dist/assets/rule-documentation.worker-B4_JKUg4.js +1 -0
- package/dist/assets/search-graph.worker-DJxOIWLn.js +1 -0
- package/dist/assets/search-problems.worker-60kZqr0h.js +1 -0
- package/dist/cowboy-components.css +1 -0
- package/dist/cowboy-components.umd.cjs +1469 -1512
- package/dist/monacoeditorwork/css.worker.bundle.js +9 -7
- package/dist/monacoeditorwork/editor.worker.bundle.js +2 -0
- package/dist/monacoeditorwork/html.worker.bundle.js +9 -7
- package/dist/monacoeditorwork/json.worker.bundle.js +9 -7
- package/dist/monacoeditorwork/yaml.worker..bundle.js +72 -48
- package/package.json +2 -2
- package/dist/assets/equalizer.worker-DyLD5JTU.js +0 -1
- package/dist/assets/graph-dependent.worker-CpVhp0-T.js +0 -1
- package/dist/assets/rule-documentation.worker-B7xOWY5M.js +0 -1
- package/dist/assets/search-graph.worker-B9zqINrO.js +0 -1
- package/dist/assets/search-problems.worker-BAF8L2rX.js +0 -1
- package/dist/style.css +0 -1
|
@@ -6151,6 +6151,8 @@
|
|
|
6151
6151
|
case 125:
|
|
6152
6152
|
chClass = hasOpenCurlyBracket ? 0 : 1;
|
|
6153
6153
|
break;
|
|
6154
|
+
// The following three rules make it that ' or " or ` are allowed inside links
|
|
6155
|
+
// only if the link is wrapped by some other quote character
|
|
6154
6156
|
case 39:
|
|
6155
6157
|
case 34:
|
|
6156
6158
|
case 96:
|
|
@@ -14360,6 +14362,7 @@
|
|
|
14360
14362
|
return token = 14;
|
|
14361
14363
|
}
|
|
14362
14364
|
switch (code) {
|
|
14365
|
+
// tokens: []{}:,
|
|
14363
14366
|
case 123:
|
|
14364
14367
|
pos++;
|
|
14365
14368
|
return token = 1;
|
|
@@ -14378,10 +14381,12 @@
|
|
|
14378
14381
|
case 44:
|
|
14379
14382
|
pos++;
|
|
14380
14383
|
return token = 5;
|
|
14384
|
+
// strings
|
|
14381
14385
|
case 34:
|
|
14382
14386
|
pos++;
|
|
14383
14387
|
value = scanString();
|
|
14384
14388
|
return token = 10;
|
|
14389
|
+
// comments
|
|
14385
14390
|
case 47:
|
|
14386
14391
|
const start = pos - 1;
|
|
14387
14392
|
if (text.charCodeAt(pos + 1) === 47) {
|
|
@@ -14425,12 +14430,16 @@
|
|
|
14425
14430
|
value += String.fromCharCode(code);
|
|
14426
14431
|
pos++;
|
|
14427
14432
|
return token = 16;
|
|
14433
|
+
// numbers
|
|
14428
14434
|
case 45:
|
|
14429
14435
|
value += String.fromCharCode(code);
|
|
14430
14436
|
pos++;
|
|
14431
14437
|
if (pos === len || !isDigit(text.charCodeAt(pos))) {
|
|
14432
14438
|
return token = 16;
|
|
14433
14439
|
}
|
|
14440
|
+
// found a minus, followed by a number so
|
|
14441
|
+
// we fall through to proceed with scanning
|
|
14442
|
+
// numbers
|
|
14434
14443
|
case 48:
|
|
14435
14444
|
case 49:
|
|
14436
14445
|
case 50:
|
|
@@ -14443,6 +14452,7 @@
|
|
|
14443
14452
|
case 57:
|
|
14444
14453
|
value += scanNumber();
|
|
14445
14454
|
return token = 11;
|
|
14455
|
+
// literals and unknown symbols
|
|
14446
14456
|
default:
|
|
14447
14457
|
while (pos < len && isUnknownContentCharacter(code)) {
|
|
14448
14458
|
pos++;
|
|
@@ -15200,10 +15210,10 @@
|
|
|
15200
15210
|
return -1 === r3 || -1 === i2 || 0 === s2 || 1 === s2 && r3 === i2 - 1 && r3 === n3 + 1 ? "" : t3.slice(r3, i2);
|
|
15201
15211
|
}, format: function(t3) {
|
|
15202
15212
|
if (null === t3 || "object" != typeof t3) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t3);
|
|
15203
|
-
return function(t4, e3) {
|
|
15213
|
+
return (function(t4, e3) {
|
|
15204
15214
|
var r3 = e3.dir || e3.root, n3 = e3.base || (e3.name || "") + (e3.ext || "");
|
|
15205
15215
|
return r3 ? r3 === e3.root ? r3 + n3 : r3 + "/" + n3 : n3;
|
|
15206
|
-
}(0, t3);
|
|
15216
|
+
})(0, t3);
|
|
15207
15217
|
}, parse: function(t3) {
|
|
15208
15218
|
e2(t3);
|
|
15209
15219
|
var r3 = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
@@ -15258,9 +15268,9 @@
|
|
|
15258
15268
|
query;
|
|
15259
15269
|
fragment;
|
|
15260
15270
|
constructor(t2, e2, r2, n2, i2, o2 = false) {
|
|
15261
|
-
"object" == typeof t2 ? (this.scheme = t2.scheme || c, this.authority = t2.authority || c, this.path = t2.path || c, this.query = t2.query || c, this.fragment = t2.fragment || c) : (this.scheme = /* @__PURE__ */ function(t3, e3) {
|
|
15271
|
+
"object" == typeof t2 ? (this.scheme = t2.scheme || c, this.authority = t2.authority || c, this.path = t2.path || c, this.query = t2.query || c, this.fragment = t2.fragment || c) : (this.scheme = /* @__PURE__ */ (function(t3, e3) {
|
|
15262
15272
|
return t3 || e3 ? t3 : "file";
|
|
15263
|
-
}(t2, o2), this.authority = e2 || c, this.path = function(t3, e3) {
|
|
15273
|
+
})(t2, o2), this.authority = e2 || c, this.path = (function(t3, e3) {
|
|
15264
15274
|
switch (t3) {
|
|
15265
15275
|
case "https":
|
|
15266
15276
|
case "http":
|
|
@@ -15268,7 +15278,7 @@
|
|
|
15268
15278
|
e3 ? e3[0] !== f2 && (e3 = f2 + e3) : e3 = f2;
|
|
15269
15279
|
}
|
|
15270
15280
|
return e3;
|
|
15271
|
-
}(this.scheme, r2 || c), this.query = n2 || c, this.fragment = i2 || c, a2(this, o2));
|
|
15281
|
+
})(this.scheme, r2 || c), this.query = n2 || c, this.fragment = i2 || c, a2(this, o2));
|
|
15272
15282
|
}
|
|
15273
15283
|
get fsPath() {
|
|
15274
15284
|
return v3(this, false);
|
|
@@ -15384,12 +15394,12 @@
|
|
|
15384
15394
|
}
|
|
15385
15395
|
const A2 = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
|
|
15386
15396
|
function w2(t2) {
|
|
15387
|
-
return t2.match(A2) ? t2.replace(A2, (t3) => C(t3)) : t2;
|
|
15397
|
+
return t2.match(A2) ? t2.replace(A2, ((t3) => C(t3))) : t2;
|
|
15388
15398
|
}
|
|
15389
15399
|
var x2 = r(975);
|
|
15390
15400
|
const P3 = x2.posix || x2, _2 = "/";
|
|
15391
15401
|
var I3;
|
|
15392
|
-
!function(t2) {
|
|
15402
|
+
!(function(t2) {
|
|
15393
15403
|
t2.joinPath = function(t3, ...e2) {
|
|
15394
15404
|
return t3.with({ path: P3.join(t3.path, ...e2) });
|
|
15395
15405
|
}, t2.resolvePath = function(t3, ...e2) {
|
|
@@ -15406,7 +15416,7 @@
|
|
|
15406
15416
|
}, t2.extname = function(t3) {
|
|
15407
15417
|
return P3.extname(t3.path);
|
|
15408
15418
|
};
|
|
15409
|
-
}(I3 || (I3 = {})), LIB = n;
|
|
15419
|
+
})(I3 || (I3 = {})), LIB = n;
|
|
15410
15420
|
})();
|
|
15411
15421
|
var { URI: URI2, Utils } = LIB;
|
|
15412
15422
|
|
|
@@ -19918,6 +19928,7 @@ ${pointer}
|
|
|
19918
19928
|
hasSpace = false;
|
|
19919
19929
|
break;
|
|
19920
19930
|
}
|
|
19931
|
+
// else fallthrough
|
|
19921
19932
|
default:
|
|
19922
19933
|
onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.type} token`);
|
|
19923
19934
|
atNewline = false;
|
|
@@ -20545,6 +20556,7 @@ ${pointer}
|
|
|
20545
20556
|
switch (token.type) {
|
|
20546
20557
|
case "space":
|
|
20547
20558
|
hasSpace = true;
|
|
20559
|
+
// fallthrough
|
|
20548
20560
|
case "newline":
|
|
20549
20561
|
length += token.source.length;
|
|
20550
20562
|
break;
|
|
@@ -20560,6 +20572,7 @@ ${pointer}
|
|
|
20560
20572
|
onError(token, "UNEXPECTED_TOKEN", token.message);
|
|
20561
20573
|
length += token.source.length;
|
|
20562
20574
|
break;
|
|
20575
|
+
/* istanbul ignore next should not happen */
|
|
20563
20576
|
default: {
|
|
20564
20577
|
const message = `Unexpected token in block scalar header: ${token.type}`;
|
|
20565
20578
|
onError(token, "UNEXPECTED_TOKEN", message);
|
|
@@ -20601,6 +20614,7 @@ ${pointer}
|
|
|
20601
20614
|
_type = Scalar.QUOTE_DOUBLE;
|
|
20602
20615
|
value = doubleQuotedValue(source, _onError);
|
|
20603
20616
|
break;
|
|
20617
|
+
/* istanbul ignore next should not happen */
|
|
20604
20618
|
default:
|
|
20605
20619
|
onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type}`);
|
|
20606
20620
|
return {
|
|
@@ -20622,6 +20636,7 @@ ${pointer}
|
|
|
20622
20636
|
function plainValue(source, onError) {
|
|
20623
20637
|
let badChar = "";
|
|
20624
20638
|
switch (source[0]) {
|
|
20639
|
+
/* istanbul ignore next should not happen */
|
|
20625
20640
|
case " ":
|
|
20626
20641
|
badChar = "a tab character";
|
|
20627
20642
|
break;
|
|
@@ -21792,6 +21807,7 @@ ${end.comment}` : end.comment;
|
|
|
21792
21807
|
switch (line[n]) {
|
|
21793
21808
|
case "#":
|
|
21794
21809
|
yield* this.pushCount(line.length - n);
|
|
21810
|
+
// fallthrough
|
|
21795
21811
|
case void 0:
|
|
21796
21812
|
yield* this.pushNewline();
|
|
21797
21813
|
return yield* this.parseLineStart();
|
|
@@ -21887,6 +21903,7 @@ ${end.comment}` : end.comment;
|
|
|
21887
21903
|
return "flow";
|
|
21888
21904
|
}
|
|
21889
21905
|
}
|
|
21906
|
+
// fallthrough
|
|
21890
21907
|
default:
|
|
21891
21908
|
this.flowKey = false;
|
|
21892
21909
|
return yield* this.parsePlainScalar();
|
|
@@ -21964,6 +21981,7 @@ ${end.comment}` : end.comment;
|
|
|
21964
21981
|
if (next === "\n")
|
|
21965
21982
|
break;
|
|
21966
21983
|
}
|
|
21984
|
+
// fallthrough
|
|
21967
21985
|
default:
|
|
21968
21986
|
break loop;
|
|
21969
21987
|
}
|
|
@@ -22081,7 +22099,9 @@ ${end.comment}` : end.comment;
|
|
|
22081
22099
|
case "&":
|
|
22082
22100
|
return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
22083
22101
|
case "-":
|
|
22102
|
+
// this is an error
|
|
22084
22103
|
case "?":
|
|
22104
|
+
// this is an error outside flow collections
|
|
22085
22105
|
case ":": {
|
|
22086
22106
|
const inFlow = this.flowLevel > 0;
|
|
22087
22107
|
const ch1 = this.charAt(1);
|
|
@@ -22215,6 +22235,7 @@ ${end.comment}` : end.comment;
|
|
|
22215
22235
|
}
|
|
22216
22236
|
case "block-seq":
|
|
22217
22237
|
return parent.items[parent.items.length - 1].start;
|
|
22238
|
+
/* istanbul ignore next should not happen */
|
|
22218
22239
|
default:
|
|
22219
22240
|
return [];
|
|
22220
22241
|
}
|
|
@@ -22446,6 +22467,7 @@ ${end.comment}` : end.comment;
|
|
|
22446
22467
|
Object.assign(it3, { key: token, sep: [] });
|
|
22447
22468
|
return;
|
|
22448
22469
|
}
|
|
22470
|
+
/* istanbul ignore next should not happen */
|
|
22449
22471
|
default:
|
|
22450
22472
|
yield* this.pop();
|
|
22451
22473
|
yield* this.pop(token);
|
|
@@ -22567,6 +22589,7 @@ ${end.comment}` : end.comment;
|
|
|
22567
22589
|
}
|
|
22568
22590
|
yield* this.pop();
|
|
22569
22591
|
break;
|
|
22592
|
+
/* istanbul ignore next should not happen */
|
|
22570
22593
|
default:
|
|
22571
22594
|
yield* this.pop();
|
|
22572
22595
|
yield* this.step();
|
|
@@ -23012,6 +23035,7 @@ ${end.comment}` : end.comment;
|
|
|
23012
23035
|
break;
|
|
23013
23036
|
case "newline":
|
|
23014
23037
|
this.onKeyLine = false;
|
|
23038
|
+
// fallthrough
|
|
23015
23039
|
case "space":
|
|
23016
23040
|
case "comment":
|
|
23017
23041
|
default:
|
|
@@ -29777,7 +29801,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29777
29801
|
function loadMessageBundle() {
|
|
29778
29802
|
return localize2;
|
|
29779
29803
|
}
|
|
29780
|
-
var __extends = /* @__PURE__ */ function() {
|
|
29804
|
+
var __extends = /* @__PURE__ */ (function() {
|
|
29781
29805
|
var extendStatics = function(d, b3) {
|
|
29782
29806
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b22) {
|
|
29783
29807
|
d2.__proto__ = b22;
|
|
@@ -29795,7 +29819,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29795
29819
|
}
|
|
29796
29820
|
d.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __());
|
|
29797
29821
|
};
|
|
29798
|
-
}();
|
|
29822
|
+
})();
|
|
29799
29823
|
var localize22 = loadMessageBundle();
|
|
29800
29824
|
var formats = {
|
|
29801
29825
|
"color-hex": { errorMessage: localize22("colorHexFormatWarning", "Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."), pattern: /^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/ },
|
|
@@ -29806,7 +29830,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29806
29830
|
};
|
|
29807
29831
|
var ASTNodeImpl = (
|
|
29808
29832
|
/** @class */
|
|
29809
|
-
function() {
|
|
29833
|
+
(function() {
|
|
29810
29834
|
function ASTNodeImpl3(parent, offset, length) {
|
|
29811
29835
|
if (length === void 0) {
|
|
29812
29836
|
length = 0;
|
|
@@ -29826,11 +29850,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29826
29850
|
return "type: " + this.type + " (" + this.offset + "/" + this.length + ")" + (this.parent ? " parent: {" + this.parent.toString() + "}" : "");
|
|
29827
29851
|
};
|
|
29828
29852
|
return ASTNodeImpl3;
|
|
29829
|
-
}()
|
|
29853
|
+
})()
|
|
29830
29854
|
);
|
|
29831
29855
|
var NullASTNodeImpl = (
|
|
29832
29856
|
/** @class */
|
|
29833
|
-
function(_super) {
|
|
29857
|
+
(function(_super) {
|
|
29834
29858
|
__extends(NullASTNodeImpl3, _super);
|
|
29835
29859
|
function NullASTNodeImpl3(parent, offset) {
|
|
29836
29860
|
var _this = _super.call(this, parent, offset) || this;
|
|
@@ -29839,11 +29863,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29839
29863
|
return _this;
|
|
29840
29864
|
}
|
|
29841
29865
|
return NullASTNodeImpl3;
|
|
29842
|
-
}(ASTNodeImpl)
|
|
29866
|
+
})(ASTNodeImpl)
|
|
29843
29867
|
);
|
|
29844
29868
|
var BooleanASTNodeImpl = (
|
|
29845
29869
|
/** @class */
|
|
29846
|
-
function(_super) {
|
|
29870
|
+
(function(_super) {
|
|
29847
29871
|
__extends(BooleanASTNodeImpl3, _super);
|
|
29848
29872
|
function BooleanASTNodeImpl3(parent, boolValue, offset) {
|
|
29849
29873
|
var _this = _super.call(this, parent, offset) || this;
|
|
@@ -29852,11 +29876,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29852
29876
|
return _this;
|
|
29853
29877
|
}
|
|
29854
29878
|
return BooleanASTNodeImpl3;
|
|
29855
|
-
}(ASTNodeImpl)
|
|
29879
|
+
})(ASTNodeImpl)
|
|
29856
29880
|
);
|
|
29857
29881
|
var ArrayASTNodeImpl = (
|
|
29858
29882
|
/** @class */
|
|
29859
|
-
function(_super) {
|
|
29883
|
+
(function(_super) {
|
|
29860
29884
|
__extends(ArrayASTNodeImpl3, _super);
|
|
29861
29885
|
function ArrayASTNodeImpl3(parent, offset) {
|
|
29862
29886
|
var _this = _super.call(this, parent, offset) || this;
|
|
@@ -29872,11 +29896,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29872
29896
|
configurable: true
|
|
29873
29897
|
});
|
|
29874
29898
|
return ArrayASTNodeImpl3;
|
|
29875
|
-
}(ASTNodeImpl)
|
|
29899
|
+
})(ASTNodeImpl)
|
|
29876
29900
|
);
|
|
29877
29901
|
var NumberASTNodeImpl = (
|
|
29878
29902
|
/** @class */
|
|
29879
|
-
function(_super) {
|
|
29903
|
+
(function(_super) {
|
|
29880
29904
|
__extends(NumberASTNodeImpl3, _super);
|
|
29881
29905
|
function NumberASTNodeImpl3(parent, offset) {
|
|
29882
29906
|
var _this = _super.call(this, parent, offset) || this;
|
|
@@ -29886,11 +29910,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29886
29910
|
return _this;
|
|
29887
29911
|
}
|
|
29888
29912
|
return NumberASTNodeImpl3;
|
|
29889
|
-
}(ASTNodeImpl)
|
|
29913
|
+
})(ASTNodeImpl)
|
|
29890
29914
|
);
|
|
29891
29915
|
var StringASTNodeImpl = (
|
|
29892
29916
|
/** @class */
|
|
29893
|
-
function(_super) {
|
|
29917
|
+
(function(_super) {
|
|
29894
29918
|
__extends(StringASTNodeImpl3, _super);
|
|
29895
29919
|
function StringASTNodeImpl3(parent, offset, length) {
|
|
29896
29920
|
var _this = _super.call(this, parent, offset, length) || this;
|
|
@@ -29899,11 +29923,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29899
29923
|
return _this;
|
|
29900
29924
|
}
|
|
29901
29925
|
return StringASTNodeImpl3;
|
|
29902
|
-
}(ASTNodeImpl)
|
|
29926
|
+
})(ASTNodeImpl)
|
|
29903
29927
|
);
|
|
29904
29928
|
var PropertyASTNodeImpl = (
|
|
29905
29929
|
/** @class */
|
|
29906
|
-
function(_super) {
|
|
29930
|
+
(function(_super) {
|
|
29907
29931
|
__extends(PropertyASTNodeImpl3, _super);
|
|
29908
29932
|
function PropertyASTNodeImpl3(parent, offset, keyNode) {
|
|
29909
29933
|
var _this = _super.call(this, parent, offset) || this;
|
|
@@ -29920,11 +29944,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29920
29944
|
configurable: true
|
|
29921
29945
|
});
|
|
29922
29946
|
return PropertyASTNodeImpl3;
|
|
29923
|
-
}(ASTNodeImpl)
|
|
29947
|
+
})(ASTNodeImpl)
|
|
29924
29948
|
);
|
|
29925
29949
|
var ObjectASTNodeImpl = (
|
|
29926
29950
|
/** @class */
|
|
29927
|
-
function(_super) {
|
|
29951
|
+
(function(_super) {
|
|
29928
29952
|
__extends(ObjectASTNodeImpl3, _super);
|
|
29929
29953
|
function ObjectASTNodeImpl3(parent, offset) {
|
|
29930
29954
|
var _this = _super.call(this, parent, offset) || this;
|
|
@@ -29940,7 +29964,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29940
29964
|
configurable: true
|
|
29941
29965
|
});
|
|
29942
29966
|
return ObjectASTNodeImpl3;
|
|
29943
|
-
}(ASTNodeImpl)
|
|
29967
|
+
})(ASTNodeImpl)
|
|
29944
29968
|
);
|
|
29945
29969
|
function asSchema(schema4) {
|
|
29946
29970
|
if (isBoolean(schema4)) {
|
|
@@ -29955,7 +29979,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29955
29979
|
})(EnumMatch || (EnumMatch = {}));
|
|
29956
29980
|
var SchemaCollector = (
|
|
29957
29981
|
/** @class */
|
|
29958
|
-
function() {
|
|
29982
|
+
(function() {
|
|
29959
29983
|
function SchemaCollector3(focusOffset, exclude) {
|
|
29960
29984
|
if (focusOffset === void 0) {
|
|
29961
29985
|
focusOffset = -1;
|
|
@@ -29977,11 +30001,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
29977
30001
|
return new SchemaCollector3(-1, this.exclude);
|
|
29978
30002
|
};
|
|
29979
30003
|
return SchemaCollector3;
|
|
29980
|
-
}()
|
|
30004
|
+
})()
|
|
29981
30005
|
);
|
|
29982
30006
|
var NoOpSchemaCollector = (
|
|
29983
30007
|
/** @class */
|
|
29984
|
-
function() {
|
|
30008
|
+
(function() {
|
|
29985
30009
|
function NoOpSchemaCollector3() {
|
|
29986
30010
|
}
|
|
29987
30011
|
Object.defineProperty(NoOpSchemaCollector3.prototype, "schemas", {
|
|
@@ -30003,11 +30027,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30003
30027
|
};
|
|
30004
30028
|
NoOpSchemaCollector3.instance = new NoOpSchemaCollector3();
|
|
30005
30029
|
return NoOpSchemaCollector3;
|
|
30006
|
-
}()
|
|
30030
|
+
})()
|
|
30007
30031
|
);
|
|
30008
30032
|
var ValidationResult = (
|
|
30009
30033
|
/** @class */
|
|
30010
|
-
function() {
|
|
30034
|
+
(function() {
|
|
30011
30035
|
function ValidationResult3() {
|
|
30012
30036
|
this.problems = [];
|
|
30013
30037
|
this.propertiesMatches = 0;
|
|
@@ -30068,7 +30092,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30068
30092
|
return this.propertiesMatches - other.propertiesMatches;
|
|
30069
30093
|
};
|
|
30070
30094
|
return ValidationResult3;
|
|
30071
|
-
}()
|
|
30095
|
+
})()
|
|
30072
30096
|
);
|
|
30073
30097
|
function getNodeValue22(node) {
|
|
30074
30098
|
return getNodeValue2(node);
|
|
@@ -30081,7 +30105,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30081
30105
|
}
|
|
30082
30106
|
var JSONDocument = (
|
|
30083
30107
|
/** @class */
|
|
30084
|
-
function() {
|
|
30108
|
+
(function() {
|
|
30085
30109
|
function JSONDocument3(root, syntaxErrors, comments) {
|
|
30086
30110
|
if (syntaxErrors === void 0) {
|
|
30087
30111
|
syntaxErrors = [];
|
|
@@ -30143,7 +30167,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30143
30167
|
return matchingSchemas.schemas;
|
|
30144
30168
|
};
|
|
30145
30169
|
return JSONDocument3;
|
|
30146
|
-
}()
|
|
30170
|
+
})()
|
|
30147
30171
|
);
|
|
30148
30172
|
function validate(n, schema4, validationResult, matchingSchemas) {
|
|
30149
30173
|
if (!n || !matchingSchemas.include(n)) {
|
|
@@ -30815,7 +30839,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30815
30839
|
var PATH_SEP = "/";
|
|
30816
30840
|
var FilePatternAssociation = (
|
|
30817
30841
|
/** @class */
|
|
30818
|
-
function() {
|
|
30842
|
+
(function() {
|
|
30819
30843
|
function FilePatternAssociation3(pattern, uris) {
|
|
30820
30844
|
this.globWrappers = [];
|
|
30821
30845
|
try {
|
|
@@ -30856,11 +30880,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30856
30880
|
return this.uris;
|
|
30857
30881
|
};
|
|
30858
30882
|
return FilePatternAssociation3;
|
|
30859
|
-
}()
|
|
30883
|
+
})()
|
|
30860
30884
|
);
|
|
30861
30885
|
var SchemaHandle = (
|
|
30862
30886
|
/** @class */
|
|
30863
|
-
function() {
|
|
30887
|
+
(function() {
|
|
30864
30888
|
function SchemaHandle2(service, url, unresolvedSchemaContent) {
|
|
30865
30889
|
this.service = service;
|
|
30866
30890
|
this.url = url;
|
|
@@ -30890,11 +30914,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30890
30914
|
this.dependencies = {};
|
|
30891
30915
|
};
|
|
30892
30916
|
return SchemaHandle2;
|
|
30893
|
-
}()
|
|
30917
|
+
})()
|
|
30894
30918
|
);
|
|
30895
30919
|
var UnresolvedSchema = (
|
|
30896
30920
|
/** @class */
|
|
30897
|
-
/* @__PURE__ */ function() {
|
|
30921
|
+
/* @__PURE__ */ (function() {
|
|
30898
30922
|
function UnresolvedSchema2(schema4, errors) {
|
|
30899
30923
|
if (errors === void 0) {
|
|
30900
30924
|
errors = [];
|
|
@@ -30903,11 +30927,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30903
30927
|
this.errors = errors;
|
|
30904
30928
|
}
|
|
30905
30929
|
return UnresolvedSchema2;
|
|
30906
|
-
}()
|
|
30930
|
+
})()
|
|
30907
30931
|
);
|
|
30908
30932
|
var ResolvedSchema = (
|
|
30909
30933
|
/** @class */
|
|
30910
|
-
function() {
|
|
30934
|
+
(function() {
|
|
30911
30935
|
function ResolvedSchema2(schema4, errors) {
|
|
30912
30936
|
if (errors === void 0) {
|
|
30913
30937
|
errors = [];
|
|
@@ -30952,11 +30976,11 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
30952
30976
|
return void 0;
|
|
30953
30977
|
};
|
|
30954
30978
|
return ResolvedSchema2;
|
|
30955
|
-
}()
|
|
30979
|
+
})()
|
|
30956
30980
|
);
|
|
30957
30981
|
var JSONSchemaService = (
|
|
30958
30982
|
/** @class */
|
|
30959
|
-
function() {
|
|
30983
|
+
(function() {
|
|
30960
30984
|
function JSONSchemaService2(requestService, contextService, promiseConstructor) {
|
|
30961
30985
|
this.contextService = contextService;
|
|
30962
30986
|
this.requestService = requestService;
|
|
@@ -31318,7 +31342,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
31318
31342
|
});
|
|
31319
31343
|
};
|
|
31320
31344
|
return JSONSchemaService2;
|
|
31321
|
-
}()
|
|
31345
|
+
})()
|
|
31322
31346
|
);
|
|
31323
31347
|
var idCounter = 0;
|
|
31324
31348
|
function normalizeId(id) {
|
|
@@ -31486,7 +31510,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
31486
31510
|
var localize4 = loadMessageBundle();
|
|
31487
31511
|
var JSONValidation = (
|
|
31488
31512
|
/** @class */
|
|
31489
|
-
function() {
|
|
31513
|
+
(function() {
|
|
31490
31514
|
function JSONValidation2(jsonSchemaService, promiseConstructor) {
|
|
31491
31515
|
this.jsonSchemaService = jsonSchemaService;
|
|
31492
31516
|
this.promise = promiseConstructor;
|
|
@@ -31571,7 +31595,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
31571
31595
|
});
|
|
31572
31596
|
};
|
|
31573
31597
|
return JSONValidation2;
|
|
31574
|
-
}()
|
|
31598
|
+
})()
|
|
31575
31599
|
);
|
|
31576
31600
|
var idCounter2 = 0;
|
|
31577
31601
|
function schemaAllowsComments(schemaRef) {
|
|
@@ -31681,7 +31705,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
31681
31705
|
}
|
|
31682
31706
|
var JSONDocumentSymbols = (
|
|
31683
31707
|
/** @class */
|
|
31684
|
-
function() {
|
|
31708
|
+
(function() {
|
|
31685
31709
|
function JSONDocumentSymbols2(schemaService) {
|
|
31686
31710
|
this.schemaService = schemaService;
|
|
31687
31711
|
}
|
|
@@ -31938,7 +31962,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
31938
31962
|
return result;
|
|
31939
31963
|
};
|
|
31940
31964
|
return JSONDocumentSymbols2;
|
|
31941
|
-
}()
|
|
31965
|
+
})()
|
|
31942
31966
|
);
|
|
31943
31967
|
function getRange(document2, node) {
|
|
31944
31968
|
return Range2.create(document2.positionAt(node.offset), document2.positionAt(node.offset + node.length));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Princess Beef Heavy Industries Cowboy Components",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
|
-
"version": "0.7.
|
|
6
|
+
"version": "0.7.18",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/cowboy-components.umd.cjs",
|
|
9
9
|
"module": "./dist/cowboy-components.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@web/test-runner-playwright": "^0.11.1",
|
|
62
62
|
"rollup-plugin-copy": "^3.5.0",
|
|
63
63
|
"typescript": "^5.3.3",
|
|
64
|
-
"vite": "
|
|
64
|
+
"vite": "7.2.7",
|
|
65
65
|
"vite-plugin-dts": "^3.7.0",
|
|
66
66
|
"vite-plugin-mkcert": "^1.17.5",
|
|
67
67
|
"vite-plugin-monaco-editor": "^1.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";var o=(s=>(s.VERSION="version",s.SCHEMA="schema",s.MEDIA_TYPE="mediaType",s.HEADER="header",s.EXAMPLE="example",s.EXAMPLES="examples",s.ENCODING="encoding",s.REQUEST_BODY="requestBody",s.REQUEST_BODIES="requestBodies",s.PARAMETER="parameter",s.PARAMETER_QUERY="query",s.COOKIE="cookie",s.PARAMETERS="parameters",s.LINK="link",s.LINKS="links",s.RESPONSE="response",s.RESPONSES="responses",s.OPERATION="operation",s.OPERATIONS="operations",s.SECURITY_SCHEME="securityScheme",s.SECURITY_SCHEMES="securitySchemes",s.EXTERNAL_DOCS="externalDocs",s.SECURITY="security",s.CALLBACK="callback",s.CALLBACKS="callbacks",s.PATH_ITEM="pathItem",s.PATH_ITEMS="pathItems",s.XML="xml",s.HEADERS="headers",s.SERVER="server",s.SERVERS="servers",s.SERVER_VARIABLE="serverVariable",s.PATHS="paths",s.COMPONENTS="components",s.CONTACT="contact",s.LICENSE="license",s.INFO="info",s.TAG="tag",s.TAGS="tags",s.DOCUMENT="document",s.WEBHOOK="webhook",s.WEBHOOKS="webhooks",s.EXTENSIONS="extensions",s.EXTENSION="extension",s.NO_EXAMPLE="noExample",s.POLYMORPHIC="polymorphic",s.ERROR="error",s.WARNING="warning",s.ROLODEX_FILE="rolodex-file",s.ROLODEX_FOLDER="rolodex-dir",s.OPENAPI="openapi",s.UPLOAD="upload",s.ADD="add",s.UNKNOWN="unknown",s.JS="js",s.GO="go",s.TS="ts",s.CS="cs",s.C="c",s.CPP="cpp",s.PHP="php",s.PY="py",s.HTML="html",s.MD="md",s.JAVA="java",s.RS="rs",s.ZIG="zig",s.RB="rb",s.YAML="yaml",s.JSON="json",s))(o||{});function I(s,P,h,u,f,l,e,E){if(s&&s.sources.length>0)for(let O=0;O<s.sources.length;O++){const A=s.sources[O];if(f.has(A)){const n=f.get(A);if(n){if(n.filtered)return;if(delete n.x,delete n.y,h.has(n.id)||(Object.keys(E).includes(n.type)||(n.dependency=!0),h.set(n.id,n)),!n.processed){const a=e.get(n.id);a&&a.forEach(R=>{delete R.container,delete R.sections,R.dependency=!0,u.set(R.id,R),I(R,n,h,u,f,l,e,E)})}const S=l.get(n.id);S&&S.forEach(a=>{a.targets.includes(P.id)&&(delete a.container,delete a.sections,u.set(a.id,a),I(a,n,h,u,f,l,e,E))}),n.processed=!0}}}}onmessage=function(s){var P,h,u;if(s.data.graphResponse&&s.data.spacing){const f=s.data.objects,l=s.data.references,e=s.data.graphResponse,E={nodes:[],edges:[],nodesRendered:e.nodesRendered,spacing:s.data.spacing,references:s.data.references},O=new Map,A=new Map,n=new Map,S=new Map,a=new Map,R=(t,r)=>{const i=[];for(const c in r)if(c.includes(t+"_filter_")){const[,,M]=c.split("_");i.push(M)}return i};if(!f){postMessage(E);return}(P=e.nodes)==null||P.forEach(t=>{Object.keys(f).includes(t.type)&&n.set(t.id,t),O.set(t.id,t)}),(h=e.nodesRendered)==null||h.forEach(t=>{A.set(t.id,t)});const C=(t,r,i)=>{if(!i.includes(t+"XX")){r.filtered=!0;const c=O.get(r.id);c&&(c.filtered=!0)}};n.forEach(t=>{var M;const r=R(t.type,f);let i=[],c;if(r.length>0)switch(t.type){case o.RESPONSE:i=["1","2","3","4","5"];for(const k of i)t.label.startsWith(k)&&C(k,t,r);break;case o.PARAMETER:i=["cookie","header","path","query"],c=A.get(t.id),c&&(M=c==null?void 0:c.instance)!=null&&M.hasOwnProperty("in")&&(r.includes(c.instance.in)||C(c.instance.in,t,r));break;case o.OPERATION:i=["get","post","put","patch","delete","head","options","trace"],r.includes(t.label.toLowerCase())||C(t.label,t,r);break}}),(u=e.edges)==null||u.forEach(t=>{l&&!l.renderRefs&&t.ref&&t.ref!=""||l&&!l.renderPoly&&t.ref&&t.ref!=""&&t.poly&&t.poly!=""||(t.sources.forEach(r=>{var i;S.has(r)||S.set(r,[]),delete t.container,delete t.sections,(i=S.get(r))==null||i.push(t)}),t.targets.forEach(r=>{var i;a.has(r)||a.set(r,[]),delete t.container,delete t.sections,(i=a.get(r))==null||i.push(t)}))});const L=new Map,b=new Map;n.forEach(t=>{if(Object.keys(f).includes(t.type)){if(delete t.x,delete t.y,t.filtered)return;E.nodes.push(t);const r=a.get(t.id);r&&r.forEach(i=>{I(i,t,L,b,O,S,a,f)})}}),L.forEach(t=>{let r=!1;E.nodes.forEach(i=>{i.id==t.id&&(r=!0)}),r||E.nodes.push(t)}),b.forEach(t=>{let r=!1;E.edges.forEach(i=>{i.id==t.id&&(r=!0)}),r||E.edges.push(t)}),E.rebuild=s.data.rebuild,postMessage(E)}}})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";function M(t,d,c,h,f,i){if(t.nodes){for(const s of t.nodes)if(!d.has(s.id)){d.set(s.id,s);const a=i.get(s.id);a&&a.forEach(o=>{c.has(o.id)||c.set(o.id,o)}),M(s,d,c,h,f,i)}}}onmessage=function(t){if(t.data.dependentNode){const d=t.data.dependentNode,c=t.data.nodes,h=t.data.edges,f=new Map,i=new Map,s=new Map,a=new Map,o=new Map,g=new Map;c.forEach(n=>o.set(n.id,n)),h.forEach(n=>{g.set(n.id,n),n.sources.forEach(e=>{var p;s.has(e)||s.set(e,[]),(p=s.get(e))==null||p.push(n)}),n.targets.forEach(e=>{var p;a.has(e)||a.set(e,[]),(p=a.get(e))==null||p.push(n)})}),M(d,f,i,o,g,a),postMessage({filteredNodes:f,filteredEdges:i,collapse:t.data.collapse})}}})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";var a=(t=>(t.RULE="rule",t.FUNCTION="function",t))(a||{});onmessage=function(t){if(t.data.start){const o=[d(t.data.endpoint,t.data.existingRules),l(t.data.endpoint,t.data.existingFunctions)];Promise.all(o).then(e=>{postMessage(e.flat())}).catch(()=>{console.error("documentation cannot be fetched")})}};async function d(t,o){return new Promise(async(e,n)=>{try{const c=(await m(t)).map(s=>s.ruleId&&!o.includes(s.ruleId)?y(s.ruleId,t).then(i=>(i.body&&(s.body=i.body),s.type=a.RULE,s)):Promise.resolve(s)),u=await Promise.all(c);e(u)}catch(r){console.error("documentation service is down"),n(r)}})}async function l(t,o){return new Promise(async(e,n)=>{try{const c=(await f(t)).map(s=>s.functionId&&!o.includes(s.functionId)?h(s.functionId,t).then(i=>(i.body&&(s.body=i.body),s.type=a.FUNCTION,s)):Promise.resolve(s)),u=await Promise.all(c);e(u)}catch(r){console.error("documentation service is down"),n(r)}})}async function m(t){try{const e=await(await fetch(t+"/rules/documentation",{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return e?e!=null&&e.error?new Promise(async(n,r)=>{r(e.error)}):e:new Promise(async(n,r)=>{r("nothing returned")})}catch(o){return new Promise(async(e,n)=>{n(o)})}}async function f(t){try{const e=await(await fetch(t+"/functions/documentation",{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return e?e!=null&&e.error?new Promise(async(n,r)=>{r(e.error)}):e:new Promise(async(n,r)=>{r("nothing returned")})}catch(o){return new Promise(async(e,n)=>{n(o)})}}async function y(t,o){try{const n=await(await fetch(o+`/rules/documentation/${t}`,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return n?n!=null&&n.error?new Promise(async(r,c)=>{c(n.error)}):n:new Promise(async(r,c)=>{c("nothing returned")})}catch(e){return new Promise(async(n,r)=>{r(e)})}}async function h(t,o){try{const n=await(await fetch(o+`/functions/documentation/${t}`,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return n?n!=null&&n.error?new Promise(async(r,c)=>{c(n.error)}):n:new Promise(async(r,c)=>{c("nothing returned")})}catch(e){return new Promise(async(n,r)=>{r(e)})}}})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";function n(s,r,c,a){function f(t,i){p(t)?n(t,r,c,a):(typeof t=="string"&&t!=null&&t.toLowerCase().includes(r.toLowerCase())&&s.id&&s.idHash&&(a.includes(s.type)||(s.filtered=!0),c.set(s.id,s),s.searchMatch=t,s.searchKey=i),Number.isInteger(t)&&parseInt(r)&&t==parseInt(r)&&s.id&&s.idHash&&(a.includes(s.type)||(s.filtered=!0),c.set(s.id,s)))}if(s.type,s.instance)for(const t in s.instance){const i=s.instance[t];f(i,t)}else for(const t in s){const i=s[t];f(i,t)}}function p(s){return s!==null&&typeof s=="object"&&!Array.isArray(s)}onmessage=function(s){if(s.data.searchGraph&&s.data.searchKeyword){const r=s.data.searchGraph,c=s.data.searchKeyword,a={nodes:[],edges:[],nodesRendered:[],spacing:{},references:{}},f=new Map,t=new Map,i=Object.keys(s.data.objects);r.nodes.forEach(e=>{e.label.toLowerCase().includes(c.toLowerCase())&&(i.includes(e.type)||(e.filtered=!0),t.set(e.id,e)),f.set(e.id,e)}),r.nodesRendered.forEach(e=>{n(e,c,t,i)}),a.nodes=Array.from(t.values()),postMessage(a)}}})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";onmessage=function(e){if(e.data.search&&e.data.problems){const r=e.data.problems.filter(s=>{var t,a;return(t=s.jsonPath)!=null&&t.toLowerCase().includes(e.data.search.toLowerCase())||(a=s.message)!=null&&a.toLowerCase().includes(e.data.search.toLowerCase())||s.source==e.data.search?s:null});postMessage(r)}}})();
|