@digipair/engine 0.136.3 → 0.136.4

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 = {
21
+ var handlebars_min$1 = {
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.exports;
51
+ handlebars_min$1.exports;
52
52
 
53
53
  (function (module, exports) {
54
54
  function _instanceof(left, right) {
@@ -8130,14 +8130,14 @@ handlebars_min.exports;
8130
8130
  }
8131
8131
  ]);
8132
8132
  });
8133
- } (handlebars_min, handlebars_min.exports));
8133
+ } (handlebars_min$1, handlebars_min$1.exports));
8134
8134
 
8135
- var handlebars_minExports = handlebars_min.exports;
8136
- var handlebars_min_default = /*@__PURE__*/getDefaultExportFromCjs(handlebars_minExports);
8135
+ var handlebars_minExports = handlebars_min$1.exports;
8136
+ var handlebars_min = /*@__PURE__*/getDefaultExportFromCjs(handlebars_minExports);
8137
8137
 
8138
8138
  var HandlebarsNamespace = /*#__PURE__*/_mergeNamespaces({
8139
8139
  __proto__: null,
8140
- default: handlebars_min_default
8140
+ default: handlebars_min
8141
8141
  }, [handlebars_minExports]);
8142
8142
 
8143
8143
  // these aren't really private, but nor are they really useful to document
@@ -17301,7 +17301,6 @@ 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;
17305
17304
  }
17306
17305
  _create_class$u(NodeProp, [
17307
17306
  {
@@ -17414,16 +17413,10 @@ represented by another tree.
17414
17413
  */ overlay, /**
17415
17414
  The parser used to create this subtree.
17416
17415
  */ 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;
17422
17416
  _class_call_check$z(this, MountedTree);
17423
17417
  this.tree = tree;
17424
17418
  this.overlay = overlay;
17425
17419
  this.parser = parser;
17426
- this.bracketed = bracketed;
17427
17420
  }
17428
17421
  _create_class$u(MountedTree, null, [
17429
17422
  {
@@ -17639,9 +17632,7 @@ types in it, so that the ids fit into 16-bit typed array slots.
17639
17632
  var add = source(type);
17640
17633
  if (add) {
17641
17634
  if (!newProps) newProps = Object.assign({}, type.props);
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;
17635
+ newProps[add[0].id] = add[1];
17645
17636
  }
17646
17637
  }
17647
17638
  } catch (err) {
@@ -17707,12 +17698,6 @@ operator to enable multiple ones.
17707
17698
  library to not enter mounted overlays if one covers the given
17708
17699
  position.
17709
17700
  */ 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";
17716
17701
  })(IterMode || (IterMode = {}));
17717
17702
  /**
17718
17703
  A piece of syntax tree. There are two ways to approach these
@@ -18272,17 +18257,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
18272
18257
  var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
18273
18258
  for(var parent = this;;){
18274
18259
  for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
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;
18260
+ var next = children[i], start = positions[i] + parent.from;
18261
+ if (!checkSide(side, pos, start, start + next.length)) continue;
18277
18262
  if (_instanceof$i(next, TreeBuffer)) {
18278
18263
  if (mode & IterMode.ExcludeBuffers) continue;
18279
18264
  var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
18280
18265
  if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
18281
18266
  } else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
18282
- var mounted1 = void 0;
18283
- if (!(mode & IterMode.IgnoreMounts) && (mounted1 = MountedTree.get(next)) && !mounted1.overlay) return new TreeNode(mounted1.tree, start, i, parent);
18267
+ var mounted = void 0;
18268
+ if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent);
18284
18269
  var inner = new TreeNode(next, start, i, parent);
18285
- return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side, mode);
18270
+ return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
18286
18271
  }
18287
18272
  }
18288
18273
  if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
@@ -18317,24 +18302,18 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
18317
18302
  return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
18318
18303
  }
18319
18304
  },
18320
- {
18321
- key: "prop",
18322
- value: function prop(prop) {
18323
- return this._tree.prop(prop);
18324
- }
18325
- },
18326
18305
  {
18327
18306
  key: "enter",
18328
18307
  value: function enter(pos, side) {
18329
18308
  var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
18330
18309
  var mounted;
18331
18310
  if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
18332
- var rPos = pos - this.from, enterBracketed = mode & IterMode.EnterBracketed && mounted.bracketed;
18311
+ var rPos = pos - this.from;
18333
18312
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
18334
18313
  try {
18335
18314
  for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
18336
18315
  var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
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);
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);
18338
18317
  }
18339
18318
  } catch (err) {
18340
18319
  _didIteratorError = true;
@@ -18498,12 +18477,6 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
18498
18477
  return this.child(-1, pos, -2 /* Side.Before */ );
18499
18478
  }
18500
18479
  },
