@digipair/engine 0.136.1 → 0.136.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -18,7 +18,7 @@ function getDefaultExportFromCjs(x) {
18
18
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
19
19
  }
20
20
 
21
- var handlebars_min$1 = {
21
+ var handlebars_min = {
22
22
  exports: {}
23
23
  };
24
24
 
@@ -48,7 +48,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
48
48
  THE SOFTWARE.
49
49
 
50
50
  */
51
- handlebars_min$1.exports;
51
+ handlebars_min.exports;
52
52
 
53
53
  (function (module, exports) {
54
54
  function _instanceof(left, right) {
@@ -8130,14 +8130,14 @@ handlebars_min$1.exports;
8130
8130
  }
8131
8131
  ]);
8132
8132
  });
8133
- } (handlebars_min$1, handlebars_min$1.exports));
8133
+ } (handlebars_min, handlebars_min.exports));
8134
8134
 
8135
- var handlebars_minExports = handlebars_min$1.exports;
8136
- var handlebars_min = /*@__PURE__*/getDefaultExportFromCjs(handlebars_minExports);
8135
+ var handlebars_minExports = handlebars_min.exports;
8136
+ var handlebars_min_default = /*@__PURE__*/getDefaultExportFromCjs(handlebars_minExports);
8137
8137
 
8138
8138
  var HandlebarsNamespace = /*#__PURE__*/_mergeNamespaces({
8139
8139
  __proto__: null,
8140
- default: handlebars_min
8140
+ default: handlebars_min_default
8141
8141
  }, [handlebars_minExports]);
8142
8142
 
8143
8143
  // these aren't really private, but nor are they really useful to document
@@ -17301,6 +17301,7 @@ class represent prop names.
17301
17301
  this.deserialize = config.deserialize || function() {
17302
17302
  throw new Error("This node type doesn't define a deserialize function");
17303
17303
  };
17304
+ this.combine = config.combine || null;
17304
17305
  }
17305
17306
  _create_class$u(NodeProp, [
17306
17307
  {
@@ -17413,10 +17414,16 @@ represented by another tree.
17413
17414
  */ overlay, /**
17414
17415
  The parser used to create this subtree.
17415
17416
  */ parser) {
17417
+ var /**
17418
+ [Indicates](#common.IterMode.EnterBracketed) that the nested
17419
+ content is delineated with some kind
17420
+ of bracket token.
17421
+ */ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
17416
17422
  _class_call_check$z(this, MountedTree);
17417
17423
  this.tree = tree;
17418
17424
  this.overlay = overlay;
17419
17425
  this.parser = parser;
17426
+ this.bracketed = bracketed;
17420
17427
  }
17421
17428
  _create_class$u(MountedTree, null, [
17422
17429
  {
@@ -17632,7 +17639,9 @@ types in it, so that the ids fit into 16-bit typed array slots.
17632
17639
  var add = source(type);
17633
17640
  if (add) {
17634
17641
  if (!newProps) newProps = Object.assign({}, type.props);
17635
- newProps[add[0].id] = add[1];
17642
+ var value = add[1], prop = add[0];
17643
+ if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
17644
+ newProps[prop.id] = value;
17636
17645
  }
17637
17646
  }
17638
17647
  } catch (err) {
@@ -17698,6 +17707,12 @@ operator to enable multiple ones.
17698
17707
  library to not enter mounted overlays if one covers the given
17699
17708
  position.
17700
17709
  */ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
17710
+ /**
17711
+ When set, positions on the boundary of a mounted overlay tree
17712
+ that has its [`bracketed`](#common.NestedParse.bracketed) flag
17713
+ set will enter that tree regardless of side. Only supported in
17714
+ [`enter`](#common.SyntaxNode.enter), not in cursors.
17715
+ */ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
17701
17716
  })(IterMode || (IterMode = {}));
17702
17717
  /**
17703
17718
  A piece of syntax tree. There are two ways to approach these
@@ -18257,17 +18272,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
18257
18272
  var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
18258
18273
  for(var parent = this;;){
18259
18274
  for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
18260
- var next = children[i], start = positions[i] + parent.from;
18261
- if (!checkSide(side, pos, start, start + next.length)) continue;
18275
+ var next = children[i], start = positions[i] + parent.from, mounted = void 0;
18276
+ if (!(mode & IterMode.EnterBracketed && _instanceof$i(next, Tree) && (mounted = MountedTree.get(next)) && !mounted.overlay && mounted.bracketed && pos >= start && pos <= start + next.length) && !checkSide(side, pos, start, start + next.length)) continue;
18262
18277
  if (_instanceof$i(next, TreeBuffer)) {
18263
18278
  if (mode & IterMode.ExcludeBuffers) continue;
18264
18279
  var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
18265
18280
  if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
18266
18281
  } else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
18267
- var mounted = void 0;
18268
- if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent);
18282
+ var mounted1 = void 0;
18283
+ if (!(mode & IterMode.IgnoreMounts) && (mounted1 = MountedTree.get(next)) && !mounted1.overlay) return new TreeNode(mounted1.tree, start, i, parent);
18269
18284
  var inner = new TreeNode(next, start, i, parent);
18270
- return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
18285
+ return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side, mode);
18271
18286
  }
18272
18287
  }
18273
18288
  if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
@@ -18302,18 +18317,24 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
18302
18317
  return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
18303
18318
  }
18304
18319
  },
18320
+ {
18321
+ key: "prop",
18322
+ value: function prop(prop) {
18323
+ return this._tree.prop(prop);
18324
+ }
18325
+ },
18305
18326
  {
18306
18327
  key: "enter",
18307
18328
  value: function enter(pos, side) {
18308
18329
  var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
18309
18330
  var mounted;
18310
18331
  if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
18311
- var rPos = pos - this.from;
18332
+ var rPos = pos - this.from, enterBracketed = mode & IterMode.EnterBracketed && mounted.bracketed;
18312
18333
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
18313
18334
  try {
18314
18335
  for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
18315
18336
  var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
18316
- if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
18337
+ if ((side > 0 || enterBracketed ? from <= rPos : from < rPos) && (side < 0 || enterBracketed ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
18317
18338
  }
18318
18339
  } catch (err) {
18319
18340
  _didIteratorError = true;
@@ -18477,6 +18498,12 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
18477
18498
  return this.child(-1, pos, -2 /* Side.Before */ );
18478
18499
  }
