@wix/zero-config-implementation 1.44.0 → 1.45.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/dist/index.js
CHANGED
|
@@ -3430,8 +3430,8 @@ function tE() {
|
|
|
3430
3430
|
}
|
|
3431
3431
|
e.withDefaultConfig = c;
|
|
3432
3432
|
function d(B, E) {
|
|
3433
|
-
var F = r.dirname(B), C = i.readConfigFile(B, function(
|
|
3434
|
-
return n.readFileSync(
|
|
3433
|
+
var F = r.dirname(B), C = i.readConfigFile(B, function(se) {
|
|
3434
|
+
return n.readFileSync(se, "utf8");
|
|
3435
3435
|
}), w = C.config, T = C.error;
|
|
3436
3436
|
if (T !== void 0) {
|
|
3437
3437
|
var L = "Cannot load custom tsconfig.json from provided path: " + B + ", with error code: " + T.code + ", message: " + T.messageText;
|
|
@@ -3507,7 +3507,7 @@ function tE() {
|
|
|
3507
3507
|
if (C === void 0 && (C = function() {
|
|
3508
3508
|
}), w === void 0 && (w = []), E.declarations && E.declarations.length === 0)
|
|
3509
3509
|
return null;
|
|
3510
|
-
var T = this.getComponentFromExpression(E), L = T.valueDeclaration || T.declarations[0], V = this.checker.getTypeOfSymbolAtLocation(T, L), Z = T, q = V.symbol || V.aliasSymbol,
|
|
3510
|
+
var T = this.getComponentFromExpression(E), L = T.valueDeclaration || T.declarations[0], V = this.checker.getTypeOfSymbolAtLocation(T, L), Z = T, q = V.symbol || V.aliasSymbol, se = T.getName(), Be = F.fileName, Fe = Be + "_" + se;
|
|
3511
3511
|
if (this.componentsInfoCache.has(Fe))
|
|
3512
3512
|
return this.componentsInfoCache.get(Fe);
|
|
3513
3513
|
if (T.valueDeclaration)
|
|
@@ -3532,7 +3532,7 @@ function tE() {
|
|
|
3532
3532
|
return this.componentsInfoCache.set(Fe, null), null;
|
|
3533
3533
|
if (q && (q.getEscapedName() === "Requireable" || q.getEscapedName() === "Validator"))
|
|
3534
3534
|
return this.componentsInfoCache.set(Fe, null), null;
|
|
3535
|
-
var ke = this.extractPropsFromTypeIfStatelessComponent(V) || this.extractPropsFromTypeIfStatefulComponent(V), Te =
|
|
3535
|
+
var ke = this.extractPropsFromTypeIfStatelessComponent(V) || this.extractPropsFromTypeIfStatefulComponent(V), Te = se === "default" ? T : Z, Je = C(Te, F), Me = this.findDocComment(Z), Ze = Me.description, ut = Me.tags, pt = Je || ut.visibleName || z(Te, F, w), Ba = this.getMethodsInfo(V), It = null;
|
|
3536
3536
|
if (ke) {
|
|
3537
3537
|
if (!Z.valueDeclaration)
|
|
3538
3538
|
return this.componentsInfoCache.set(Fe, null), null;
|
|
@@ -3589,9 +3589,9 @@ function tE() {
|
|
|
3589
3589
|
var F = this, C = this.extractMembersFromType(E), w = [];
|
|
3590
3590
|
return C.forEach(function(T) {
|
|
3591
3591
|
if (F.isTaggedPublic(T)) {
|
|
3592
|
-
var L = T.getName(), V = F.getFullJsDocComment(T).fullComment, Z = F.getCallSignature(T), q = F.getParameterInfo(Z),
|
|
3592
|
+
var L = T.getName(), V = F.getFullJsDocComment(T).fullComment, Z = F.getCallSignature(T), q = F.getParameterInfo(Z), se = i.displayPartsToString(T.getDocumentationComment(F.checker)), Be = F.checker.typeToString(Z.getReturnType()), Fe = i.displayPartsToString(F.getReturnDescription(T)), et = F.getModifiers(T);
|
|
3593
3593
|
w.push({
|
|
3594
|
-
description:
|
|
3594
|
+
description: se,
|
|
3595
3595
|
docblock: V,
|
|
3596
3596
|
modifiers: et,
|
|
3597
3597
|
name: L,
|
|
@@ -3667,8 +3667,8 @@ function tE() {
|
|
|
3667
3667
|
if (w.isUnionOrIntersection() && (L = a(a([], L = this.checker.getAllPossiblePropertiesOfTypes(w.types)), T), !L.length)) {
|
|
3668
3668
|
var V = this.checker.getAllPossiblePropertiesOfTypes(w.types.reduce(
|
|
3669
3669
|
// @ts-ignore
|
|
3670
|
-
function(q,
|
|
3671
|
-
return a(a([], q),
|
|
3670
|
+
function(q, se) {
|
|
3671
|
+
return a(a([], q), se.types || []);
|
|
3672
3672
|
},
|
|
3673
3673
|
[]
|
|
3674
3674
|
));
|
|
@@ -3676,14 +3676,14 @@ function tE() {
|
|
|
3676
3676
|
}
|
|
3677
3677
|
var Z = {};
|
|
3678
3678
|
return L.forEach(function(q) {
|
|
3679
|
-
var
|
|
3679
|
+
var se = q.getName(), Be = D(q), Fe = Be?.fileName + "_" + se;
|
|
3680
3680
|
if (C.propertiesOfPropsCache.has(Fe))
|
|
3681
|
-
Z[
|
|
3681
|
+
Z[se] = C.propertiesOfPropsCache.get(Fe);
|
|
3682
3682
|
else {
|
|
3683
|
-
var et = C.checker.getTypeOfSymbolAtLocation(q, E.valueDeclaration), Pe = C.findDocComment(q), Gt = F[
|
|
3684
|
-
Gt ? ke = { value: F[
|
|
3683
|
+
var et = C.checker.getTypeOfSymbolAtLocation(q, E.valueDeclaration), Pe = C.findDocComment(q), Gt = F[se] !== void 0, ke = null;
|
|
3684
|
+
Gt ? ke = { value: F[se] } : Pe.tags.default && (ke = { value: Pe.tags.default });
|
|
3685
3685
|
var Te = k(q), Je = q.declarations || [], Me = T.find(function(an) {
|
|
3686
|
-
return an.getName() ===
|
|
3686
|
+
return an.getName() === se;
|
|
3687
3687
|
}), Ze = !f(q) && !Gt && // If in a intersection or union check original declaration for "?"
|
|
3688
3688
|
// @ts-ignore
|
|
3689
3689
|
Je.every(function(an) {
|
|
@@ -3695,13 +3695,13 @@ function tE() {
|
|
|
3695
3695
|
`), It = t({
|
|
3696
3696
|
defaultValue: ke,
|
|
3697
3697
|
description: Ba,
|
|
3698
|
-
name:
|
|
3698
|
+
name: se,
|
|
3699
3699
|
parent: Be,
|
|
3700
3700
|
declarations: Te,
|
|
3701
3701
|
required: Ze,
|
|
3702
3702
|
type: ut
|
|
3703
3703
|
}, pt);
|
|
3704
|
-
Be?.fileName.includes("node_modules") && C.propertiesOfPropsCache.set(Be.fileName + "_" +
|
|
3704
|
+
Be?.fileName.includes("node_modules") && C.propertiesOfPropsCache.set(Be.fileName + "_" + se, It), Z[se] = It;
|
|
3705
3705
|
}
|
|
3706
3706
|
}), Z;
|
|
3707
3707
|
}, B.prototype.findDocComment = function(E) {
|
|
@@ -3766,7 +3766,7 @@ function tE() {
|
|
|
3766
3766
|
var Z = V[0], q = Z.initializer;
|
|
3767
3767
|
if (!q)
|
|
3768
3768
|
return T;
|
|
3769
|
-
for (var
|
|
3769
|
+
for (var se = q.properties; i.isIdentifier(q); ) {
|
|
3770
3770
|
var Be = C.checker.getSymbolAtLocation(q);
|
|
3771
3771
|
if (Be) {
|
|
3772
3772
|
var Fe = Be.getDeclarations();
|
|
@@ -3782,12 +3782,12 @@ function tE() {
|
|
|
3782
3782
|
continue;
|
|
3783
3783
|
} else
|
|
3784
3784
|
q = Fe[0].initializer;
|
|
3785
|
-
|
|
3785
|
+
se = q.properties;
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
3788
|
}
|
|
3789
3789
|
var Gt = {};
|
|
3790
|
-
return
|
|
3790
|
+
return se && (Gt = C.getPropMap(se)), t(t({}, T), Gt);
|
|
3791
3791
|
} else if (P(L)) {
|
|
3792
3792
|
var ke = {};
|
|
3793
3793
|
return L.getChildren().forEach(function(Me) {
|
|
@@ -3919,13 +3919,13 @@ function tE() {
|
|
|
3919
3919
|
var C = E.statements.filter(function(T) {
|
|
3920
3920
|
return i.isExpressionStatement(T);
|
|
3921
3921
|
}).filter(function(T) {
|
|
3922
|
-
var L, V, Z, q,
|
|
3922
|
+
var L, V, Z, q, se = T.expression, Be = Array.from(E.locals), Fe = Be.filter(function(Pe) {
|
|
3923
3923
|
return !!Pe[1].exports;
|
|
3924
3924
|
}).length === 1;
|
|
3925
3925
|
if (Fe)
|
|
3926
|
-
return
|
|
3926
|
+
return se.left && se.left.name && se.left.name.escapedText === F;
|
|
3927
3927
|
var et = (q = (Z = (V = (L = T) === null || L === void 0 ? void 0 : L.flowNode) === null || V === void 0 ? void 0 : V.node) === null || Z === void 0 ? void 0 : Z.name) === null || q === void 0 ? void 0 : q.escapedText;
|
|
3928
|
-
return
|
|
3928
|
+
return se.left && se.left.name && se.left.name.escapedText === F && et === B.escapedName;
|
|
3929
3929
|
}).filter(function(T) {
|
|
3930
3930
|
return i.isStringLiteral(T.expression.right);
|
|
3931
3931
|
}).map(function(T) {
|
|
@@ -4006,10 +4006,10 @@ function tE() {
|
|
|
4006
4006
|
}).filter(function(Z) {
|
|
4007
4007
|
return typeof Z < "u";
|
|
4008
4008
|
}).reduce(function(Z, q) {
|
|
4009
|
-
var
|
|
4010
|
-
if (!
|
|
4009
|
+
var se = V.getSymbolAtLocation(q);
|
|
4010
|
+
if (!se)
|
|
4011
4011
|
return Z;
|
|
4012
|
-
var Be = V.getExportsOfModule(
|
|
4012
|
+
var Be = V.getExportsOfModule(se), Fe = [], et = [];
|
|
4013
4013
|
Be.forEach(function(ke) {
|
|
4014
4014
|
if (et.push(ke), !!L.isPlainObjectType(ke)) {
|
|
4015
4015
|
var Te = L.getTypeSymbol(ke);
|
|
@@ -4743,10 +4743,10 @@ class PE {
|
|
|
4743
4743
|
this.isEol = !1;
|
|
4744
4744
|
}
|
|
4745
4745
|
}
|
|
4746
|
-
var
|
|
4746
|
+
var ie;
|
|
4747
4747
|
(function(e) {
|
|
4748
4748
|
e[e.CHARACTER = 0] = "CHARACTER", e[e.NULL_CHARACTER = 1] = "NULL_CHARACTER", e[e.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", e[e.START_TAG = 3] = "START_TAG", e[e.END_TAG = 4] = "END_TAG", e[e.COMMENT = 5] = "COMMENT", e[e.DOCTYPE = 6] = "DOCTYPE", e[e.EOF = 7] = "EOF", e[e.HIBERNATION = 8] = "HIBERNATION";
|
|
4749
|
-
})(
|
|
4749
|
+
})(ie || (ie = {}));
|
|
4750
4750
|
function $h(e, t) {
|
|
4751
4751
|
for (let a = e.attrs.length - 1; a >= 0; a--)
|
|
4752
4752
|
if (e.attrs[a].name === t)
|
|
@@ -5384,7 +5384,7 @@ let ZE = class {
|
|
|
5384
5384
|
//Token creation
|
|
5385
5385
|
_createStartTagToken() {
|
|
5386
5386
|
this.currentToken = {
|
|
5387
|
-
type:
|
|
5387
|
+
type: ie.START_TAG,
|
|
5388
5388
|
tagName: "",
|
|
5389
5389
|
tagID: s.UNKNOWN,
|
|
5390
5390
|
selfClosing: !1,
|
|
@@ -5395,7 +5395,7 @@ let ZE = class {
|
|
|
5395
5395
|
}
|
|
5396
5396
|
_createEndTagToken() {
|
|
5397
5397
|
this.currentToken = {
|
|
5398
|
-
type:
|
|
5398
|
+
type: ie.END_TAG,
|
|
5399
5399
|
tagName: "",
|
|
5400
5400
|
tagID: s.UNKNOWN,
|
|
5401
5401
|
selfClosing: !1,
|
|
@@ -5406,14 +5406,14 @@ let ZE = class {
|
|
|
5406
5406
|
}
|
|
5407
5407
|
_createCommentToken(t) {
|
|
5408
5408
|
this.currentToken = {
|
|
5409
|
-
type:
|
|
5409
|
+
type: ie.COMMENT,
|
|
5410
5410
|
data: "",
|
|
5411
5411
|
location: this.getCurrentLocation(t)
|
|
5412
5412
|
};
|
|
5413
5413
|
}
|
|
5414
5414
|
_createDoctypeToken(t) {
|
|
5415
5415
|
this.currentToken = {
|
|
5416
|
-
type:
|
|
5416
|
+
type: ie.DOCTYPE,
|
|
5417
5417
|
name: t,
|
|
5418
5418
|
forceQuirks: !1,
|
|
5419
5419
|
publicId: null,
|
|
@@ -5455,7 +5455,7 @@ let ZE = class {
|
|
|
5455
5455
|
}
|
|
5456
5456
|
emitCurrentTagToken() {
|
|
5457
5457
|
const t = this.currentToken;
|
|
5458
|
-
this.prepareToken(t), t.tagID = di(t.tagName), t.type ===
|
|
5458
|
+
this.prepareToken(t), t.tagID = di(t.tagName), t.type === ie.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(S.endTagWithAttributes), t.selfClosing && this._err(S.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
|
|
5459
5459
|
}
|
|
5460
5460
|
emitCurrentComment(t) {
|
|
5461
5461
|
this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
|
|
@@ -5466,15 +5466,15 @@ let ZE = class {
|
|
|
5466
5466
|
_emitCurrentCharacterToken(t) {
|
|
5467
5467
|
if (this.currentCharacterToken) {
|
|
5468
5468
|
switch (t && this.currentCharacterToken.location && (this.currentCharacterToken.location.endLine = t.startLine, this.currentCharacterToken.location.endCol = t.startCol, this.currentCharacterToken.location.endOffset = t.startOffset), this.currentCharacterToken.type) {
|
|
5469
|
-
case
|
|
5469
|
+
case ie.CHARACTER: {
|
|
5470
5470
|
this.handler.onCharacter(this.currentCharacterToken);
|
|
5471
5471
|
break;
|
|
5472
5472
|
}
|
|
5473
|
-
case
|
|
5473
|
+
case ie.NULL_CHARACTER: {
|
|
5474
5474
|
this.handler.onNullCharacter(this.currentCharacterToken);
|
|
5475
5475
|
break;
|
|
5476
5476
|
}
|
|
5477
|
-
case
|
|
5477
|
+
case ie.WHITESPACE_CHARACTER: {
|
|
5478
5478
|
this.handler.onWhitespaceCharacter(this.currentCharacterToken);
|
|
5479
5479
|
break;
|
|
5480
5480
|
}
|
|
@@ -5484,7 +5484,7 @@ let ZE = class {
|
|
|
5484
5484
|
}
|
|
5485
5485
|
_emitEOFToken() {
|
|
5486
5486
|
const t = this.getCurrentLocation(0);
|
|
5487
|
-
t && (t.endLine = t.startLine, t.endCol = t.startCol, t.endOffset = t.startOffset), this._emitCurrentCharacterToken(t), this.handler.onEof({ type:
|
|
5487
|
+
t && (t.endLine = t.startLine, t.endCol = t.startCol, t.endOffset = t.startOffset), this._emitCurrentCharacterToken(t), this.handler.onEof({ type: ie.EOF, location: t }), this.active = !1;
|
|
5488
5488
|
}
|
|
5489
5489
|
//Characters emission
|
|
5490
5490
|
//OPTIMIZATION: The specification uses only one type of character token (one token per character).
|
|
@@ -5505,13 +5505,13 @@ let ZE = class {
|
|
|
5505
5505
|
this._createCharacterToken(t, a);
|
|
5506
5506
|
}
|
|
5507
5507
|
_emitCodePoint(t) {
|
|
5508
|
-
const a = qh(t) ?
|
|
5508
|
+
const a = qh(t) ? ie.WHITESPACE_CHARACTER : t === m.NULL ? ie.NULL_CHARACTER : ie.CHARACTER;
|
|
5509
5509
|
this._appendCharToCurrentCharacterToken(a, String.fromCodePoint(t));
|
|
5510
5510
|
}
|
|
5511
5511
|
//NOTE: used when we emit characters explicitly.
|
|
5512
5512
|
//This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.
|
|
5513
5513
|
_emitChars(t) {
|
|
5514
|
-
this._appendCharToCurrentCharacterToken(
|
|
5514
|
+
this._appendCharToCurrentCharacterToken(ie.CHARACTER, t);
|
|
5515
5515
|
}
|
|
5516
5516
|
// Character reference helpers
|
|
5517
5517
|
_startCharacterReference() {
|
|
@@ -8173,7 +8173,7 @@ let BC = class {
|
|
|
8173
8173
|
const n = a.location, r = this.treeAdapter.getTagName(t), i = (
|
|
8174
8174
|
// NOTE: For cases like <p> <p> </p> - First 'p' closes without a closing
|
|
8175
8175
|
// tag and for cases like <td> <p> </td> - 'p' closes without a closing tag.
|
|
8176
|
-
a.type ===
|
|
8176
|
+
a.type === ie.END_TAG && r === a.tagName ? {
|
|
8177
8177
|
endTag: { ...n },
|
|
8178
8178
|
endLine: n.endLine,
|
|
8179
8179
|
endCol: n.endCol,
|
|
@@ -8202,35 +8202,35 @@ let BC = class {
|
|
|
8202
8202
|
/** @protected */
|
|
8203
8203
|
_processToken(t) {
|
|
8204
8204
|
switch (t.type) {
|
|
8205
|
-
case
|
|
8205
|
+
case ie.CHARACTER: {
|
|
8206
8206
|
this.onCharacter(t);
|
|
8207
8207
|
break;
|
|
8208
8208
|
}
|
|
8209
|
-
case
|
|
8209
|
+
case ie.NULL_CHARACTER: {
|
|
8210
8210
|
this.onNullCharacter(t);
|
|
8211
8211
|
break;
|
|
8212
8212
|
}
|
|
8213
|
-
case
|
|
8213
|
+
case ie.COMMENT: {
|
|
8214
8214
|
this.onComment(t);
|
|
8215
8215
|
break;
|
|
8216
8216
|
}
|
|
8217
|
-
case
|
|
8217
|
+
case ie.DOCTYPE: {
|
|
8218
8218
|
this.onDoctype(t);
|
|
8219
8219
|
break;
|
|
8220
8220
|
}
|
|
8221
|
-
case
|
|
8221
|
+
case ie.START_TAG: {
|
|
8222
8222
|
this._processStartTag(t);
|
|
8223
8223
|
break;
|
|
8224
8224
|
}
|
|
8225
|
-
case
|
|
8225
|
+
case ie.END_TAG: {
|
|
8226
8226
|
this.onEndTag(t);
|
|
8227
8227
|
break;
|
|
8228
8228
|
}
|
|
8229
|
-
case
|
|
8229
|
+
case ie.EOF: {
|
|
8230
8230
|
this.onEof(t);
|
|
8231
8231
|
break;
|
|
8232
8232
|
}
|
|
8233
|
-
case
|
|
8233
|
+
case ie.WHITESPACE_CHARACTER: {
|
|
8234
8234
|
this.onWhitespaceCharacter(t);
|
|
8235
8235
|
break;
|
|
8236
8236
|
}
|
|
@@ -9105,7 +9105,7 @@ function YC(e, t) {
|
|
|
9105
9105
|
}
|
|
9106
9106
|
}
|
|
9107
9107
|
function Cn(e, t) {
|
|
9108
|
-
const a = t.type ===
|
|
9108
|
+
const a = t.type === ie.EOF ? S.openElementsLeftAfterEof : S.disallowedContentInNoscriptInHead;
|
|
9109
9109
|
e._err(t, a), e.openElements.pop(), e.insertionMode = b.IN_HEAD, e._processToken(t);
|
|
9110
9110
|
}
|
|
9111
9111
|
function zC(e, t) {
|
|
@@ -9164,27 +9164,27 @@ function Sn(e, t) {
|
|
|
9164
9164
|
}
|
|
9165
9165
|
function hi(e, t) {
|
|
9166
9166
|
switch (t.type) {
|
|
9167
|
-
case
|
|
9167
|
+
case ie.CHARACTER: {
|
|
9168
9168
|
om(e, t);
|
|
9169
9169
|
break;
|
|
9170
9170
|
}
|
|
9171
|
-
case
|
|
9171
|
+
case ie.WHITESPACE_CHARACTER: {
|
|
9172
9172
|
im(e, t);
|
|
9173
9173
|
break;
|
|
9174
9174
|
}
|
|
9175
|
-
case
|
|
9175
|
+
case ie.COMMENT: {
|
|
9176
9176
|
Yo(e, t);
|
|
9177
9177
|
break;
|
|
9178
9178
|
}
|
|
9179
|
-
case
|
|
9179
|
+
case ie.START_TAG: {
|
|
9180
9180
|
qe(e, t);
|
|
9181
9181
|
break;
|
|
9182
9182
|
}
|
|
9183
|
-
case
|
|
9183
|
+
case ie.END_TAG: {
|
|
9184
9184
|
mi(e, t);
|
|
9185
9185
|
break;
|
|
9186
9186
|
}
|
|
9187
|
-
case
|
|
9187
|
+
case ie.EOF: {
|
|
9188
9188
|
cm(e, t);
|
|
9189
9189
|
break;
|
|
9190
9190
|
}
|
|
@@ -9681,11 +9681,11 @@ function MS(e, t) {
|
|
|
9681
9681
|
function Gi(e, t) {
|
|
9682
9682
|
if (e.openElements.currentTagId !== void 0 && rm.has(e.openElements.currentTagId))
|
|
9683
9683
|
switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = b.IN_TABLE_TEXT, t.type) {
|
|
9684
|
-
case
|
|
9684
|
+
case ie.CHARACTER: {
|
|
9685
9685
|
hm(e, t);
|
|
9686
9686
|
break;
|
|
9687
9687
|
}
|
|
9688
|
-
case
|
|
9688
|
+
case ie.WHITESPACE_CHARACTER: {
|
|
9689
9689
|
dm(e, t);
|
|
9690
9690
|
break;
|
|
9691
9691
|
}
|
|
@@ -12203,38 +12203,40 @@ const z3 = /* @__PURE__ */ new Set(["div", "section", "article", "header", "foot
|
|
|
12203
12203
|
"em",
|
|
12204
12204
|
"b",
|
|
12205
12205
|
"i"
|
|
12206
|
-
]), V3 = /* @__PURE__ */ new Set(["img", "video", "canvas", "picture"]), Q3 = /* @__PURE__ */ new Set(["button", "input", "textarea", "select"]), { CSS_PROPERTY_TYPE:
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12206
|
+
]), V3 = /* @__PURE__ */ new Set(["img", "video", "canvas", "picture"]), Q3 = /* @__PURE__ */ new Set(["button", "input", "textarea", "select"]), { CSS_PROPERTY_TYPE: re } = Ss, ql = [
|
|
12207
|
+
re.background,
|
|
12208
|
+
re.borderTop,
|
|
12209
|
+
re.borderBottom,
|
|
12210
|
+
re.borderInlineStart,
|
|
12211
|
+
re.borderInlineEnd,
|
|
12212
|
+
re.paddingTop,
|
|
12213
|
+
re.paddingBottom,
|
|
12214
|
+
re.paddingInlineStart,
|
|
12215
|
+
re.paddingInlineEnd,
|
|
12216
|
+
re.borderStartStartRadius,
|
|
12217
|
+
re.borderStartEndRadius,
|
|
12218
|
+
re.borderEndStartRadius,
|
|
12219
|
+
re.borderEndEndRadius,
|
|
12220
|
+
re.boxShadow
|
|
12221
12221
|
], Gm = [
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12222
|
+
re.font,
|
|
12223
|
+
re.lineHeight,
|
|
12224
|
+
re.letterSpacing,
|
|
12225
|
+
re.textDecorationLine,
|
|
12226
|
+
re.textTransform,
|
|
12227
|
+
re.textAlign,
|
|
12228
|
+
re.textShadow,
|
|
12229
|
+
re.color
|
|
12228
12230
|
], $3 = [
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12231
|
+
re.borderTop,
|
|
12232
|
+
re.borderBottom,
|
|
12233
|
+
re.borderInlineStart,
|
|
12234
|
+
re.borderInlineEnd,
|
|
12235
|
+
re.borderStartStartRadius,
|
|
12236
|
+
re.borderStartEndRadius,
|
|
12237
|
+
re.borderEndStartRadius,
|
|
12238
|
+
re.borderEndEndRadius,
|
|
12239
|
+
re.boxShadow
|
|
12238
12240
|
];
|
|
12239
12241
|
function q3(e, t) {
|
|
12240
12242
|
const a = e.toLowerCase();
|
|
@@ -12275,7 +12277,7 @@ function X3(e) {
|
|
|
12275
12277
|
return t;
|
|
12276
12278
|
}
|
|
12277
12279
|
function ew(e) {
|
|
12278
|
-
return e.includes(
|
|
12280
|
+
return e.includes(re.gap) ? e : [...e, re.gap];
|
|
12279
12281
|
}
|
|
12280
12282
|
const tw = /* @__PURE__ */ new Set(["flex", "grid", "inline-flex", "inline-grid"]);
|
|
12281
12283
|
function aw(e) {
|
|
@@ -12545,7 +12547,7 @@ function mw() {
|
|
|
12545
12547
|
state: { stores: n }
|
|
12546
12548
|
};
|
|
12547
12549
|
}
|
|
12548
|
-
const ia = 0, R = 1, X = 2, Re = 3, pe = 4, Bt = 5, gi = 6, Ve = 7, at = 8, ne = 9, Q = 10, Ee = 11, ae = 12, Ce = 13, Qn = 14, nt = 15, Qe = 16, $e = 17, st = 18, ft = 19, yt = 20,
|
|
12550
|
+
const ia = 0, R = 1, X = 2, Re = 3, pe = 4, Bt = 5, gi = 6, Ve = 7, at = 8, ne = 9, Q = 10, Ee = 11, ae = 12, Ce = 13, Qn = 14, nt = 15, Qe = 16, $e = 17, st = 18, ft = 19, yt = 20, oe = 21, Y = 22, Ke = 23, mt = 24, ze = 25, fw = 0;
|
|
12549
12551
|
function Ye(e) {
|
|
12550
12552
|
return e >= 48 && e <= 57;
|
|
12551
12553
|
}
|
|
@@ -12763,12 +12765,12 @@ class Sw {
|
|
|
12763
12765
|
}
|
|
12764
12766
|
const Et = 16777215, Ct = 24, $n = 1, bi = 2, sa = new Uint8Array(32);
|
|
12765
12767
|
sa[X] = Y;
|
|
12766
|
-
sa[
|
|
12768
|
+
sa[oe] = Y;
|
|
12767
12769
|
sa[ft] = yt;
|
|
12768
12770
|
sa[Ke] = mt;
|
|
12769
12771
|
const Dt = new Uint8Array(32);
|
|
12770
12772
|
Dt[X] = $n;
|
|
12771
|
-
Dt[
|
|
12773
|
+
Dt[oe] = $n;
|
|
12772
12774
|
Dt[ft] = $n;
|
|
12773
12775
|
Dt[Ke] = $n;
|
|
12774
12776
|
Dt[Y] = bi;
|
|
@@ -13043,7 +13045,7 @@ function Fi(e, t) {
|
|
|
13043
13045
|
break;
|
|
13044
13046
|
// U+0028 LEFT PARENTHESIS (()
|
|
13045
13047
|
case 40:
|
|
13046
|
-
d =
|
|
13048
|
+
d = oe, c++;
|
|
13047
13049
|
break;
|
|
13048
13050
|
// U+0029 RIGHT PARENTHESIS ())
|
|
13049
13051
|
case 41:
|
|
@@ -14089,7 +14091,7 @@ const Gw = 43, Ww = 45, to = (e, t) => (e === ne && (e = t), typeof e == "string
|
|
|
14089
14091
|
[R, Ee],
|
|
14090
14092
|
[R, ae],
|
|
14091
14093
|
[R, nt],
|
|
14092
|
-
[R,
|
|
14094
|
+
[R, oe],
|
|
14093
14095
|
[Re, R],
|
|
14094
14096
|
[Re, X],
|
|
14095
14097
|
[Re, Ve],
|
|
@@ -14165,7 +14167,7 @@ const Gw = 43, Ww = 45, to = (e, t) => (e === ne && (e = t), typeof e == "string
|
|
|
14165
14167
|
[R, pe],
|
|
14166
14168
|
[ae, pe],
|
|
14167
14169
|
[pe, pe],
|
|
14168
|
-
[Re,
|
|
14170
|
+
[Re, oe],
|
|
14169
14171
|
[Re, Bt],
|
|
14170
14172
|
[Re, Qe],
|
|
14171
14173
|
[Ee, Ee],
|
|
@@ -14756,7 +14758,7 @@ const js = [
|
|
|
14756
14758
|
...qs
|
|
14757
14759
|
], Zs = /* @__PURE__ */ new Map([
|
|
14758
14760
|
[X, Y],
|
|
14759
|
-
[
|
|
14761
|
+
[oe, Y],
|
|
14760
14762
|
[ft, yt],
|
|
14761
14763
|
[Ke, mt]
|
|
14762
14764
|
]);
|
|
@@ -14802,7 +14804,7 @@ function pB(e, t) {
|
|
|
14802
14804
|
}
|
|
14803
14805
|
break;
|
|
14804
14806
|
case X:
|
|
14805
|
-
case
|
|
14807
|
+
case oe:
|
|
14806
14808
|
case ft:
|
|
14807
14809
|
case Ke:
|
|
14808
14810
|
n.push(a), a = Zs.get(e.type);
|
|
@@ -14878,7 +14880,7 @@ function yB(e, t) {
|
|
|
14878
14880
|
break e;
|
|
14879
14881
|
break;
|
|
14880
14882
|
case X:
|
|
14881
|
-
case
|
|
14883
|
+
case oe:
|
|
14882
14884
|
case ft:
|
|
14883
14885
|
case Ke:
|
|
14884
14886
|
n.push(a), a = Zs.get(e.type);
|
|
@@ -14908,7 +14910,7 @@ function EB(e, t) {
|
|
|
14908
14910
|
a = n.pop();
|
|
14909
14911
|
break;
|
|
14910
14912
|
case X:
|
|
14911
|
-
case
|
|
14913
|
+
case oe:
|
|
14912
14914
|
case ft:
|
|
14913
14915
|
case Ke:
|
|
14914
14916
|
n.push(a), a = Zs.get(e.type);
|
|
@@ -14978,7 +14980,7 @@ const TB = {
|
|
|
14978
14980
|
"comma-token": fe(st),
|
|
14979
14981
|
"[-token": fe(ft),
|
|
14980
14982
|
"]-token": fe(yt),
|
|
14981
|
-
"(-token": fe(
|
|
14983
|
+
"(-token": fe(oe),
|
|
14982
14984
|
")-token": fe(Y),
|
|
14983
14985
|
"{-token": fe(Ke),
|
|
14984
14986
|
"}-token": fe(mt)
|
|
@@ -15829,7 +15831,7 @@ function bI(e) {
|
|
|
15829
15831
|
return e.type !== ne ? !1 : e.value !== "?";
|
|
15830
15832
|
}
|
|
15831
15833
|
function Oc(e) {
|
|
15832
|
-
return e === null ? !0 : e.type === st || e.type === X || e.type ===
|
|
15834
|
+
return e === null ? !0 : e.type === st || e.type === X || e.type === oe || e.type === ft || e.type === Ke || bI(e);
|
|
15833
15835
|
}
|
|
15834
15836
|
function Pc(e) {
|
|
15835
15837
|
return e === null ? !0 : e.type === Y || e.type === yt || e.type === mt || e.type === ne && e.value === "/";
|
|
@@ -18516,14 +18518,14 @@ function xf(e = "media") {
|
|
|
18516
18518
|
case R:
|
|
18517
18519
|
t.push(this.Identifier());
|
|
18518
18520
|
break;
|
|
18519
|
-
case
|
|
18521
|
+
case oe: {
|
|
18520
18522
|
let a = this.parseWithFallback(
|
|
18521
18523
|
() => J4[e].call(this, e),
|
|
18522
18524
|
() => null
|
|
18523
18525
|
);
|
|
18524
18526
|
a || (a = this.parseWithFallback(
|
|
18525
18527
|
() => {
|
|
18526
|
-
this.eat(
|
|
18528
|
+
this.eat(oe);
|
|
18527
18529
|
const n = this.Condition(e);
|
|
18528
18530
|
return this.eat(Y), n;
|
|
18529
18531
|
},
|
|
@@ -18551,7 +18553,7 @@ function xf(e = "media") {
|
|
|
18551
18553
|
}
|
|
18552
18554
|
function Y4(e) {
|
|
18553
18555
|
e.children.forEach((t) => {
|
|
18554
|
-
t.type === "Condition" ? (this.token(
|
|
18556
|
+
t.type === "Condition" ? (this.token(oe, "("), this.node(t), this.token(Y, ")")) : this.node(t);
|
|
18555
18557
|
});
|
|
18556
18558
|
}
|
|
18557
18559
|
const z4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -18706,7 +18708,7 @@ const gN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18706
18708
|
function Pf(e) {
|
|
18707
18709
|
const t = this.tokenStart;
|
|
18708
18710
|
let a, n = null;
|
|
18709
|
-
if (this.eat(
|
|
18711
|
+
if (this.eat(oe), this.skipSC(), a = this.consume(R), this.skipSC(), this.tokenType !== Y) {
|
|
18710
18712
|
switch (this.eat(Qe), this.skipSC(), this.tokenType) {
|
|
18711
18713
|
case Q:
|
|
18712
18714
|
this.lookupNonWSType(1) === ne ? n = this.Ratio() : n = this.Number();
|
|
@@ -18740,7 +18742,7 @@ function Pf(e) {
|
|
|
18740
18742
|
};
|
|
18741
18743
|
}
|
|
18742
18744
|
function yN(e) {
|
|
18743
|
-
this.token(
|
|
18745
|
+
this.token(oe, "("), this.token(R, e.name), e.value !== null && (this.token(Qe, ":"), this.node(e.value)), this.token(Y, ")");
|
|
18744
18746
|
}
|
|
18745
18747
|
const EN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18746
18748
|
__proto__: null,
|
|
@@ -18823,7 +18825,7 @@ function $c(e) {
|
|
|
18823
18825
|
}
|
|
18824
18826
|
function Hf(e = "unknown") {
|
|
18825
18827
|
const t = this.tokenStart;
|
|
18826
|
-
this.skipSC(), this.eat(
|
|
18828
|
+
this.skipSC(), this.eat(oe);
|
|
18827
18829
|
const a = mo.call(this), n = $c.call(this, a.type === "Identifier"), r = mo.call(this);
|
|
18828
18830
|
let i = null, o = null;
|
|
18829
18831
|
return this.lookupNonWSType(0) !== Y && (i = $c.call(this), o = mo.call(this)), this.skipSC(), this.eat(Y), {
|
|
@@ -18838,7 +18840,7 @@ function Hf(e = "unknown") {
|
|
|
18838
18840
|
};
|
|
18839
18841
|
}
|
|
18840
18842
|
function NN(e) {
|
|
18841
|
-
this.token(
|
|
18843
|
+
this.token(oe, "("), this.node(e.left), this.tokenize(e.leftComparison), this.node(e.middle), e.right && (this.tokenize(e.rightComparison), this.node(e.right)), this.token(Y, ")");
|
|
18842
18844
|
}
|
|
18843
18845
|
const xN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18844
18846
|
__proto__: null,
|
|
@@ -18878,7 +18880,7 @@ const PN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18878
18880
|
function Wf(e) {
|
|
18879
18881
|
const t = this.tokenStart;
|
|
18880
18882
|
let a = null;
|
|
18881
|
-
this.tokenType === X ? a = this.consumeFunctionName() : this.eat(
|
|
18883
|
+
this.tokenType === X ? a = this.consumeFunctionName() : this.eat(oe);
|
|
18882
18884
|
const n = this.parseWithFallback(
|
|
18883
18885
|
() => {
|
|
18884
18886
|
const r = this.tokenIndex, i = this.readSequence(this.scope.Value);
|
|
@@ -18897,7 +18899,7 @@ function Wf(e) {
|
|
|
18897
18899
|
};
|
|
18898
18900
|
}
|
|
18899
18901
|
function GN(e) {
|
|
18900
|
-
e.function ? this.token(X, e.function + "(") : this.token(
|
|
18902
|
+
e.function ? this.token(X, e.function + "(") : this.token(oe, "("), this.children(e), this.token(Y, ")");
|
|
18901
18903
|
}
|
|
18902
18904
|
const WN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18903
18905
|
__proto__: null,
|
|
@@ -19019,7 +19021,7 @@ const lx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19019
19021
|
function jf() {
|
|
19020
19022
|
const e = this.tokenStart;
|
|
19021
19023
|
let t = null, a = null, n = null;
|
|
19022
|
-
if (this.skipSC(), this.tokenType === R && this.lookupTypeNonSC(1) !==
|
|
19024
|
+
if (this.skipSC(), this.tokenType === R && this.lookupTypeNonSC(1) !== oe) {
|
|
19023
19025
|
const r = this.consume(R), i = r.toLowerCase();
|
|
19024
19026
|
switch (i === "not" || i === "only" ? (this.skipSC(), t = i, a = this.consume(R)) : a = r, this.lookupTypeNonSC(0)) {
|
|
19025
19027
|
case R: {
|
|
@@ -19037,7 +19039,7 @@ function jf() {
|
|
|
19037
19039
|
} else
|
|
19038
19040
|
switch (this.tokenType) {
|
|
19039
19041
|
case R:
|
|
19040
|
-
case
|
|
19042
|
+
case oe:
|
|
19041
19043
|
case X: {
|
|
19042
19044
|
n = this.Condition("media");
|
|
19043
19045
|
break;
|
|
@@ -19176,14 +19178,14 @@ const Lx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19176
19178
|
function Xf(e, t) {
|
|
19177
19179
|
const a = this.tokenStart;
|
|
19178
19180
|
let n = null;
|
|
19179
|
-
return this.eat(
|
|
19181
|
+
return this.eat(oe), n = e.call(this, t), this.eof || this.eat(Y), {
|
|
19180
19182
|
type: "Parentheses",
|
|
19181
19183
|
loc: this.getLocation(a, this.tokenStart),
|
|
19182
19184
|
children: n
|
|
19183
19185
|
};
|
|
19184
19186
|
}
|
|
19185
19187
|
function Px(e) {
|
|
19186
|
-
this.token(
|
|
19188
|
+
this.token(oe, "("), this.children(e), this.token(Y, ")");
|
|
19187
19189
|
}
|
|
19188
19190
|
const _x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19189
19191
|
__proto__: null,
|
|
@@ -19361,10 +19363,10 @@ function op() {
|
|
|
19361
19363
|
let e = null, t = null;
|
|
19362
19364
|
this.skipSC();
|
|
19363
19365
|
const a = this.tokenStart;
|
|
19364
|
-
return this.tokenType ===
|
|
19366
|
+
return this.tokenType === oe && (this.next(), this.skipSC(), e = this.parseWithFallback(
|
|
19365
19367
|
this.SelectorList,
|
|
19366
19368
|
() => this.Raw(!1, !0)
|
|
19367
|
-
), this.skipSC(), this.eat(Y)), this.lookupNonWSType(0) === R && (this.skipSC(), this.eatIdent("to"), this.skipSC(), this.eat(
|
|
19369
|
+
), this.skipSC(), this.eat(Y)), this.lookupNonWSType(0) === R && (this.skipSC(), this.eatIdent("to"), this.skipSC(), this.eat(oe), this.skipSC(), t = this.parseWithFallback(
|
|
19368
19370
|
this.SelectorList,
|
|
19369
19371
|
() => this.Raw(!1, !0)
|
|
19370
19372
|
), this.skipSC(), this.eat(Y)), {
|
|
@@ -19375,7 +19377,7 @@ function op() {
|
|
|
19375
19377
|
};
|
|
19376
19378
|
}
|
|
19377
19379
|
function gM(e) {
|
|
19378
|
-
e.root && (this.token(
|
|
19380
|
+
e.root && (this.token(oe, "("), this.node(e.root), this.token(Y, ")")), e.limit && (this.token(R, "to"), this.token(oe, "("), this.node(e.limit), this.token(Y, ")"));
|
|
19379
19381
|
}
|
|
19380
19382
|
const AM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19381
19383
|
__proto__: null,
|
|
@@ -19567,7 +19569,7 @@ const _M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19567
19569
|
};
|
|
19568
19570
|
function mp() {
|
|
19569
19571
|
const e = this.tokenStart;
|
|
19570
|
-
this.eat(
|
|
19572
|
+
this.eat(oe), this.skipSC();
|
|
19571
19573
|
const t = this.Declaration();
|
|
19572
19574
|
return this.eof || this.eat(Y), {
|
|
19573
19575
|
type: "SupportsDeclaration",
|
|
@@ -19576,7 +19578,7 @@ function mp() {
|
|
|
19576
19578
|
};
|
|
19577
19579
|
}
|
|
19578
19580
|
function WM(e) {
|
|
19579
|
-
this.token(
|
|
19581
|
+
this.token(oe, "("), this.node(e.declaration), this.token(Y, ")");
|
|
19580
19582
|
}
|
|
19581
19583
|
const UM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19582
19584
|
__proto__: null,
|
|
@@ -19852,7 +19854,7 @@ function Sp(e) {
|
|
|
19852
19854
|
return this.Hash();
|
|
19853
19855
|
case st:
|
|
19854
19856
|
return this.Operator();
|
|
19855
|
-
case
|
|
19857
|
+
case oe:
|
|
19856
19858
|
return this.Parentheses(this.readSequence, e.recognizer);
|
|
19857
19859
|
case ft:
|
|
19858
19860
|
return this.Brackets(this.readSequence, e.recognizer);
|
|
@@ -20035,7 +20037,7 @@ const id = {
|
|
|
20035
20037
|
default:
|
|
20036
20038
|
this.error("String or url() is expected");
|
|
20037
20039
|
}
|
|
20038
|
-
return this.skipSC(), this.tokenType === R && this.cmpStr(this.tokenStart, this.tokenEnd, "layer") ? e.push(this.Identifier()) : this.tokenType === X && this.cmpStr(this.tokenStart, this.tokenEnd, "layer(") && e.push(this.Function(null, id)), this.skipSC(), this.tokenType === X && this.cmpStr(this.tokenStart, this.tokenEnd, "supports(") && e.push(this.Function(null, id)), (this.lookupNonWSType(0) === R || this.lookupNonWSType(0) ===
|
|
20040
|
+
return this.skipSC(), this.tokenType === R && this.cmpStr(this.tokenStart, this.tokenEnd, "layer") ? e.push(this.Identifier()) : this.tokenType === X && this.cmpStr(this.tokenStart, this.tokenEnd, "layer(") && e.push(this.Function(null, id)), this.skipSC(), this.tokenType === X && this.cmpStr(this.tokenStart, this.tokenEnd, "supports(") && e.push(this.Function(null, id)), (this.lookupNonWSType(0) === R || this.lookupNonWSType(0) === oe) && e.push(this.MediaQueryList()), e;
|
|
20039
20041
|
},
|
|
20040
20042
|
block: null
|
|
20041
20043
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"registry": "https://registry.npmjs.org/",
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.45.0",
|
|
8
8
|
"description": "Core library for extracting component manifests from JS and CSS files",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "dist/index.js",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"falconPackageHash": "
|
|
87
|
+
"falconPackageHash": "351d3032ce32fe0b9f5864b3e86e133388202d091c298071ef24a7e0"
|
|
88
88
|
}
|