18501
- {
18502
- key: "prop",
18503
- value: function prop(prop) {
18504
- return this.type.prop(prop);
18505
- }
18506
- },
18507
18480
  {
18508
18481
  key: "enter",
18509
18482
  value: function enter(pos, side) {
@@ -18634,8 +18607,11 @@ A tree cursor object focuses on a given node in a syntax tree, and
18634
18607
  allows you to move to adjacent nodes.
18635
18608
  */ var TreeCursor = /*#__PURE__*/ function() {
18636
18609
  function TreeCursor(node) {
18637
- var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
18610
+ var /**
18611
+ @internal
18612
+ */ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
18638
18613
  _class_call_check$z(this, TreeCursor);
18614
+ this.mode = mode;
18639
18615
  /**
18640
18616
  @internal
18641
18617
  */ this.buffer = null;
@@ -18644,7 +18620,6 @@ allows you to move to adjacent nodes.
18644
18620
  @internal
18645
18621
  */ this.index = 0;
18646
18622
  this.bufferNode = null;
18647
- this.mode = mode & ~IterMode.EnterBracketed;
18648
18623
  if (_instanceof$i(node, TreeNode)) {
18649
18624
  this.yieldNode(node);
18650
18625
  } else {
@@ -18988,7 +18963,7 @@ function buildTree(data) {
18988
18963
  function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
18989
18964
  var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
18990
18965
  var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
18991
- if (size < 0) {
18966
+ while(size < 0){
18992
18967
  cursor.next();
18993
18968
  if (size == -1 /* SpecialRecord.Reuse */ ) {
18994
18969
  var node = reused[id];
@@ -19155,7 +19130,7 @@ function buildTree(data) {
19155
19130
  fork.next();
19156
19131
  while(fork.pos > startPos){
19157
19132
  if (fork.size < 0) {
19158
- if (fork.size == -3 /* SpecialRecord.ContextChange */ || fork.size == -4 /* SpecialRecord.LookAhead */ ) localSkipped += 4;
19133
+ if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
19159
19134
  else break scan;
19160
19135
  } else if (fork.id >= minRepeatType) {
19161
19136
  localSkipped += 4;
@@ -19606,11 +19581,11 @@ about the parse state.
19606
19581
  var _a;
19607
19582
  var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
19608
19583
  var parser = this.p.parser;
19609
- var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ && this.setLookAhead(this.pos);
19584
+ var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
19585
+ if (lookaheadRecord) this.setLookAhead(this.pos);
19610
19586
  var dPrec = parser.dynamicPrecedence(type);
19611
19587
  if (dPrec) this.score += dPrec;
19612
19588
  if (depth == 0) {
19613
- if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
19614
19589
  this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
19615
19590
  // Zero-depth reductions are a special case—they add stuff to
19616
19591
  // the stack without popping anything off.
@@ -19624,9 +19599,7 @@ about the parse state.
19624
19599
  // expression and the state that we'll be staying in, which should
19625
19600
  // be moved to `this.state`).
19626
19601
  var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
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;
19602
+ var start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
19630
19603
  // This is a kludge to try and detect overly deep left-associative
19631
19604
  // trees, which will not increase the parse stack depth and thus
19632
19605
  // won't be caught by the regular stack-depth limit check.
@@ -19665,11 +19638,15 @@ about the parse state.
19665
19638
  var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
19666
19639
  if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
19667
19640
  // Try to omit/merge adjacent error nodes
19668
- var top = this.buffer.length;
19669
- if (top > 0 && this.buffer[top - 4] == 0 /* Term.Err */ && this.buffer[top - 1] > -1) {
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) {
19670
19647
  if (start == end) return;
19671
- if (this.buffer[top - 2] >= start) {
19672
- this.buffer[top - 2] = end;
19648
+ if (cur.buffer[top - 2] >= start) {
19649
+ cur.buffer[top - 2] = end;
19673
19650
  return;
19674
19651
  }
19675
19652
  }
@@ -19678,7 +19655,7 @@ about the parse state.
19678
19655
  this.buffer.push(term, start, end, size);
19679
19656
  } else {
19680
19657
  var index = this.buffer.length;
19681
- if (index > 0 && (this.buffer[index - 4] != 0 /* Term.Err */ || this.buffer[index - 1] < 0)) {
19658
+ if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
19682
19659
  var mustMove = false;
19683
19660
  for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
19684
19661
  if (this.buffer[scan - 1] >= 0) {
@@ -19713,11 +19690,11 @@ about the parse state.
19713
19690
  this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
19714
19691
  } else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
19715
19692
  var nextState = action, parser = this.p.parser;
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));
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);
19721
19698
  this.shiftContext(type, start);
19722
19699
  if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
19723
19700
  } else {
@@ -19765,9 +19742,6 @@ about the parse state.
19765
19742
  value: function split() {
19766
19743
  var parent = this;
19767
19744
  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;
19771
19745
  // Because the top of the buffer (after this.pos) may be mutated
19772
19746
  // to reorder reductions and skipped tokens, and shared buffers
19773
19747
  // should be immutable, this copies any outstanding skipped tokens
@@ -20011,10 +19985,10 @@ about the parse state.
20011
19985
  @internal
20012
19986
  */ key: "setLookAhead",
20013
19987
  value: function setLookAhead(lookAhead) {
20014
- if (lookAhead <= this.lookAhead) return false;
20015
- this.emitLookAhead();
20016
- this.lookAhead = lookAhead;
20017
- return true;
19988
+ if (lookAhead > this.lookAhead) {
19989
+ this.emitLookAhead();
19990
+ this.lookAhead = lookAhead;
19991
+ }
20018
19992
  }
20019
19993
  },
20020
19994
  {
@@ -20908,12 +20882,7 @@ var Parse = /*#__PURE__*/ function() {
20908
20882
  }
20909
20883
  }
20910
20884
  }
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
- }
20885
+ if (newStacks.length > 12 /* Rec.MaxStackCount */ ) newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
20917
20886
  }
20918
20887
  this.minStackPos = newStacks[0].pos;
20919
20888
  for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
@@ -21008,7 +20977,7 @@ var Parse = /*#__PURE__*/ function() {
21008
20977
  if (done) continue;
21009
20978
  }
21010
20979
  var force = stack.split(), forceBase = base;
21011
- for(var j = 0; j < 10 /* Rec.ForceReduceLimit */ && force.forceReduce(); j++){
20980
+ for(var j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */ ; j++){
21012
20981
  if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
21013
20982
  var done1 = this.advanceFully(force, newStacks);
21014
20983
  if (done1) break;
@@ -21043,8 +21012,8 @@ var Parse = /*#__PURE__*/ function() {
21043
21012
  stack.recoverByDelete(token, tokenEnd);
21044
21013
  if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
21045
21014
  pushStackDedup(stack, newStacks);
21046
- } else if (!finished || finished.score < force.score) {
21047
- finished = force;
21015
+ } else if (!finished || finished.score < stack.score) {
21016
+ finished = stack;
21048
21017
  }
21049
21018
  }
21050
21019
  return finished;
@@ -21895,7 +21864,7 @@ must be quoted as JSON strings.
21895
21864
  For example:
21896
21865
 
21897
21866
  ```javascript
21898
- parser.configure({props: [
21867
+ parser.withProps(
21899
21868
  styleTags({
21900
21869
  // Style Number and BigNumber nodes
21901
21870
  "Number BigNumber": tags.number,
@@ -21910,7 +21879,7 @@ parser.configure({props: [
21910
21879
  // Style the node named "/" as punctuation
21911
21880
  '"/"': tags.punctuation
21912
21881
  })
21913
- ]})
21882
+ )
21914
21883
  ```
21915
21884
  */ function styleTags(spec) {
21916
21885
  var byName = Object.create(null);
@@ -21966,26 +21935,7 @@ parser.configure({props: [
21966
21935
  }
21967
21936
  return ruleNodeProp.add(byName);
21968
21937
  }
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
- });
21938
+ var ruleNodeProp = new NodeProp();
21989
21939
  var Rule$1 = /*#__PURE__*/ function() {
21990
21940
  function Rule(tags, mode, context, next) {
21991
21941
  _class_call_check$x(this, Rule);
@@ -22911,14 +22861,14 @@ function indent(str, spaces) {
22911
22861
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22912
22862
  // match is required
22913
22863
  if (!match) {
22914
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
22864
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22915
22865
  v: nextMatch1
22916
22866
  };
22917
22867
  }
22918
22868
  var token = match.token, offset = match.offset;
22919
22869
  i1 += offset;
22920
22870
  if (token === ' ') {
22921
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22871
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22922
22872
  }
22923
22873
  tokens1 = _to_consumable_array$4(tokens1).concat([
22924
22874
  token
@@ -22937,7 +22887,7 @@ function indent(str, spaces) {
22937
22887
  if (contextKeys.some(function(el) {
22938
22888
  return el.startsWith(name);
22939
22889
  })) {
22940
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22890
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22941
22891
  }
22942
22892
  if (dateTimeIdentifiers.some(function(el) {
22943
22893
  return el === name;
@@ -22956,9 +22906,9 @@ function indent(str, spaces) {
22956
22906
  if (dateTimeIdentifiers.some(function(el) {
22957
22907
  return el.startsWith(name);
22958
22908
  })) {
22959
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22909
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22960
22910
  }
22961
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
22911
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22962
22912
  v: nextMatch1
22963
22913
  };
22964
22914
  };
@@ -44763,7 +44713,7 @@ function _object_spread_props(target, source) {
44763
44713
  })).join('').toLowerCase();
44764
44714
  }
44765
44715
 
44766
- const Handlebars = handlebars_min_default || HandlebarsNamespace;
44716
+ const Handlebars = handlebars_min || HandlebarsNamespace;
44767
44717
  Handlebars.registerHelper('JSONstringify', function(value) {
44768
44718
  return JSON.stringify(value);
44769
44719
  });
@@ -0,0 +1,3 @@
1
+ export * from './lib/engine';
2
+ export * from './lib/pins-settings.interface';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,19 @@
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
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.136.3",
3
+ "version": "0.136.4",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",