@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 +3 -3
- package/changes.json +2 -2
- package/dist/contentful.browser.js +262 -269
- package/dist/contentful.browser.min.js +1 -1
- package/dist/contentful.cjs +262 -269
- package/dist/stats-browser-min.html +1 -1
- package/package.json +6 -6
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.
|
|
17
|
-
| Processed | 2026-
|
|
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.
|
|
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.
|
|
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-
|
|
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
|
|
456
|
-
const FormDataCtor = typeof G
|
|
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
|
-
|
|
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
|
-
|
|
8444
|
+
n = {
|
|
8441
8445
|
0: 8203,
|
|
8442
8446
|
1: 8204,
|
|
8443
8447
|
2: 8205,
|
|
8444
8448
|
3: 65279
|
|
8445
8449
|
},
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
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(
|
|
8461
|
-
} catch (
|
|
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
|
|
8467
|
-
return
|
|
8468
|
-
}
|
|
8469
|
-
Object.fromEntries(Object.entries(
|
|
8470
|
-
Object.fromEntries(Object.entries(
|
|
8471
|
-
`${Object.values(
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
n = Object.prototype.
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
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
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
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
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
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
|
-
|
|
8596
|
-
entityId:
|
|
8597
|
-
entityType:
|
|
8598
|
-
space:
|
|
8599
|
-
environment:
|
|
8600
|
-
field:
|
|
8601
|
-
locale:
|
|
8602
|
-
editorInterface:
|
|
8603
|
-
fieldType:
|
|
8604
|
-
targetOrigin:
|
|
8605
|
-
platform:
|
|
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
|
-
|
|
8607
|
+
let u = {
|
|
8608
8608
|
origin: "contentful.com",
|
|
8609
|
-
href: `${`${"https://app.contentful.com"}/spaces/${
|
|
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:
|
|
8612
|
-
fieldType:
|
|
8611
|
+
editorInterface: o,
|
|
8612
|
+
fieldType: s
|
|
8613
8613
|
}
|
|
8614
8614
|
};
|
|
8615
|
-
return
|
|
8615
|
+
return u;
|
|
8616
8616
|
},
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
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(
|
|
8623
|
-
} catch (
|
|
8624
|
-
return console.warn("Failed to clone data:",
|
|
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
|
-
|
|
8628
|
-
function
|
|
8629
|
-
|
|
8630
|
-
switch (
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
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
|
-
|
|
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
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
d =
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
if (p.
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
if (
|
|
8687
|
-
|
|
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
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
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:
|
|
8712
|
-
locale:
|
|
8713
|
-
editorInterface:
|
|
8714
|
-
fieldType:
|
|
8715
|
-
targetOrigin:
|
|
8716
|
-
platform:
|
|
8704
|
+
field: n,
|
|
8705
|
+
locale: a,
|
|
8706
|
+
editorInterface: p,
|
|
8707
|
+
fieldType: f,
|
|
8708
|
+
targetOrigin: r,
|
|
8709
|
+
platform: i
|
|
8717
8710
|
});
|
|
8718
|
-
|
|
8711
|
+
I(f, t, s, e, `${m}/${a}`, o, a);
|
|
8719
8712
|
});
|
|
8720
8713
|
}
|
|
8721
8714
|
}
|
|
8722
8715
|
},
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
if (!((
|
|
8729
|
-
|
|
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:
|
|
8732
|
-
editorInterfaces:
|
|
8724
|
+
fieldTypes: a,
|
|
8725
|
+
editorInterfaces: o
|
|
8733
8726
|
}
|
|
8734
|
-
} =
|
|
8727
|
+
} = e.sys,
|
|
8735
8728
|
{
|
|
8736
|
-
items:
|
|
8737
|
-
includes:
|
|
8738
|
-
} =
|
|
8739
|
-
|
|
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
|
-
|
|
8742
|
-
if (!
|
|
8743
|
-
|
|
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
|
|
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
|
|
9546
|
+
return z(data);
|
|
9554
9547
|
}
|
|
9555
9548
|
return data;
|
|
9556
9549
|
}
|