@gravitee/graphene-policy-studio 3.19.1 → 3.20.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.
Files changed (2) hide show
  1. package/dist/index.js +15 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14750,7 +14750,7 @@ function ww(e) {
14750
14750
  //#region ../../node_modules/micromark-extension-gfm-table/lib/edit-map.js
14751
14751
  var Tw = class {
14752
14752
  constructor() {
14753
- this.map = [];
14753
+ this.map = [], this.index = /* @__PURE__ */ new Map();
14754
14754
  }
14755
14755
  add(e, t, n) {
14756
14756
  Ew(this, e, t, n);
@@ -14768,25 +14768,23 @@ var Tw = class {
14768
14768
  for (let t of r) e.push(t);
14769
14769
  r = n.pop();
14770
14770
  }
14771
- this.map.length = 0;
14771
+ this.map.length = 0, this.index.clear();
14772
14772
  }
14773
14773
  };
14774
14774
  function Ew(e, t, n, r) {
14775
- let i = 0;
14776
- if (!(n === 0 && r.length === 0)) {
14777
- for (; i < e.map.length;) {
14778
- if (e.map[i][0] === t) {
14779
- e.map[i][1] += n, e.map[i][2].push(...r);
14780
- return;
14781
- }
14782
- i += 1;
14783
- }
14784
- e.map.push([
14785
- t,
14786
- n,
14787
- r
14788
- ]);
14775
+ /* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
14776
+ if (n === 0 && r.length === 0) return;
14777
+ let i = e.index.get(t);
14778
+ if (i) {
14779
+ i[1] += n, i[2].push(...r);
14780
+ return;
14789
14781
  }
14782
+ let a = [
14783
+ t,
14784
+ n,
14785
+ r
14786
+ ];
14787
+ e.map.push(a), e.index.set(t, a);
14790
14788
  }
14791
14789
  //#endregion
14792
14790
  //#region ../../node_modules/micromark-extension-gfm-table/lib/infer.js
@@ -14822,7 +14820,7 @@ function kw(e, t, n) {
14822
14820
  function s(e) {
14823
14821
  let t = r.events.length - 1;
14824
14822
  for (; t > -1;) {
14825
- let e = r.events[t][1].type;
14823
+ let { type: e } = r.events[t][1];
14826
14824
  if (e === "lineEnding" || e === "linePrefix") t--;
14827
14825
  else break;
14828
14826
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/graphene-policy-studio",
3
- "version": "3.19.1",
3
+ "version": "3.20.0",
4
4
  "type": "module",
5
5
  "description": "Gravitee Policy Studio UI for the Graphene design system.",
6
6
  "keywords": [