@pdfme/ui 5.3.13-dev.63 → 5.3.13-dev.65
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.es.js +35 -35
- package/dist/index.umd.js +7 -7
- package/package.json +3 -1
package/dist/index.es.js
CHANGED
@@ -35,7 +35,7 @@ function getDefaultExportFromCjs(a) {
|
|
35
35
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
36
36
|
}
|
37
37
|
function getAugmentedNamespace(a) {
|
38
|
-
if (a
|
38
|
+
if (Object.prototype.hasOwnProperty.call(a, "__esModule")) return a;
|
39
39
|
var s = a.default;
|
40
40
|
if (typeof s == "function") {
|
41
41
|
var c = function u() {
|
@@ -9579,7 +9579,7 @@ function pushComment(a, s) {
|
|
9579
9579
|
a.locations && (b.loc = new SourceLocation(this, v, A)), a.ranges && (b.range = [d, p]), s.push(b);
|
9580
9580
|
};
|
9581
9581
|
}
|
9582
|
-
var SCOPE_TOP = 1, SCOPE_FUNCTION = 2, SCOPE_ASYNC = 4, SCOPE_GENERATOR = 8, SCOPE_ARROW = 16, SCOPE_SIMPLE_CATCH = 32, SCOPE_SUPER = 64, SCOPE_DIRECT_SUPER = 128, SCOPE_CLASS_STATIC_BLOCK = 256, SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
9582
|
+
var SCOPE_TOP = 1, SCOPE_FUNCTION = 2, SCOPE_ASYNC = 4, SCOPE_GENERATOR = 8, SCOPE_ARROW = 16, SCOPE_SIMPLE_CATCH = 32, SCOPE_SUPER = 64, SCOPE_DIRECT_SUPER = 128, SCOPE_CLASS_STATIC_BLOCK = 256, SCOPE_CLASS_FIELD_INIT = 512, SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
9583
9583
|
function functionFlags(a, s) {
|
9584
9584
|
return SCOPE_FUNCTION | (a ? SCOPE_ASYNC : 0) | (s ? SCOPE_GENERATOR : 0);
|
9585
9585
|
}
|
@@ -9599,24 +9599,24 @@ prototypeAccessors.inFunction.get = function() {
|
|
9599
9599
|
return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0;
|
9600
9600
|
};
|
9601
9601
|
prototypeAccessors.inGenerator.get = function() {
|
9602
|
-
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0
|
9602
|
+
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0;
|
9603
9603
|
};
|
9604
9604
|
prototypeAccessors.inAsync.get = function() {
|
9605
|
-
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0
|
9605
|
+
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
|
9606
9606
|
};
|
9607
9607
|
prototypeAccessors.canAwait.get = function() {
|
9608
9608
|
for (var a = this.scopeStack.length - 1; a >= 0; a--) {
|
9609
|
-
var s = this.scopeStack[a];
|
9610
|
-
if (
|
9609
|
+
var s = this.scopeStack[a], c = s.flags;
|
9610
|
+
if (c & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT))
|
9611
9611
|
return !1;
|
9612
|
-
if (
|
9613
|
-
return (
|
9612
|
+
if (c & SCOPE_FUNCTION)
|
9613
|
+
return (c & SCOPE_ASYNC) > 0;
|
9614
9614
|
}
|
9615
9615
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
9616
9616
|
};
|
9617
9617
|
prototypeAccessors.allowSuper.get = function() {
|
9618
|
-
var a = this.currentThisScope(), s = a.flags
|
9619
|
-
return (s & SCOPE_SUPER) > 0 ||
|
9618
|
+
var a = this.currentThisScope(), s = a.flags;
|
9619
|
+
return (s & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
|
9620
9620
|
};
|
9621
9621
|
prototypeAccessors.allowDirectSuper.get = function() {
|
9622
9622
|
return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0;
|
@@ -9625,8 +9625,12 @@ prototypeAccessors.treatFunctionsAsVar.get = function() {
|
|
9625
9625
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
9626
9626
|
};
|
9627
9627
|
prototypeAccessors.allowNewDotTarget.get = function() {
|
9628
|
-
var a = this.
|
9629
|
-
|
9628
|
+
for (var a = this.scopeStack.length - 1; a >= 0; a--) {
|
9629
|
+
var s = this.scopeStack[a], c = s.flags;
|
9630
|
+
if (c & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || c & SCOPE_FUNCTION && !(c & SCOPE_ARROW))
|
9631
|
+
return !0;
|
9632
|
+
}
|
9633
|
+
return !1;
|
9630
9634
|
};
|
9631
9635
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
9632
9636
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
@@ -9996,12 +10000,7 @@ pp$8.parseClassMethod = function(a, s, c, u) {
|
|
9996
10000
|
return a.kind === "get" && p.params.length !== 0 && this.raiseRecoverable(p.start, "getter should have no params"), a.kind === "set" && p.params.length !== 1 && this.raiseRecoverable(p.start, "setter should have exactly one param"), a.kind === "set" && p.params[0].type === "RestElement" && this.raiseRecoverable(p.params[0].start, "Setter cannot use rest params"), this.finishNode(a, "MethodDefinition");
|
9997
10001
|
};
|
9998
10002
|
pp$8.parseClassField = function(a) {
|
9999
|
-
|
10000
|
-
var s = this.currentThisScope(), c = s.inClassFieldInit;
|
10001
|
-
s.inClassFieldInit = !0, a.value = this.parseMaybeAssign(), s.inClassFieldInit = c;
|
10002
|
-
} else
|
10003
|
-
a.value = null;
|
10004
|
-
return this.semicolon(), this.finishNode(a, "PropertyDefinition");
|
10003
|
+
return checkKeyName(a, "constructor") ? this.raise(a.key.start, "Classes can't have a field named 'constructor'") : a.static && checkKeyName(a, "prototype") && this.raise(a.key.start, "Classes can't have a static field named 'prototype'"), this.eat(types$1.eq) ? (this.enterScope(SCOPE_CLASS_FIELD_INIT | SCOPE_SUPER), a.value = this.parseMaybeAssign(), this.exitScope()) : a.value = null, this.semicolon(), this.finishNode(a, "PropertyDefinition");
|
10005
10004
|
};
|
10006
10005
|
pp$8.parseClassStaticBlock = function(a) {
|
10007
10006
|
a.body = [];
|
@@ -10047,7 +10046,7 @@ pp$8.parseExport = function(a, s) {
|
|
10047
10046
|
if (this.eat(types$1._default))
|
10048
10047
|
return this.checkExport(s, "default", this.lastTokStart), a.declaration = this.parseExportDefaultDeclaration(), this.finishNode(a, "ExportDefaultDeclaration");
|
10049
10048
|
if (this.shouldParseExportStatement())
|
10050
|
-
a.declaration = this.parseExportDeclaration(a), a.declaration.type === "VariableDeclaration" ? this.checkVariableExport(s, a.declaration.declarations) : this.checkExport(s, a.declaration.id, a.declaration.id.start), a.specifiers = [], a.source = null;
|
10049
|
+
a.declaration = this.parseExportDeclaration(a), a.declaration.type === "VariableDeclaration" ? this.checkVariableExport(s, a.declaration.declarations) : this.checkExport(s, a.declaration.id, a.declaration.id.start), a.specifiers = [], a.source = null, this.options.ecmaVersion >= 16 && (a.attributes = []);
|
10051
10050
|
else {
|
10052
10051
|
if (a.declaration = null, a.specifiers = this.parseExportSpecifiers(s), this.eatContextual("from"))
|
10053
10052
|
this.type !== types$1.string && this.unexpected(), a.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (a.attributes = this.parseWithClause());
|
@@ -10056,7 +10055,7 @@ pp$8.parseExport = function(a, s) {
|
|
10056
10055
|
var d = u[c];
|
10057
10056
|
this.checkUnreserved(d.local), this.checkLocalExport(d.local), d.local.type === "Literal" && this.raise(d.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
10058
10057
|
}
|
10059
|
-
a.source = null;
|
10058
|
+
a.source = null, this.options.ecmaVersion >= 16 && (a.attributes = []);
|
10060
10059
|
}
|
10061
10060
|
this.semicolon();
|
10062
10061
|
}
|
@@ -10784,16 +10783,17 @@ pp$5.parseProperty = function(a, s) {
|
|
10784
10783
|
return this.parsePropertyName(c), !a && !A && this.options.ecmaVersion >= 8 && !u && this.isAsyncProp(c) ? (d = !0, u = this.options.ecmaVersion >= 9 && this.eat(types$1.star), this.parsePropertyName(c)) : d = !1, this.parsePropertyValue(c, a, u, d, p, v, s, A), this.finishNode(c, "Property");
|
10785
10784
|
};
|
10786
10785
|
pp$5.parseGetterSetter = function(a) {
|
10787
|
-
|
10788
|
-
|
10789
|
-
|
10790
|
-
|
10791
|
-
|
10786
|
+
var s = a.key.name;
|
10787
|
+
this.parsePropertyName(a), a.value = this.parseMethod(!1), a.kind = s;
|
10788
|
+
var c = a.kind === "get" ? 0 : 1;
|
10789
|
+
if (a.value.params.length !== c) {
|
10790
|
+
var u = a.value.start;
|
10791
|
+
a.kind === "get" ? this.raiseRecoverable(u, "getter should have no params") : this.raiseRecoverable(u, "setter should have exactly one param");
|
10792
10792
|
} else
|
10793
10793
|
a.kind === "set" && a.value.params[0].type === "RestElement" && this.raiseRecoverable(a.value.params[0].start, "Setter cannot use rest params");
|
10794
10794
|
};
|
10795
10795
|
pp$5.parsePropertyValue = function(a, s, c, u, d, p, v, A) {
|
10796
|
-
(c || u) && this.type === types$1.colon && this.unexpected(), this.eat(types$1.colon) ? (a.value = s ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, v), a.kind = "init") : this.options.ecmaVersion >= 6 && this.type === types$1.parenL ? (s && this.unexpected(), a.
|
10796
|
+
(c || u) && this.type === types$1.colon && this.unexpected(), this.eat(types$1.colon) ? (a.value = s ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, v), a.kind = "init") : this.options.ecmaVersion >= 6 && this.type === types$1.parenL ? (s && this.unexpected(), a.method = !0, a.value = this.parseMethod(c, u), a.kind = "init") : !s && !A && this.options.ecmaVersion >= 5 && !a.computed && a.key.type === "Identifier" && (a.key.name === "get" || a.key.name === "set") && this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq ? ((c || u) && this.unexpected(), this.parseGetterSetter(a)) : this.options.ecmaVersion >= 6 && !a.computed && a.key.type === "Identifier" ? ((c || u) && this.unexpected(), this.checkUnreserved(a.key), a.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = d), s ? a.value = this.parseMaybeDefault(d, p, this.copyNode(a.key)) : this.type === types$1.eq && v ? (v.shorthandAssign < 0 && (v.shorthandAssign = this.start), a.value = this.parseMaybeDefault(d, p, this.copyNode(a.key))) : a.value = this.copyNode(a.key), a.kind = "init", a.shorthand = !0) : this.unexpected();
|
10797
10797
|
};
|
10798
10798
|
pp$5.parsePropertyName = function(a) {
|
10799
10799
|
if (this.options.ecmaVersion >= 6) {
|
@@ -10853,7 +10853,7 @@ pp$5.parseExprList = function(a, s, c, u) {
|
|
10853
10853
|
};
|
10854
10854
|
pp$5.checkUnreserved = function(a) {
|
10855
10855
|
var s = a.start, c = a.end, u = a.name;
|
10856
|
-
if (this.inGenerator && u === "yield" && this.raiseRecoverable(s, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && u === "await" && this.raiseRecoverable(s, "Cannot use 'await' as identifier inside an async function"), this.currentThisScope().
|
10856
|
+
if (this.inGenerator && u === "yield" && this.raiseRecoverable(s, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && u === "await" && this.raiseRecoverable(s, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & SCOPE_VAR) && u === "arguments" && this.raiseRecoverable(s, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (u === "arguments" || u === "await") && this.raise(s, "Cannot use " + u + " in class static initialization block"), this.keywords.test(u) && this.raise(s, "Unexpected keyword '" + u + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(s, c).indexOf("\\") !== -1)) {
|
10857
10857
|
var d = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
10858
10858
|
d.test(u) && (!this.inAsync && u === "await" && this.raiseRecoverable(s, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(s, "The keyword '" + u + "' is reserved"));
|
10859
10859
|
}
|
@@ -10883,7 +10883,7 @@ pp$5.parseAwait = function(a) {
|
|
10883
10883
|
var pp$4 = Parser.prototype;
|
10884
10884
|
pp$4.raise = function(a, s) {
|
10885
10885
|
var c = getLineInfo(this.input, a);
|
10886
|
-
s += " (" + c.line + ":" + c.column + ")";
|
10886
|
+
s += " (" + c.line + ":" + c.column + ")", this.sourceFile && (s += " in " + this.sourceFile);
|
10887
10887
|
var u = new SyntaxError(s);
|
10888
10888
|
throw u.pos = a, u.loc = c, u.raisedAt = this.pos, u;
|
10889
10889
|
};
|
@@ -10893,7 +10893,7 @@ pp$4.curPosition = function() {
|
|
10893
10893
|
return new Position(this.curLine, this.pos - this.lineStart);
|
10894
10894
|
};
|
10895
10895
|
var pp$3 = Parser.prototype, Scope = function(s) {
|
10896
|
-
this.flags = s, this.var = [], this.lexical = [], this.functions = []
|
10896
|
+
this.flags = s, this.var = [], this.lexical = [], this.functions = [];
|
10897
10897
|
};
|
10898
10898
|
pp$3.enterScope = function(a) {
|
10899
10899
|
this.scopeStack.push(new Scope(a));
|
@@ -10936,14 +10936,14 @@ pp$3.currentScope = function() {
|
|
10936
10936
|
pp$3.currentVarScope = function() {
|
10937
10937
|
for (var a = this.scopeStack.length - 1; ; a--) {
|
10938
10938
|
var s = this.scopeStack[a];
|
10939
|
-
if (s.flags & SCOPE_VAR)
|
10939
|
+
if (s.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK))
|
10940
10940
|
return s;
|
10941
10941
|
}
|
10942
10942
|
};
|
10943
10943
|
pp$3.currentThisScope = function() {
|
10944
10944
|
for (var a = this.scopeStack.length - 1; ; a--) {
|
10945
10945
|
var s = this.scopeStack[a];
|
10946
|
-
if (s.flags & SCOPE_VAR && !(s.flags & SCOPE_ARROW))
|
10946
|
+
if (s.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(s.flags & SCOPE_ARROW))
|
10947
10947
|
return s;
|
10948
10948
|
}
|
10949
10949
|
};
|
@@ -12342,7 +12342,7 @@ pp.readWord = function() {
|
|
12342
12342
|
var a = this.readWord1(), s = types$1.name;
|
12343
12343
|
return this.keywords.test(a) && (s = keywords[a]), this.finishToken(s, a);
|
12344
12344
|
};
|
12345
|
-
var version$2 = "8.14.
|
12345
|
+
var version$2 = "8.14.1";
|
12346
12346
|
Parser.acorn = {
|
12347
12347
|
Parser,
|
12348
12348
|
version: version$2,
|
@@ -97942,8 +97942,8 @@ function useHeights(a, s, c) {
|
|
97942
97942
|
var I = !1;
|
97943
97943
|
A.current.forEach(function(P, $) {
|
97944
97944
|
if (P && P.offsetParent) {
|
97945
|
-
var _ =
|
97946
|
-
b.current.get($) !==
|
97945
|
+
var _ = P.offsetHeight, E = getComputedStyle(P), R = E.marginTop, T = E.marginBottom, B = parseNumber(R), M = parseNumber(T), D = _ + B + M;
|
97946
|
+
b.current.get($) !== D && (b.current.set($, D), I = !0);
|
97947
97947
|
}
|
97948
97948
|
}), I && v(function(P) {
|
97949
97949
|
return P + 1;
|
@@ -126655,7 +126655,7 @@ var StickyScrollBar = function a(s, c) {
|
|
126655
126655
|
};
|
126656
126656
|
}, [m, R]), reactExports.useEffect(function() {
|
126657
126657
|
if (p.current) {
|
126658
|
-
for (var Q = [], L = p.current; L; )
|
126658
|
+
for (var Q = [], L = getDOM(p.current); L; )
|
126659
126659
|
Q.push(L), L = L.parentElement;
|
126660
126660
|
return Q.forEach(function(F) {
|
126661
126661
|
return F.addEventListener("scroll", H, !1);
|