18479
18500
  },
18501
+ {
18502
+ key: "prop",
18503
+ value: function prop(prop) {
18504
+ return this.type.prop(prop);
18505
+ }
18506
+ },
18480
18507
  {
18481
18508
  key: "enter",
18482
18509
  value: function enter(pos, side) {
@@ -18607,11 +18634,8 @@ A tree cursor object focuses on a given node in a syntax tree, and
18607
18634
  allows you to move to adjacent nodes.
18608
18635
  */ var TreeCursor = /*#__PURE__*/ function() {
18609
18636
  function TreeCursor(node) {
18610
- var /**
18611
- @internal
18612
- */ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
18637
+ var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
18613
18638
  _class_call_check$z(this, TreeCursor);
18614
- this.mode = mode;
18615
18639
  /**
18616
18640
  @internal
18617
18641
  */ this.buffer = null;
@@ -18620,6 +18644,7 @@ allows you to move to adjacent nodes.
18620
18644
  @internal
18621
18645
  */ this.index = 0;
18622
18646
  this.bufferNode = null;
18647
+ this.mode = mode & ~IterMode.EnterBracketed;
18623
18648
  if (_instanceof$i(node, TreeNode)) {
18624
18649
  this.yieldNode(node);
18625
18650
  } else {
@@ -18963,7 +18988,7 @@ function buildTree(data) {
18963
18988
  function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
18964
18989
  var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
18965
18990
  var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
18966
- while(size < 0){
18991
+ if (size < 0) {
18967
18992
  cursor.next();
18968
18993
  if (size == -1 /* SpecialRecord.Reuse */ ) {
18969
18994
  var node = reused[id];
@@ -19130,7 +19155,7 @@ function buildTree(data) {
19130
19155
  fork.next();
19131
19156
  while(fork.pos > startPos){
19132
19157
  if (fork.size < 0) {
19133
- if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
19158
+ if (fork.size == -3 /* SpecialRecord.ContextChange */ || fork.size == -4 /* SpecialRecord.LookAhead */ ) localSkipped += 4;
19134
19159
  else break scan;
19135
19160
  } else if (fork.id >= minRepeatType) {
19136
19161
  localSkipped += 4;
@@ -19581,11 +19606,11 @@ about the parse state.
19581
19606
  var _a;
19582
19607
  var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
19583
19608
  var parser = this.p.parser;
19584
- var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
19585
- if (lookaheadRecord) this.setLookAhead(this.pos);
19609
+ var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ && this.setLookAhead(this.pos);
19586
19610
  var dPrec = parser.dynamicPrecedence(type);
19587
19611
  if (dPrec) this.score += dPrec;
19588
19612
  if (depth == 0) {
19613
+ if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
19589
19614
  this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
19590
19615
  // Zero-depth reductions are a special case—they add stuff to
19591
19616
  // the stack without popping anything off.
@@ -19599,7 +19624,9 @@ about the parse state.
19599
19624
  // expression and the state that we'll be staying in, which should
19600
19625
  // be moved to `this.state`).
19601
19626
  var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
19602
- var start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
19627
+ var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
19628
+ if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
19629
+ var size = this.reducePos - start;
19603
19630
  // This is a kludge to try and detect overly deep left-associative
19604
19631
  // trees, which will not increase the parse stack depth and thus
19605
19632
  // won't be caught by the regular stack-depth limit check.
@@ -19638,15 +19665,11 @@ about the parse state.
19638
19665
  var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
19639
19666
  if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
19640
19667
  // Try to omit/merge adjacent error nodes
19641
- var cur = this, top = this.buffer.length;
19642
- if (top == 0 && cur.parent) {
19643
- top = cur.bufferBase - cur.parent.bufferBase;
19644
- cur = cur.parent;
19645
- }
19646
- if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
19668
+ var top = this.buffer.length;
19669
+ if (top > 0 && this.buffer[top - 4] == 0 /* Term.Err */ && this.buffer[top - 1] > -1) {
19647
19670
  if (start == end) return;
19648
- if (cur.buffer[top - 2] >= start) {
19649
- cur.buffer[top - 2] = end;
19671
+ if (this.buffer[top - 2] >= start) {
19672
+ this.buffer[top - 2] = end;
19650
19673
  return;
19651
19674
  }
19652
19675
  }
@@ -19655,7 +19678,7 @@ about the parse state.
19655
19678
  this.buffer.push(term, start, end, size);
19656
19679
  } else {
19657
19680
  var index = this.buffer.length;
19658
- if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
19681
+ if (index > 0 && (this.buffer[index - 4] != 0 /* Term.Err */ || this.buffer[index - 1] < 0)) {
19659
19682
  var mustMove = false;
19660
19683
  for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
19661
19684
  if (this.buffer[scan - 1] >= 0) {
@@ -19690,11 +19713,11 @@ about the parse state.
19690
19713
  this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
19691
19714
  } else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
19692
19715
  var nextState = action, parser = this.p.parser;
19693
- if (end > this.pos || type <= parser.maxNode) {
19694
- this.pos = end;
19695
- if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ )) this.reducePos = end;
19696
- }
19697
- this.pushState(nextState, start);
19716
+ this.pos = end;
19717
+ var skipped = parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ );
19718
+ // Skipped or zero-length non-tree tokens don't move reducePos
19719
+ if (!skipped && (end > start || type <= parser.maxNode)) this.reducePos = end;
19720
+ this.pushState(nextState, skipped ? start : Math.min(start, this.reducePos));
19698
19721
  this.shiftContext(type, start);
19699
19722
  if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
19700
19723
  } else {
@@ -19742,6 +19765,9 @@ about the parse state.
19742
19765
  value: function split() {
19743
19766
  var parent = this;
19744
19767
  var off = parent.buffer.length;
19768
+ // Leave off top error node, if there, because that might be
19769
+ // merged with other nodes.
19770
+ if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
19745
19771
  // Because the top of the buffer (after this.pos) may be mutated
19746
19772
  // to reorder reductions and skipped tokens, and shared buffers
19747
19773
  // should be immutable, this copies any outstanding skipped tokens
@@ -19985,10 +20011,10 @@ about the parse state.
19985
20011
  @internal
19986
20012
  */ key: "setLookAhead",
19987
20013
  value: function setLookAhead(lookAhead) {
19988
- if (lookAhead > this.lookAhead) {
19989
- this.emitLookAhead();
19990
- this.lookAhead = lookAhead;
19991
- }
20014
+ if (lookAhead <= this.lookAhead) return false;
20015
+ this.emitLookAhead();
20016
+ this.lookAhead = lookAhead;
20017
+ return true;
19992
20018
  }
19993
20019
  },
19994
20020
  {
@@ -20882,7 +20908,12 @@ var Parse = /*#__PURE__*/ function() {
20882
20908
  }
20883
20909
  }
20884
20910
  }
20885
- if (newStacks.length > 12 /* Rec.MaxStackCount */ ) newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
20911
+ if (newStacks.length > 12 /* Rec.MaxStackCount */ ) {
20912
+ newStacks.sort(function(a, b) {
20913
+ return b.score - a.score;
20914
+ });
20915
+ newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
20916
+ }
20886
20917
  }
20887
20918
  this.minStackPos = newStacks[0].pos;
20888
20919
  for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
@@ -20977,7 +21008,7 @@ var Parse = /*#__PURE__*/ function() {
20977
21008
  if (done) continue;
20978
21009
  }
20979
21010
  var force = stack.split(), forceBase = base;
20980
- for(var j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */ ; j++){
21011
+ for(var j = 0; j < 10 /* Rec.ForceReduceLimit */ && force.forceReduce(); j++){
20981
21012
  if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
20982
21013
  var done1 = this.advanceFully(force, newStacks);
20983
21014
  if (done1) break;
@@ -21012,8 +21043,8 @@ var Parse = /*#__PURE__*/ function() {
21012
21043
  stack.recoverByDelete(token, tokenEnd);
21013
21044
  if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
21014
21045
  pushStackDedup(stack, newStacks);
21015
- } else if (!finished || finished.score < stack.score) {
21016
- finished = stack;
21046
+ } else if (!finished || finished.score < force.score) {
21047
+ finished = force;
21017
21048
  }
21018
21049
  }
21019
21050
  return finished;
@@ -21864,7 +21895,7 @@ must be quoted as JSON strings.
21864
21895
  For example:
21865
21896
 
21866
21897
  ```javascript
21867
- parser.withProps(
21898
+ parser.configure({props: [
21868
21899
  styleTags({
21869
21900
  // Style Number and BigNumber nodes
21870
21901
  "Number BigNumber": tags.number,
@@ -21879,7 +21910,7 @@ parser.withProps(
21879
21910
  // Style the node named "/" as punctuation
21880
21911
  '"/"': tags.punctuation
21881
21912
  })
21882
- )
21913
+ ]})
21883
21914
  ```
21884
21915
  */ function styleTags(spec) {
21885
21916
  var byName = Object.create(null);
@@ -21935,7 +21966,26 @@ parser.withProps(
21935
21966
  }
21936
21967
  return ruleNodeProp.add(byName);
21937
21968
  }
21938
- var ruleNodeProp = new NodeProp();
21969
+ var ruleNodeProp = new NodeProp({
21970
+ combine: function combine(a, b) {
21971
+ var cur, root, take;
21972
+ while(a || b){
21973
+ if (!a || b && a.depth >= b.depth) {
21974
+ take = b;
21975
+ b = b.next;
21976
+ } else {
21977
+ take = a;
21978
+ a = a.next;
21979
+ }
21980
+ if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
21981
+ var copy = new Rule$1(take.tags, take.mode, take.context);
21982
+ if (cur) cur.next = copy;
21983
+ else root = copy;
21984
+ cur = copy;
21985
+ }
21986
+ return root;
21987
+ }
21988
+ });
21939
21989
  var Rule$1 = /*#__PURE__*/ function() {
21940
21990
  function Rule(tags, mode, context, next) {
21941
21991
  _class_call_check$x(this, Rule);
@@ -22861,14 +22911,14 @@ function indent(str, spaces) {
22861
22911
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22862
22912
  // match is required
22863
22913
  if (!match) {
22864
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22914
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
22865
22915
  v: nextMatch1
22866
22916
  };
22867
22917
  }
22868
22918
  var token = match.token, offset = match.offset;
22869
22919
  i1 += offset;
22870
22920
  if (token === ' ') {
22871
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22921
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22872
22922
  }
22873
22923
  tokens1 = _to_consumable_array$4(tokens1).concat([
22874
22924
  token
@@ -22887,7 +22937,7 @@ function indent(str, spaces) {
22887
22937
  if (contextKeys.some(function(el) {
22888
22938
  return el.startsWith(name);
22889
22939
  })) {
22890
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22940
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22891
22941
  }
22892
22942
  if (dateTimeIdentifiers.some(function(el) {
22893
22943
  return el === name;
@@ -22906,9 +22956,9 @@ function indent(str, spaces) {
22906
22956
  if (dateTimeIdentifiers.some(function(el) {
22907
22957
  return el.startsWith(name);
22908
22958
  })) {
22909
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22959
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22910
22960
  }
22911
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22961
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
22912
22962
  v: nextMatch1
22913
22963
  };
22914
22964
  };
@@ -44713,7 +44763,7 @@ function _object_spread_props(target, source) {
44713
44763
  })).join('').toLowerCase();
44714
44764
  }
44715
44765
 
44716
- const Handlebars = handlebars_min || HandlebarsNamespace;
44766
+ const Handlebars = handlebars_min_default || HandlebarsNamespace;
44717
44767
  Handlebars.registerHelper('JSONstringify', function(value) {
44718
44768
  return JSON.stringify(value);
44719
44769
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.136.1",
3
+ "version": "0.136.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,3 +0,0 @@
1
- export * from './lib/engine';
2
- export * from './lib/pins-settings.interface';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC"}
@@ -1,10 +0,0 @@
1
- export interface Alias {
2
- name: string;
3
- library: string;
4
- element: string;
5
- properties: {
6
- library: string;
7
- element: string;
8
- };
9
- }
10
- //# sourceMappingURL=alias.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alias.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/alias.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAClD"}
@@ -1,14 +0,0 @@
1
- import { PinsSettings } from './pins-settings.interface';
2
- type CONFIG_KEY = 'BASE_URL' | 'LIBRARIES' | 'ALIAS' | 'LOGGER';
3
- export declare const config: {
4
- set: (key: CONFIG_KEY, value: any) => void;
5
- log: (level: string, path: string, message: string, context: any, data?: any) => any;
6
- };
7
- export declare const applyTemplate: (value: any, context: any) => any;
8
- export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, path?: string) => Promise<any>;
9
- export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
10
- import: boolean;
11
- }) => Promise<Element | void>;
12
- export declare const preparePinsSettings: (settings: PinsSettings, context: any) => PinsSettings;
13
- export {};
14
- //# sourceMappingURL=engine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../src/lib/engine.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AA2BzD,KAAK,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AAmBhE,eAAO,MAAM,MAAM;eACN,UAAU,SAAS,GAAG;iBAGpB,MAAM,QAAQ,MAAM,WAAW,MAAM,WAAW,GAAG,SAAS,GAAG;CAE7E,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,EAAE,SAAS,GAAG,QA0CrD,CAAC;AAoGF,eAAO,MAAM,eAAe,GAC1B,kBAAkB,YAAY,EAAE,EAChC,SAAS,GAAG,EACZ,aAAa,KACZ,OAAO,CAAC,GAAG,CAuBb,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,cAAc,YAAY,EAC1B,QAAQ,OAAO,EACf,SAAS,GAAG,EACZ,WAAU,QAA4E,EACtF;;CAA0B,KACzB,OAAO,CAAC,OAAO,GAAG,IAAI,CAyFxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,YAAY,EAAE,SAAS,GAAG,KAAG,YAkB1E,CAAC"}
@@ -1,19 +0,0 @@
1
- export interface PinsSettings {
2
- _properties: {
3
- [key: string]: any;
4
- } | undefined;
5
- library: string;
6
- element: string;
7
- properties?: {
8
- [key: string]: any;
9
- } | undefined;
10
- conditions?: {
11
- if?: boolean;
12
- each?: any[];
13
- };
14
- pins?: PinsSettings[];
15
- events?: {
16
- [key: string]: PinsSettings[];
17
- };
18
- }
19
- //# sourceMappingURL=pins-settings.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pins-settings.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/pins-settings.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAChD,UAAU,CAAC,EAAE;QACX,EAAE,CAAC,EAAE,OAAO,CAAC;QACb,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;KACd,CAAC;IACF,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,CAAA;KAAE,CAAC;CAC5C"}