@depup/contentful 11.12.7-depup.7 → 11.12.8-depup.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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/contentful
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [contentful](https://www.npmjs.com/package/contentful) @ 11.12.7 |
17
- | Processed | 2026-07-30 |
16
+ | Original | [contentful](https://www.npmjs.com/package/contentful) @ 11.12.8 |
17
+ | Processed | 2026-08-06 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 5 |
20
20
 
@@ -22,7 +22,7 @@ npm install @depup/contentful
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | @contentful/content-source-maps | ^0.11.33 | ^0.12.3 |
25
+ | @contentful/content-source-maps | ^0.12.0 | ^0.12.3 |
26
26
  | axios | ^1.15.0 | ^1.19.0 |
27
27
  | contentful-resolve-response | ^1.9.4 | ^2.0.1 |
28
28
  | contentful-sdk-core | ^9.4.4 | ^10.0.0 |
package/changes.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bumped": {
3
3
  "@contentful/content-source-maps": {
4
- "from": "^0.11.33",
4
+ "from": "^0.12.0",
5
5
  "to": "^0.12.3"
6
6
  },
7
7
  "axios": {
@@ -21,6 +21,6 @@
21
21
  "to": "^5.8.0"
22
22
  }
23
23
  },
24
- "timestamp": "2026-07-30T00:38:05.114Z",
24
+ "timestamp": "2026-08-06T08:57:45.510Z",
25
25
  "totalUpdated": 5
26
26
  }
@@ -452,8 +452,8 @@ var contentful = (function (exports) {
452
452
  if (typeof global !== 'undefined') return global;
453
453
  return {};
454
454
  }
455
- const G$1 = getGlobal();
456
- const FormDataCtor = typeof G$1.FormData !== 'undefined' ? G$1.FormData : undefined;
455
+ const G = getGlobal();
456
+ const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
457
457
  const isFormData = thing => {
458
458
  if (!thing) return false;
459
459
  if (FormDataCtor && thing instanceof FormDataCtor) return true;
@@ -8419,7 +8419,11 @@ var contentful = (function (exports) {
8419
8419
  };
8420
8420
  }
8421
8421
 
8422
- var W = {
8422
+ //#region \0rolldown/runtime.js
8423
+ var e = (e, t) => () => (t || (e((t = {
8424
+ exports: {}
8425
+ }).exports, t), e = null), t.exports),
8426
+ t = {
8423
8427
  0: 8203,
8424
8428
  1: 8204,
8425
8429
  2: 8205,
@@ -8437,312 +8441,301 @@ var contentful = (function (exports) {
8437
8441
  e: 119161,
8438
8442
  f: 119162
8439
8443
  },
8440
- L = {
8444
+ n = {
8441
8445
  0: 8203,
8442
8446
  1: 8204,
8443
8447
  2: 8205,
8444
8448
  3: 65279
8445
8449
  },
8446
- j = new Array(4).fill(String.fromCodePoint(L[0])).join("");
8447
- function U(t) {
8448
- let n = JSON.stringify(t);
8449
- return `${j}${Array.from(n).map(o => {
8450
- let e = o.charCodeAt(0);
8451
- if (e > 255) throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${n} on character ${o} (${e})`);
8452
- return Array.from(e.toString(4).padStart(4, "0")).map(r => String.fromCodePoint(L[r])).join("");
8453
- }).join("")}`;
8454
- }
8455
- function Z(t) {
8456
- return !Number.isNaN(Number(t)) || /[a-z]/i.test(t) && !/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(t) ? false : !!Date.parse(t);
8457
- }
8458
- function q(t) {
8450
+ r = {
8451
+ 0: String.fromCodePoint(n[0]),
8452
+ 1: String.fromCodePoint(n[1]),
8453
+ 2: String.fromCodePoint(n[2]),
8454
+ 3: String.fromCodePoint(n[3])
8455
+ },
8456
+ i = [,,,,].fill(String.fromCodePoint(n[0])).join("");
8457
+ function o(e) {
8458
+ let t = JSON.stringify(e),
8459
+ n = new TextEncoder().encode(t),
8460
+ a = "";
8461
+ for (let e = 0; e < n.length; e++) {
8462
+ let t = n[e];
8463
+ a += r[t >> 6 & 3] + r[t >> 4 & 3] + r[t >> 2 & 3] + r[t & 3];
8464
+ }
8465
+ return i + a;
8466
+ }
8467
+ function s(e) {
8468
+ return !Number.isNaN(Number(e)) || /[a-z]/i.test(e) && !/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e) ? false : !!Date.parse(e);
8469
+ }
8470
+ function c(e) {
8459
8471
  try {
8460
- new URL(t, t.startsWith("/") ? "https://acme.com" : void 0);
8461
- } catch (n) {
8472
+ new URL(e, e.startsWith("/") ? "https://acme.com" : void 0);
8473
+ } catch (e) {
8462
8474
  return false;
8463
8475
  }
8464
8476
  return true;
8465
8477
  }
8466
- function G(t, n, o = "auto") {
8467
- return o === true || o === "auto" && (Z(t) || q(t)) ? t : `${t}${U(n)}`;
8468
- }
8469
- Object.fromEntries(Object.entries(L).map(t => t.reverse()));
8470
- Object.fromEntries(Object.entries(W).map(t => t.reverse()));
8471
- `${Object.values(W).map(t => `\\u{${t.toString(16)}}`).join("")}`;
8472
- function w(t, n) {
8473
- return G(t, n);
8474
- }
8475
- var x, k;
8476
- function ne() {
8477
- if (k) return x;
8478
- k = 1;
8479
- var t = Object.prototype.hasOwnProperty,
8480
- n = Object.prototype.toString;
8481
- return x = function (e, r, s) {
8482
- if (n.call(r) !== "[object Function]") throw new TypeError("iterator must be a function");
8483
- var c = e.length;
8484
- if (c === +c) for (var i = 0; i < c; i++) r.call(s, e[i], i, e);else for (var u in e) t.call(e, u) && r.call(s, e[u], u, e);
8485
- }, x;
8486
- }
8487
- var I, _;
8488
- function re() {
8489
- if (_) return I;
8490
- _ = 1;
8491
- var t = ne();
8492
- I = n;
8493
- function n(o, e, r) {
8494
- if (arguments.length === 3) return n.set(o, e, r);
8495
- if (arguments.length === 2) return n.get(o, e);
8496
- var s = n.bind(n, o);
8497
- for (var c in n) n.hasOwnProperty(c) && (s[c] = n[c].bind(s, o));
8498
- return s;
8499
- }
8500
- return n.get = function (e, r) {
8501
- for (var s = Array.isArray(r) ? r : n.parse(r), c = 0; c < s.length; ++c) {
8502
- var i = s[c];
8503
- if (!(typeof e == "object" && i in e)) throw new Error("Invalid reference token: " + i);
8504
- e = e[i];
8505
- }
8506
- return e;
8507
- }, n.set = function (e, r, s) {
8508
- var c = Array.isArray(r) ? r : n.parse(r),
8509
- i = c[0];
8510
- if (c.length === 0) throw Error("Can not set the root object");
8511
- for (var u = 0; u < c.length - 1; ++u) {
8512
- var a = c[u];
8513
- typeof a != "string" && typeof a != "number" && (a = String(a)), !(a === "__proto__" || a === "constructor" || a === "prototype") && (a === "-" && Array.isArray(e) && (a = e.length), i = c[u + 1], a in e || (i.match(/^(\d+|-)$/) ? e[a] = [] : e[a] = {}), e = e[a]);
8514
- }
8515
- return i === "-" && Array.isArray(e) && (i = e.length), e[i] = s, this;
8516
- }, n.remove = function (o, e) {
8517
- var r = Array.isArray(e) ? e : n.parse(e),
8518
- s = r[r.length - 1];
8519
- if (s === void 0) throw new Error('Invalid JSON pointer for remove: "' + e + '"');
8520
- var c = n.get(o, r.slice(0, -1));
8521
- if (Array.isArray(c)) {
8522
- var i = +s;
8523
- if (s === "" && isNaN(i)) throw new Error('Invalid array index: "' + s + '"');
8524
- Array.prototype.splice.call(c, i, 1);
8525
- } else delete c[s];
8526
- }, n.dict = function (e, r) {
8527
- var s = {};
8528
- return n.walk(e, function (c, i) {
8529
- s[i] = c;
8530
- }, r), s;
8531
- }, n.walk = function (e, r, s) {
8532
- var c = [];
8533
- s = s || function (i) {
8534
- var u = Object.prototype.toString.call(i);
8535
- return u === "[object Object]" || u === "[object Array]";
8536
- }, function i(u) {
8537
- t(u, function (a, l) {
8538
- c.push(String(l)), s(a) ? i(a) : r(a, n.compile(c)), c.pop();
8539
- });
8540
- }(e);
8541
- }, n.has = function (e, r) {
8542
- try {
8543
- n.get(e, r);
8544
- } catch (s) {
8545
- return false;
8546
- }
8547
- return true;
8548
- }, n.escape = function (e) {
8549
- return e.toString().replace(/~/g, "~0").replace(/\//g, "~1");
8550
- }, n.unescape = function (e) {
8551
- return e.replace(/~1/g, "/").replace(/~0/g, "~");
8552
- }, n.parse = function (e) {
8553
- if (e === "") return [];
8554
- if (e.charAt(0) !== "/") throw new Error("Invalid JSON pointer: " + e);
8555
- return e.substring(1).split(/\//).map(n.unescape);
8556
- }, n.compile = function (e) {
8557
- return e.length === 0 ? "" : "/" + e.map(n.escape).join("/");
8558
- }, I;
8559
- }
8560
- var p = re();
8561
- const oe = ({
8562
- pointer: t,
8563
- mappings: n,
8564
- data: o,
8565
- hiddenStrings: e
8566
- }) => {
8567
- const r = n[t];
8568
- if (r) {
8569
- delete n[t];
8570
- const s = b(o, t);
8571
- for (const c of s) {
8572
- n[c] = r;
8573
- const i = p.get(o, c),
8574
- u = w(i, e);
8575
- p.set(o, c, u);
8478
+ function l(e, t, n = "auto") {
8479
+ return n === true || n === "auto" && (s(e) || c(e)) ? e : `${e}${o(t)}`;
8480
+ }
8481
+ Object.fromEntries(Object.entries(r).map(e => [e[1], +e[0]]));
8482
+ Object.fromEntries(Object.entries(t).map(e => e.reverse()));
8483
+ `${Object.values(t).map(e => `\\u{${e.toString(16)}}`).join("")}`;
8484
+ //#endregion
8485
+ //#region src/encode.ts
8486
+ function v(e, t) {
8487
+ return l(e, t);
8488
+ }
8489
+ //#endregion
8490
+ //#region ../../node_modules/foreach/index.js
8491
+ var S = /* @__PURE__ */e((e, t) => {
8492
+ var n = Object.prototype.hasOwnProperty,
8493
+ r = Object.prototype.toString;
8494
+ t.exports = function (e, t, i) {
8495
+ if (r.call(t) !== "[object Function]") throw TypeError("iterator must be a function");
8496
+ var a = e.length;
8497
+ if (a === +a) for (var o = 0; o < a; o++) t.call(i, e[o], o, e);else for (var s in e) n.call(e, s) && t.call(i, e[s], s, e);
8498
+ };
8499
+ }),
8500
+ C = (/* @__PURE__ */e((e, t) => {
8501
+ var n = S();
8502
+ t.exports = r;
8503
+ function r(e, t, n) {
8504
+ if (arguments.length === 3) return r.set(e, t, n);
8505
+ if (arguments.length === 2) return r.get(e, t);
8506
+ var i = r.bind(r, e);
8507
+ for (var a in r) r.hasOwnProperty(a) && (i[a] = r[a].bind(i, e));
8508
+ return i;
8576
8509
  }
8577
- } else {
8578
- const s = b(o, t);
8579
- for (const c of s) {
8580
- const i = p.get(o, c),
8581
- u = w(i, e);
8582
- p.set(o, c, u);
8510
+ r.get = function (e, t) {
8511
+ for (var n = Array.isArray(t) ? t : r.parse(t), i = 0; i < n.length; ++i) {
8512
+ var a = n[i];
8513
+ if (!(typeof e == "object" && a in e)) throw Error("Invalid reference token: " + a);
8514
+ e = e[a];
8515
+ }
8516
+ return e;
8517
+ }, r.set = function (e, t, n) {
8518
+ var i = Array.isArray(t) ? t : r.parse(t),
8519
+ a = i[0];
8520
+ if (i.length === 0) throw Error("Can not set the root object");
8521
+ for (var o = 0; o < i.length - 1; ++o) {
8522
+ var s = i[o];
8523
+ typeof s != "string" && typeof s != "number" && (s = String(s)), !(s === "__proto__" || s === "constructor" || s === "prototype") && (s === "-" && Array.isArray(e) && (s = e.length), a = i[o + 1], s in e || (a.match(/^(\d+|-)$/) ? e[s] = [] : e[s] = {}), e = e[s]);
8524
+ }
8525
+ return a === "-" && Array.isArray(e) && (a = e.length), e[a] = n, this;
8526
+ }, r.remove = function (e, t) {
8527
+ var n = Array.isArray(t) ? t : r.parse(t),
8528
+ i = n[n.length - 1];
8529
+ if (i === void 0) throw Error("Invalid JSON pointer for remove: \"" + t + "\"");
8530
+ var a = r.get(e, n.slice(0, -1));
8531
+ if (Array.isArray(a)) {
8532
+ var o = +i;
8533
+ if (i === "" && isNaN(o)) throw Error("Invalid array index: \"" + i + "\"");
8534
+ Array.prototype.splice.call(a, o, 1);
8535
+ } else delete a[i];
8536
+ }, r.dict = function (e, t) {
8537
+ var n = {};
8538
+ return r.walk(e, function (e, t) {
8539
+ n[t] = e;
8540
+ }, t), n;
8541
+ }, r.walk = function (e, t, i) {
8542
+ var a = [];
8543
+ i = i || function (e) {
8544
+ var t = Object.prototype.toString.call(e);
8545
+ return t === "[object Object]" || t === "[object Array]";
8546
+ }, function e(o) {
8547
+ n(o, function (n, o) {
8548
+ a.push(String(o)), i(n) ? e(n) : t(n, r.compile(a)), a.pop();
8549
+ });
8550
+ }(e);
8551
+ }, r.has = function (e, t) {
8552
+ try {
8553
+ r.get(e, t);
8554
+ } catch (e) {
8555
+ return false;
8556
+ }
8557
+ return true;
8558
+ }, r.escape = function (e) {
8559
+ return e.toString().replace(/~/g, "~0").replace(/\//g, "~1");
8560
+ }, r.unescape = function (e) {
8561
+ return e.replace(/~1/g, "/").replace(/~0/g, "~");
8562
+ }, r.parse = function (e) {
8563
+ if (e === "") return [];
8564
+ if (e.charAt(0) !== "/") throw Error("Invalid JSON pointer: " + e);
8565
+ return e.substring(1).split(/\//).map(r.unescape);
8566
+ }, r.compile = function (e) {
8567
+ return e.length === 0 ? "" : "/" + e.map(r.escape).join("/");
8568
+ };
8569
+ }))(),
8570
+ w = ({
8571
+ pointer: e,
8572
+ mappings: t,
8573
+ data: n,
8574
+ hiddenStrings: r
8575
+ }) => {
8576
+ let i = t[e];
8577
+ if (i) {
8578
+ delete t[e];
8579
+ let a = E(n, e);
8580
+ for (let e of a) t[e] = i, (0, C.set)(n, e, v((0, C.get)(n, e), r));
8581
+ } else {
8582
+ let t = E(n, e);
8583
+ for (let e of t) (0, C.set)(n, e, v((0, C.get)(n, e), r));
8583
8584
  }
8584
- }
8585
- };
8586
- function se(t) {
8587
- return "content" in t && !!t.content;
8588
- }
8589
- const b = (t, n = "") => {
8590
- const o = [],
8591
- e = p.get(t, n);
8592
- if (se(e)) for (let r = 0; r < e.content.length; r++) e.content[r].nodeType === "text" ? o.push(`${n}/content/${r}/value`) : o.push(...b(t, `${n}/content/${r}`));
8593
- return o;
8585
+ };
8586
+ function T(e) {
8587
+ return "content" in e && !!e.content;
8588
+ }
8589
+ var E = (e, t = "") => {
8590
+ let n = [],
8591
+ r = (0, C.get)(e, t);
8592
+ if (T(r)) for (let i = 0; i < r.content.length; i++) r.content[i].nodeType === "text" ? n.push(`${t}/content/${i}/value`) : n.push(...E(e, `${t}/content/${i}`));
8593
+ return n;
8594
8594
  },
8595
- C = ({
8596
- entityId: t,
8597
- entityType: n,
8598
- space: o,
8599
- environment: e,
8600
- field: r,
8601
- locale: s,
8602
- editorInterface: c,
8603
- fieldType: i,
8604
- targetOrigin: u,
8605
- platform: a
8595
+ D = ({
8596
+ entityId: e,
8597
+ entityType: t,
8598
+ space: n,
8599
+ environment: r,
8600
+ field: i,
8601
+ locale: a,
8602
+ editorInterface: o,
8603
+ fieldType: s,
8604
+ targetOrigin: c,
8605
+ platform: l
8606
8606
  }) => {
8607
- const d = {
8607
+ let u = {
8608
8608
  origin: "contentful.com",
8609
- href: `${`${"https://app.contentful.com"}/spaces/${o}/environments/${e}`}/${n === "Entry" ? "entries" : "assets"}/${t}/?focusedField=${r}&focusedLocale=${s}&source=vercel-content-link`,
8609
+ href: `${`${"https://app.contentful.com"}/spaces/${n}/environments/${r}`}/${t === "Entry" ? "entries" : "assets"}/${e}/?focusedField=${i}&focusedLocale=${a}&source=vercel-content-link`,
8610
8610
  contentful: {
8611
- editorInterface: c,
8612
- fieldType: i
8611
+ editorInterface: o,
8612
+ fieldType: s
8613
8613
  }
8614
8614
  };
8615
- return d;
8615
+ return u;
8616
8616
  },
8617
- B = t => ["builtin", "sidebar-builtin", "editor-builtin"].includes(t),
8618
- D = t => ce.includes(t);
8619
- function Q(t) {
8620
- if (typeof structuredClone == "function") return structuredClone(t);
8617
+ O = e => ["builtin", "sidebar-builtin", "editor-builtin"].includes(e),
8618
+ k = e => F.includes(e),
8619
+ A = ["nt_experiences", "nt_name", "nt_description", "nt_audience_id", "nt_rules", "nt_metadata", "nt_experience_id", "nt_type", "nt_config", "nt_audience", "nt_variants"],
8620
+ j = A.map(e => e.replace(/_([a-z])/g, (e, t) => t.toUpperCase())),
8621
+ M = [...A, ...j],
8622
+ N = e => M.includes(e);
8623
+ function P(e) {
8624
+ if (typeof structuredClone == "function") return structuredClone(e);
8621
8625
  try {
8622
- return JSON.parse(JSON.stringify(t));
8623
- } catch (n) {
8624
- return console.warn("Failed to clone data:", t, n), t;
8626
+ return JSON.parse(JSON.stringify(e));
8627
+ } catch (t) {
8628
+ return console.warn("Failed to clone data:", e, t), e;
8625
8629
  }
8626
8630
  }
8627
- const ce = ["singleLine", "tagEditor", "listInput", "checkbox", "richTextEditor", "multipleLine"];
8628
- function P(t, n, o, e, r, s, c) {
8629
- const i = c ? n[c] : n;
8630
- switch (t) {
8631
+ var F = ["singleLine", "tagEditor", "listInput", "checkbox", "richTextEditor", "multipleLine"];
8632
+ function I(e, t, n, r, i, a, o) {
8633
+ let s = o ? t[o] : t;
8634
+ switch (e) {
8631
8635
  case "Symbol":
8632
- {
8633
- const u = w(i, o);
8634
- p.set(e, r, u);
8635
- break;
8636
- }
8636
+ (0, C.set)(r, i, v(s, n));
8637
+ break;
8637
8638
  case "Text":
8638
- {
8639
- const u = w(i, o);
8640
- p.set(e, r, u);
8641
- break;
8642
- }
8639
+ (0, C.set)(r, i, v(s, n));
8640
+ break;
8643
8641
  case "RichText":
8644
- {
8645
- oe({
8646
- pointer: "",
8647
- mappings: s,
8648
- data: i,
8649
- hiddenStrings: o
8650
- });
8651
- break;
8652
- }
8642
+ w({
8643
+ pointer: "",
8644
+ mappings: a,
8645
+ data: s,
8646
+ hiddenStrings: n
8647
+ });
8648
+ break;
8653
8649
  case "Array":
8654
- {
8655
- const u = i.map(a => typeof a == "string" ? w(a, o) : a);
8656
- p.set(e, r, u);
8657
- break;
8658
- }
8650
+ (0, C.set)(r, i, s.map(e => typeof e == "string" ? v(e, n) : e));
8651
+ break;
8659
8652
  }
8660
8653
  }
8661
- const $ = (t, n, o, e, r) => {
8662
- if (!t.fields) return;
8663
- const {
8664
- contentSourceMaps: s
8665
- } = t.sys;
8666
- if (!s) return;
8667
- const {
8668
- mappings: c
8669
- } = s;
8670
- for (const i in c) {
8671
- const {
8672
- source: u
8673
- } = c[i],
8674
- a = t.sys.space.sys.id,
8675
- l = t.sys.environment.sys.id,
8676
- m = t.sys.id,
8677
- v = t.sys.type,
8678
- y = n[u.fieldType],
8679
- d = o[u.editorInterface];
8680
- if (B(d.widgetNamespace) && !D(d.widgetId)) continue;
8681
- const f = i.startsWith("/") ? i : `/${i}`;
8682
- if (p.has(t, f)) {
8683
- const h = p.get(t, f);
8684
- if (h === null) return;
8685
- const g = f.split("/").pop();
8686
- if (!g) {
8687
- console.error("Field name could not be extracted from the pointer", f);
8654
+ //#endregion
8655
+ //#region src/graphql/encodeGraphQLResponse.ts
8656
+ var R = (e, t, n, r, i) => {
8657
+ if (!e.fields) return;
8658
+ let {
8659
+ contentSourceMaps: a
8660
+ } = e.sys;
8661
+ if (!a) return;
8662
+ let {
8663
+ mappings: o
8664
+ } = a;
8665
+ for (let a in o) {
8666
+ let {
8667
+ source: s
8668
+ } = o[a],
8669
+ c = e.sys.space.sys.id,
8670
+ l = e.sys.environment.sys.id,
8671
+ u = e.sys.id,
8672
+ d = e.sys.type,
8673
+ f = t[s.fieldType],
8674
+ p = n[s.editorInterface];
8675
+ if (O(p.widgetNamespace) && !k(p.widgetId)) continue;
8676
+ let m = a.startsWith("/") ? a : `/${a}`;
8677
+ if ((0, C.has)(e, m)) {
8678
+ let t = (0, C.get)(e, m);
8679
+ if (t === null) return;
8680
+ let n = m.split("/").pop();
8681
+ if (!n) {
8682
+ console.error("Field name could not be extracted from the pointer", m);
8688
8683
  return;
8689
8684
  }
8690
- const A = t.sys.locale;
8691
- if (A) {
8692
- const E = C({
8693
- entityId: m,
8694
- entityType: v,
8695
- space: a,
8696
- environment: l,
8697
- field: g,
8698
- locale: A,
8699
- editorInterface: d,
8700
- fieldType: y,
8701
- targetOrigin: e,
8702
- platform: r
8703
- });
8704
- P(y, h, E, t, f, c);
8705
- } else Object.keys(h).forEach(S => {
8706
- const T = C({
8707
- entityId: m,
8708
- entityType: v,
8709
- space: a,
8685
+ if (N(n)) continue;
8686
+ let a = e.sys.locale;
8687
+ a ? I(f, t, D({
8688
+ entityId: u,
8689
+ entityType: d,
8690
+ space: c,
8691
+ environment: l,
8692
+ field: n,
8693
+ locale: a,
8694
+ editorInterface: p,
8695
+ fieldType: f,
8696
+ targetOrigin: r,
8697
+ platform: i
8698
+ }), e, m, o) : Object.keys(t).forEach(a => {
8699
+ let s = D({
8700
+ entityId: u,
8701
+ entityType: d,
8702
+ space: c,
8710
8703
  environment: l,
8711
- field: g,
8712
- locale: S,
8713
- editorInterface: d,
8714
- fieldType: y,
8715
- targetOrigin: e,
8716
- platform: r
8704
+ field: n,
8705
+ locale: a,
8706
+ editorInterface: p,
8707
+ fieldType: f,
8708
+ targetOrigin: r,
8709
+ platform: i
8717
8710
  });
8718
- P(y, h, T, t, `${f}/${S}`, c, S);
8711
+ I(f, t, s, e, `${m}/${a}`, o, a);
8719
8712
  });
8720
8713
  }
8721
8714
  }
8722
8715
  },
8723
- le = (t, n, o) => {
8724
- var r;
8725
- const e = Q(t);
8726
- if (e.sys && "items" in e) {
8727
- const s = e;
8728
- if (!((r = s.sys) != null && r.contentSourceMapsLookup)) return s;
8729
- const {
8716
+ z = (e, t, n) => {
8717
+ let r = P(e);
8718
+ if (r.sys && "items" in r) {
8719
+ var i;
8720
+ let e = r;
8721
+ if (!((i = e.sys) != null && i.contentSourceMapsLookup)) return e;
8722
+ let {
8730
8723
  contentSourceMapsLookup: {
8731
- fieldTypes: c,
8732
- editorInterfaces: i
8724
+ fieldTypes: a,
8725
+ editorInterfaces: o
8733
8726
  }
8734
- } = s.sys,
8727
+ } = e.sys,
8735
8728
  {
8736
- items: u,
8737
- includes: a
8738
- } = s;
8739
- u.forEach(l => $(l, c, i, n, o)), a && a.Entry && a.Entry.forEach(l => $(l, c, i, n, o)), a && a.Asset && a.Asset.forEach(l => $(l, c, i, n, o));
8729
+ items: s,
8730
+ includes: c
8731
+ } = e;
8732
+ s.forEach(e => R(e, a, o, t, n)), c && c.Entry && c.Entry.forEach(e => R(e, a, o, t, n)), c && c.Asset && c.Asset.forEach(e => R(e, a, o, t, n));
8740
8733
  } else {
8741
- const s = e;
8742
- if (!s.sys.contentSourceMapsLookup) return console.error("Content source maps lookup data is missing"), s;
8743
- $(s, s.sys.contentSourceMapsLookup.fieldTypes, s.sys.contentSourceMapsLookup.editorInterfaces, n, o);
8734
+ let e = r;
8735
+ if (!e.sys.contentSourceMapsLookup) return console.error("Content source maps lookup data is missing"), e;
8736
+ R(e, e.sys.contentSourceMapsLookup.fieldTypes, e.sys.contentSourceMapsLookup.editorInterfaces, t, n);
8744
8737
  }
8745
- return e;
8738
+ return r;
8746
8739
  };
8747
8740
 
8748
8741
  function _toConsumableArray(r) {
@@ -9550,7 +9543,7 @@ var contentful = (function (exports) {
9550
9543
  var _a;
9551
9544
  const includeContentSourceMaps = (_a = config === null || config === void 0 ? void 0 : config.params) === null || _a === void 0 ? void 0 : _a.includeContentSourceMaps;
9552
9545
  if (includeContentSourceMaps) {
9553
- return le(data);
9546
+ return z(data);
9554
9547
  }
9555
9548
  return data;
9556
9549
  }