@contentstack/studio-client 3.1.0 → 4.0.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 +21 -0
- package/dist/breakpoints/BreakpointManager.js +7 -5
- package/dist/breakpoints/BreakpointManager.js.map +1 -1
- package/dist/breakpoints/breakpoint.js +3 -2
- package/dist/breakpoints/breakpoint.js.map +1 -1
- package/dist/canvas/canvas.utils.js +13 -1
- package/dist/canvas/canvas.utils.js.map +1 -1
- package/dist/composable-studio/build-scoped-data.js +53 -31
- package/dist/composable-studio/build-scoped-data.js.map +1 -1
- package/dist/composable-studio/collect-data-needs.js +22 -4
- package/dist/composable-studio/collect-data-needs.js.map +1 -1
- package/dist/composable-studio/sdk.js +1288 -453
- package/dist/composable-studio/sdk.js.map +1 -1
- package/dist/composable-studio/section-data.js +316 -0
- package/dist/composable-studio/section-data.js.map +1 -0
- package/dist/composable-studio/studio-intelligence.manager.js +5 -2
- package/dist/composable-studio/studio-intelligence.manager.js.map +1 -1
- package/dist/config/config.schema.js +45 -8
- package/dist/config/config.schema.js.map +1 -1
- package/dist/config/default-config.js +10 -3
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/process-user-config.js +37 -1
- package/dist/config/process-user-config.js.map +1 -1
- package/dist/config/stack-sdk-wrapper.js +71 -2
- package/dist/config/stack-sdk-wrapper.js.map +1 -1
- package/dist/context-menu/context-menu.js +5 -2
- package/dist/context-menu/context-menu.js.map +1 -1
- package/dist/design/handle-active-style-change.js +3 -2
- package/dist/design/handle-active-style-change.js.map +1 -1
- package/dist/dnd/dnd-event.js +2 -1
- package/dist/dnd/dnd-event.js.map +1 -1
- package/dist/dnd/dnd-manager.js +3 -1
- package/dist/dnd/dnd-manager.js.map +1 -1
- package/dist/editor.d.ts +250 -0
- package/dist/editor.js +11 -0
- package/dist/editor.js.map +1 -0
- package/dist/get-active-node-screenshot/get-node-screenshot-event.js +2 -1
- package/dist/get-active-node-screenshot/get-node-screenshot-event.js.map +1 -1
- package/dist/hidden-element-notification/hidden-element-notification-event.js +2 -1
- package/dist/hidden-element-notification/hidden-element-notification-event.js.map +1 -1
- package/dist/highlight-node/highlight-node-manager.js +225 -15
- package/dist/highlight-node/highlight-node-manager.js.map +1 -1
- package/dist/highlight-node/highlight-node.js +42 -6
- package/dist/highlight-node/highlight-node.js.map +1 -1
- package/dist/highlight-spacing/highlight-spacing-events.js +2 -1
- package/dist/highlight-spacing/highlight-spacing-events.js.map +1 -1
- package/dist/index.d.ts +1334 -467
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/url-change/url-change.js +4 -3
- package/dist/url-change/url-change.js.map +1 -1
- package/dist/url-metadata/build-template-query.js +27 -6
- package/dist/url-metadata/build-template-query.js.map +1 -1
- package/dist/utils/canvas.js +2 -1
- package/dist/utils/canvas.js.map +1 -1
- package/dist/utils/check-bindings.js +233 -0
- package/dist/utils/check-bindings.js.map +1 -0
- package/dist/utils/classify-response-error.js +288 -0
- package/dist/utils/classify-response-error.js.map +1 -0
- package/dist/utils/composable-studio-error.js +36 -20
- package/dist/utils/composable-studio-error.js.map +1 -1
- package/dist/utils/composition-not-found.js +52 -0
- package/dist/utils/composition-not-found.js.map +1 -0
- package/dist/utils/conditionBlock.js +80 -3
- package/dist/utils/conditionBlock.js.map +1 -1
- package/dist/utils/constants.js +21 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/degraded-finding.js +166 -0
- package/dist/utils/degraded-finding.js.map +1 -0
- package/dist/utils/editor-mode.js +1 -1
- package/dist/utils/http-error.constants.js +12 -46
- package/dist/utils/http-error.constants.js.map +1 -1
- package/dist/utils/include-path-rules.js +141 -0
- package/dist/utils/include-path-rules.js.map +1 -0
- package/dist/utils/is-composition-being-edited.js +1 -1
- package/dist/utils/is-inside-iframe.js +1 -1
- package/dist/utils/is-inside-visual-builder-frame.js +1 -1
- package/dist/utils/parse-ui.js +60 -0
- package/dist/utils/parse-ui.js.map +1 -0
- package/dist/utils/query-param.js +1 -1
- package/dist/utils/query-param.js.map +1 -1
- package/dist/utils/query-url-budget.js +79 -0
- package/dist/utils/query-url-budget.js.map +1 -0
- package/dist/utils/reference-stub.js +75 -0
- package/dist/utils/reference-stub.js.map +1 -0
- package/dist/utils/reference_fetcher.js +59 -4
- package/dist/utils/reference_fetcher.js.map +1 -1
- package/dist/utils/require-stack.js +141 -0
- package/dist/utils/require-stack.js.map +1 -0
- package/dist/utils/served-by.js +33 -0
- package/dist/utils/served-by.js.map +1 -0
- package/dist/utils/spec-analyzer.js +2 -2
- package/dist/utils/spec-analyzer.js.map +1 -1
- package/dist/utils/studio-error-codes.js +253 -0
- package/dist/utils/studio-error-codes.js.map +1 -0
- package/dist/utils/studio-error.js +122 -0
- package/dist/utils/studio-error.js.map +1 -0
- package/dist/utils/studio-messaging.js +25 -0
- package/dist/utils/studio-messaging.js.map +1 -0
- package/dist/visual-builder/composition-save-event.js +2 -1
- package/dist/visual-builder/composition-save-event.js.map +1 -1
- package/package.json +19 -7
- package/LICENSE +0 -21
- package/dist/utils/error-messages.default.js +0 -141
- package/dist/utils/error-messages.default.js.map +0 -1
- package/dist/utils/error-messages.js +0 -47
- package/dist/utils/error-messages.js.map +0 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an unresolved reference looks like, in one place.
|
|
3
|
+
*
|
|
4
|
+
* Contentstack returns a reference field either as the entry it points at or as
|
|
5
|
+
* a bare `{uid, _content_type_uid}` pointer, depending on how deep the request
|
|
6
|
+
* asked it to follow. The pointer is the failure: anything bound past that
|
|
7
|
+
* point has nothing to read and renders blank.
|
|
8
|
+
*
|
|
9
|
+
* The test is on the key set rather than on a flag, because there is no flag.
|
|
10
|
+
* It lives here because two callers need exactly the same answer and had begun
|
|
11
|
+
* to disagree — section scoping swaps a stub for its resolved entry, and the
|
|
12
|
+
* reporting counts the ones nothing could swap.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Keys the delivery and preview services add to an entry themselves.
|
|
16
|
+
*
|
|
17
|
+
* A stub carrying only these is still a stub. `$` earns its place the hard way:
|
|
18
|
+
* the Preview service stamps live-preview edit tags onto every entry and every
|
|
19
|
+
* pointer in the editor, so a bare pointer arrives as three keys — and reading
|
|
20
|
+
* that third key as content left a section's binding resolved to the pointer
|
|
21
|
+
* instead of the entry.
|
|
22
|
+
*/
|
|
23
|
+
const META_KEYS = new Set([
|
|
24
|
+
"uid",
|
|
25
|
+
"_content_type_uid",
|
|
26
|
+
"_version",
|
|
27
|
+
"locale",
|
|
28
|
+
"ACL",
|
|
29
|
+
"_metadata",
|
|
30
|
+
"$",
|
|
31
|
+
]);
|
|
32
|
+
/** Whether this value is shaped like a reference at all, resolved or not. */
|
|
33
|
+
function isReferenceStub(value) {
|
|
34
|
+
return (!!value &&
|
|
35
|
+
typeof value === "object" &&
|
|
36
|
+
!Array.isArray(value) &&
|
|
37
|
+
typeof value.uid === "string" &&
|
|
38
|
+
typeof value._content_type_uid === "string");
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Whether this is a pointer that was never followed.
|
|
42
|
+
*
|
|
43
|
+
* A resolved reference is the whole entry, so any key outside the metadata set
|
|
44
|
+
* means the payload arrived and there is nothing to report.
|
|
45
|
+
*/
|
|
46
|
+
function isUnresolvedReference(value) {
|
|
47
|
+
if (!isReferenceStub(value))
|
|
48
|
+
return false;
|
|
49
|
+
return !Object.keys(value).some((key) => !META_KEYS.has(key));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* How many references in this data came back as pointers.
|
|
53
|
+
*
|
|
54
|
+
* Counted rather than listed. One composition nesting past the include depth
|
|
55
|
+
* produces a pointer at every leaf of a repeated field, so naming each one
|
|
56
|
+
* would print a hundred lines of the same fact — and the number is what tells
|
|
57
|
+
* the reader whether this is one deleted entry or a whole branch of the page.
|
|
58
|
+
*
|
|
59
|
+
* A pointer is never recursed into: by definition it holds nothing to walk. The
|
|
60
|
+
* depth cap is a guard on the walk itself rather than on the content, so a
|
|
61
|
+
* value that somehow refers back to itself cannot spin.
|
|
62
|
+
*/
|
|
63
|
+
function countUnresolvedReferences(value, depth = 0) {
|
|
64
|
+
if (depth > 20 || !value || typeof value !== "object")
|
|
65
|
+
return 0;
|
|
66
|
+
if (Array.isArray(value)) {
|
|
67
|
+
return value.reduce((total, item) => total + countUnresolvedReferences(item, depth + 1), 0);
|
|
68
|
+
}
|
|
69
|
+
if (isUnresolvedReference(value))
|
|
70
|
+
return 1;
|
|
71
|
+
return Object.values(value).reduce((total, item) => total + countUnresolvedReferences(item, depth + 1), 0);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { countUnresolvedReferences, isReferenceStub, isUnresolvedReference };
|
|
75
|
+
//# sourceMappingURL=reference-stub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-stub.js","sources":["../../src/utils/reference-stub.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;AAYG;AAEH;;;;;;;;AAQG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACxB,KAAK;IACL,mBAAmB;IACnB,UAAU;IACV,QAAQ;IACR,KAAK;IACL,WAAW;IACX,GAAG;AACJ,CAAA,CAAC;AAEF;AACM,SAAU,eAAe,CAC7B,KAAU,EAAA;IAEV,QACE,CAAC,CAAC,KAAK;QACP,OAAO,KAAK,KAAK,QAAQ;AACzB,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AACrB,QAAA,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;AAC7B,QAAA,OAAO,KAAK,CAAC,iBAAiB,KAAK,QAAQ;AAE/C;AAEA;;;;;AAKG;AACG,SAAU,qBAAqB,CAAC,KAAU,EAAA;AAC9C,IAAA,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,KAAK;IACzC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC/D;AAEA;;;;;;;;;;;AAWG;SACa,yBAAyB,CAAC,KAAc,EAAE,KAAK,GAAG,CAAC,EAAA;IACjE,IAAI,KAAK,GAAG,EAAE,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;AAAE,QAAA,OAAO,CAAC;AAE/D,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACxB,OAAO,KAAK,CAAC,MAAM,CACjB,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,GAAG,yBAAyB,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,EACnE,CAAC,CACF;IACH;IAEA,IAAI,qBAAqB,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,CAAC;AAE1C,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAChC,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,GAAG,yBAAyB,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,EACnE,CAAC,CACF;AACH;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { parseUI } from './parse-ui.js';
|
|
1
2
|
import { DATA_SOURCES } from '@contentstack/studio-registry';
|
|
2
3
|
import { uniq, merge } from 'lodash-es';
|
|
3
4
|
import { getBindingStringForCS } from './sdk.js';
|
|
4
|
-
import { decompressSpec } from '../studio-internal/dist/utils/spec-compression.js';
|
|
5
5
|
|
|
6
6
|
// Strip numeric array indexes and "entries" array-wrapper segments so that
|
|
7
7
|
// binding-traversal paths like "entries.0.cross_links" or "entries.cross_links"
|
|
@@ -105,8 +105,7 @@ const getExtendedParams = (ct_uid, options) => {
|
|
|
105
105
|
};
|
|
106
106
|
const getEntriesQueries = (compositionEntry, connectedContentTypeUid, options) => {
|
|
107
107
|
const { ui: uiString } = compositionEntry;
|
|
108
|
-
|
|
109
|
-
const ui = decompressSpec(uiString);
|
|
108
|
+
const ui = parseUI(uiString, compositionEntry.composable_uid);
|
|
110
109
|
const templateBindings = {
|
|
111
110
|
path: {},
|
|
112
111
|
};
|
|
@@ -144,6 +143,13 @@ const getEntriesQueries = (compositionEntry, connectedContentTypeUid, options) =
|
|
|
144
143
|
const blockUid = node.metadata.condition.value;
|
|
145
144
|
if (typeof blockUid === "string") {
|
|
146
145
|
runningPath.push(blockUid);
|
|
146
|
+
// Mirror the block scope in the only[] tree. Bindings inside the
|
|
147
|
+
// condition omit the block key, so without this their projection
|
|
148
|
+
// parents land one segment short and the CDA returns uid stubs.
|
|
149
|
+
if (!runningRepeaterNode[blockUid]) {
|
|
150
|
+
runningRepeaterNode[blockUid] = {};
|
|
151
|
+
}
|
|
152
|
+
runningRepeaterNode = runningRepeaterNode[blockUid];
|
|
147
153
|
}
|
|
148
154
|
}
|
|
149
155
|
if (node.metadata?.condition?.type === "reference") {
|
|
@@ -194,7 +200,14 @@ const getEntriesQueries = (compositionEntry, connectedContentTypeUid, options) =
|
|
|
194
200
|
runningPath.push(getBindingStringForCS(items.binding));
|
|
195
201
|
const type = items.binding.type;
|
|
196
202
|
if (type === DATA_SOURCES.TEMPLATE) {
|
|
197
|
-
|
|
203
|
+
const bindingStr = getBindingStringForCS(items.binding);
|
|
204
|
+
if (!runningRepeaterNode[bindingStr]) {
|
|
205
|
+
runningRepeaterNode[bindingStr] = {};
|
|
206
|
+
}
|
|
207
|
+
// Descend so item bindings project under the iterated field, as the
|
|
208
|
+
// REPEATER branch below does. Otherwise they land at the repeater's
|
|
209
|
+
// own level and the referenced entries get no field projections.
|
|
210
|
+
runningRepeaterNode = runningRepeaterNode[bindingStr];
|
|
198
211
|
}
|
|
199
212
|
else if (type === DATA_SOURCES.CONTENTSTACK) {
|
|
200
213
|
const { _content_type_uid, uid, path } = items.binding
|
|
@@ -263,6 +276,35 @@ const getEntriesQueries = (compositionEntry, connectedContentTypeUid, options) =
|
|
|
263
276
|
}
|
|
264
277
|
processBinding(prop.binding, templateBindings, staticBindings, runningRepeaterNode);
|
|
265
278
|
}
|
|
279
|
+
// Style-path bindings — `metadata.bindings["styles.<group>.responsiveStyles
|
|
280
|
+
// .<bp>.<prop>"]` — are how a design prop binds to data. They carry the same
|
|
281
|
+
// BindingType shape as a prop binding and name the same kind of field, so
|
|
282
|
+
// the projection has to see them: a field only a design prop asks for was
|
|
283
|
+
// never added to only[]/include[], came back missing, and the bound prop
|
|
284
|
+
// rendered nothing at all. The editor hid this, since it fetches every
|
|
285
|
+
// field and skips projections entirely.
|
|
286
|
+
const styleBindings = node?.metadata?.bindings;
|
|
287
|
+
if (styleBindings && !isRepeaterNode) {
|
|
288
|
+
for (const bindingKey in styleBindings) {
|
|
289
|
+
if (!bindingKey.startsWith("styles."))
|
|
290
|
+
continue;
|
|
291
|
+
const binding = styleBindings[bindingKey];
|
|
292
|
+
const type = binding?.type;
|
|
293
|
+
if (type !== DATA_SOURCES.TEMPLATE &&
|
|
294
|
+
type !== DATA_SOURCES.CONTENTSTACK &&
|
|
295
|
+
type !== DATA_SOURCES.REPEATER) {
|
|
296
|
+
continue;
|
|
297
|
+
}
|
|
298
|
+
// Mirrors the prop loop: a repeater-typed binding names a field of the
|
|
299
|
+
// enclosing repeater's item, which is projected through that repeater's
|
|
300
|
+
// own map rather than as a path of its own.
|
|
301
|
+
if (type === DATA_SOURCES.REPEATER) {
|
|
302
|
+
runningRepeaterNode[getBindingStringForCS(binding)] = {};
|
|
303
|
+
continue;
|
|
304
|
+
}
|
|
305
|
+
processBinding(binding, templateBindings, staticBindings, runningRepeaterNode);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
266
308
|
for (const slotUID in node.slots) {
|
|
267
309
|
const slotChildrens = node.slots[slotUID];
|
|
268
310
|
for (const slotNode of slotChildrens) {
|
|
@@ -315,6 +357,19 @@ const getEntriesQueries = (compositionEntry, connectedContentTypeUid, options) =
|
|
|
315
357
|
...sanitizeIncludePaths(templateRepeaterRefPaths),
|
|
316
358
|
...extendedReferencesPath,
|
|
317
359
|
]),
|
|
360
|
+
/**
|
|
361
|
+
* The same set minus anything this SDK worked out for itself — only what
|
|
362
|
+
* Studio (or the API) persisted on the composition.
|
|
363
|
+
*
|
|
364
|
+
* Studio holds the content type schemas and keeps only paths that end at a
|
|
365
|
+
* reference. This SDK has no schema and cannot make that check, so what it
|
|
366
|
+
* derives is unfiltered: measured on one page it added 23 paths of which 22
|
|
367
|
+
* addressed nothing, and the one real reference came from a section's
|
|
368
|
+
* persisted set that we prefixed rather than derived. Since the Delivery API
|
|
369
|
+
* refuses a request carrying more than 100 include[] paths, those 22 are not
|
|
370
|
+
* free (ADR 0018).
|
|
371
|
+
*/
|
|
372
|
+
persistedReferencesPath: uniq(extendedReferencesPath),
|
|
318
373
|
templateOnlyKeys: removeRedundantPathsForTemplates(uniq([...templateOnlyKeys, ...repeaterOnlyKeys, ...extendedOnlyKeys])),
|
|
319
374
|
contentstackEntriesReferencesPath,
|
|
320
375
|
contentstackEntriesOnlyKeys: removeRedundantPathsForContentstackEntries(contentstackEntriesOnlyKeys),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference_fetcher.js","sources":["../../src/utils/reference_fetcher.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAaA;AACA;AACA;AACA,SAAS,mBAAmB,CAAC,CAAS,EAAA;IACpC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC;IAC1B,MAAM,MAAM,GAAa,EAAE;AAC3B,IAAA,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;QACvB,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,SAAS;YAAE;AAC5C,QAAA,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;IAClB;AACA,IAAA,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACzB;AACA,SAAS,oBAAoB,CAAC,KAA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I,aAAa,CAAC,OAAO,EAAE,EAAE;AACrD,QAAA,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;YACrB,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC7B,QAAA,CAAC,CAAC;IACJ;AACA,IAAA,OAAO,MAAM;AACf;AAEA;;;;AAIG;AACG,SAAU,gCAAgC,CAAC,KAAyB,EAAA;AACxE,IAAA,MAAM,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC;;AAE1C,IAAA,KAAK,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,aAAa,CAAC,OAAO,EAAE,EAAE;QACrD,aAAa,CAAC,GAAG,CAAC,MAAM,EAAE,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAC9D;;AAEA,IAAA,OAAO,YAAY,CAAC,aAAa,CAAC;AACpC;AAEA;;;;AAIG;AACG,SAAU,0CAA0C,CACxD,2BAGC,EAAA;AAED,IAAA,MAAM,MAAM,GAAuD;AACjE,QAAA,GAAG,2BAA2B;KAC/B;AACD,IAAA,KAAK,MAAM,iBAAiB,IAAI,2BAA2B,EAAE;QAC3D,KAAK,MAAM,SAAS,IAAI,2BAA2B,CAAC,iBAAiB,CAAC,EAAE;YACtE,MAAM,QAAQ,GACZ,2BAA2B,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC;;AAE3D,YAAA,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC;gBAClC,gCAAgC,CAAC,QAAQ,CAAC;QAC9C;IACF;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { createStudioError, buildStudioErrorContext } from './studio-error.js';
|
|
2
|
+
import { StudioErrorCode } from './studio-error-codes.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The connection, or the diagnosis for whatever it is missing.
|
|
6
|
+
*
|
|
7
|
+
* All of this is knowable the moment the configuration arrives, and none of it
|
|
8
|
+
* is an error until something needs the connection: a site that wires up Studio
|
|
9
|
+
* and renders no composition on this route is legitimate. So the defects are
|
|
10
|
+
* recorded at setup and raised here, at the first call that cannot proceed.
|
|
11
|
+
*
|
|
12
|
+
* Nothing here introduces a failure. Every case already failed — a missing
|
|
13
|
+
* stack as a "not a function" crash, a missing api key as a 412 read as a stack
|
|
14
|
+
* that is not on the host, a missing environment as an overloaded 422, a
|
|
15
|
+
* missing delivery token as the 401 the retry policy destroys. What changes is
|
|
16
|
+
* that they are named where the evidence is unambiguous, before the request.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Returns a stack the SDK can actually query, raising the diagnosis for the
|
|
20
|
+
* first thing it is missing.
|
|
21
|
+
*
|
|
22
|
+
* Every case asserts rather than ranks: the value was looked for and either was
|
|
23
|
+
* or was not there, so each carries exactly one cause.
|
|
24
|
+
*
|
|
25
|
+
* The three credential cases are only reachable on a JavaScript-SDK stack. The
|
|
26
|
+
* TypeScript delivery factory throws while constructing a stack without them,
|
|
27
|
+
* in the caller's own code, so a TypeScript stack that reaches us at all
|
|
28
|
+
* carries all three.
|
|
29
|
+
*/
|
|
30
|
+
function requireStack(config) {
|
|
31
|
+
const stack = config.stackSdk;
|
|
32
|
+
if (!stack) {
|
|
33
|
+
throw createStudioError({
|
|
34
|
+
code: StudioErrorCode.STACK_SDK_MISSING,
|
|
35
|
+
headline: "Composable Studio has no Contentstack stack to query.",
|
|
36
|
+
causes: [
|
|
37
|
+
{
|
|
38
|
+
cause: "No Contentstack stack was passed to Studio.",
|
|
39
|
+
fix: "Pass a stack to the Studio provider before fetching a composition.",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
context: buildStudioErrorContext(config),
|
|
43
|
+
findings: { lookedIn: "configuration" },
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
if (!stack.apiKey) {
|
|
47
|
+
throw createStudioError({
|
|
48
|
+
code: StudioErrorCode.API_KEY_MISSING,
|
|
49
|
+
headline: "The Contentstack stack passed to Composable Studio has no api key.",
|
|
50
|
+
causes: [
|
|
51
|
+
{
|
|
52
|
+
cause: "The stack was built without an api key.",
|
|
53
|
+
fix: "Set the api key on the Contentstack stack you pass to Studio.",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
context: buildStudioErrorContext(config),
|
|
57
|
+
findings: { lookedIn: "configuration" },
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (!stack.deliveryToken) {
|
|
61
|
+
throw createStudioError({
|
|
62
|
+
code: StudioErrorCode.DELIVERY_TOKEN_MISSING,
|
|
63
|
+
headline: "The Contentstack stack passed to Composable Studio has no delivery token.",
|
|
64
|
+
causes: [
|
|
65
|
+
{
|
|
66
|
+
cause: "The stack was built without a delivery token.",
|
|
67
|
+
fix: "Set the delivery token on the Contentstack stack you pass to Studio.",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
context: buildStudioErrorContext(config),
|
|
71
|
+
findings: { lookedIn: "configuration" },
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (!stack.environment) {
|
|
75
|
+
throw createStudioError({
|
|
76
|
+
code: StudioErrorCode.ENVIRONMENT_MISSING,
|
|
77
|
+
// The second sentence is the whole point of this one: the value reads as
|
|
78
|
+
// optional and is not, which is the mistake that produces the case.
|
|
79
|
+
headline: "The Contentstack stack passed to Composable Studio has no environment. Studio queries published content per environment, so this is required.",
|
|
80
|
+
causes: [
|
|
81
|
+
{
|
|
82
|
+
cause: "The stack was built without an environment.",
|
|
83
|
+
fix: "Set the environment on the Contentstack stack you pass to Studio.",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
context: buildStudioErrorContext(config),
|
|
87
|
+
findings: { lookedIn: "configuration" },
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
const unusableHost = whyHostIsUnusable(stack.host);
|
|
91
|
+
if (unusableHost) {
|
|
92
|
+
throw createStudioError({
|
|
93
|
+
code: StudioErrorCode.HOST_UNUSABLE,
|
|
94
|
+
headline: `The Contentstack host "${stack.host}" cannot be used: ${unusableHost === "unparseable"
|
|
95
|
+
? "it is not a valid address"
|
|
96
|
+
: "the page is served over https and the host is http, so the browser will block the request"}.`,
|
|
97
|
+
causes: [
|
|
98
|
+
{
|
|
99
|
+
cause: "The configured Contentstack address cannot be reached as written.",
|
|
100
|
+
fix: "Set a valid Contentstack address for this site.",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
context: buildStudioErrorContext(config),
|
|
104
|
+
findings: { host: stack.host ?? "", reason: unusableHost },
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return stack;
|
|
108
|
+
}
|
|
109
|
+
/** A scheme at the front, which decides whether the value carries its own. */
|
|
110
|
+
const HAS_SCHEME = /^[a-z][a-z0-9+.-]*:\/\//i;
|
|
111
|
+
/**
|
|
112
|
+
* What can be proved about a configured host, or `undefined` when nothing can.
|
|
113
|
+
*
|
|
114
|
+
* Absence proves nothing, so an unset host is left alone. Neither is there any
|
|
115
|
+
* test for a Contentstack-shaped hostname: we can show an address cannot work,
|
|
116
|
+
* never that it is the wrong one, and any shape test breaks on non-production
|
|
117
|
+
* stacks and on customers' own CDNs.
|
|
118
|
+
*/
|
|
119
|
+
function whyHostIsUnusable(host) {
|
|
120
|
+
if (!host || !host.trim())
|
|
121
|
+
return undefined;
|
|
122
|
+
// A bare hostname is what both SDKs actually carry, and it is not an http
|
|
123
|
+
// address — so only a value that states `http://` can be mixed content.
|
|
124
|
+
const carriesScheme = HAS_SCHEME.test(host);
|
|
125
|
+
let parsed;
|
|
126
|
+
try {
|
|
127
|
+
parsed = new URL(carriesScheme ? host : `https://${host}`);
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
return "unparseable";
|
|
131
|
+
}
|
|
132
|
+
if (!carriesScheme || parsed.protocol !== "http:")
|
|
133
|
+
return undefined;
|
|
134
|
+
// Browser-only, and gated on the page really being https: a local site served
|
|
135
|
+
// over http may talk to an http host all it likes.
|
|
136
|
+
const pageProtocol = globalThis.location?.protocol;
|
|
137
|
+
return pageProtocol === "https:" ? "blocked-as-mixed-content" : undefined;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export { requireStack };
|
|
141
|
+
//# sourceMappingURL=require-stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-stack.js","sources":["../../src/utils/require-stack.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAOH;;;;;;;;;;;AAWG;AACG,SAAU,YAAY,CAAC,MAAc,EAAA;AACzC,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ;IAE7B,IAAI,CAAC,KAAK,EAAE;AACV,QAAA,MAAM,iBAAiB,CAAC;YACtB,IAAI,EAAE,eAAe,CAAC,iBAAiB;AACvC,YAAA,QAAQ,EAAE,uDAAuD;AACjE,YAAA,MAAM,EAAE;AACN,gBAAA;AACE,oBAAA,KAAK,EAAE,6CAA6C;AACpD,oBAAA,GAAG,EAAE,oEAAoE;AAC1E,iBAAA;AACF,aAAA;AACD,YAAA,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC;AACxC,YAAA,QAAQ,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE;AACxC,SAAA,CAAC;IACJ;AAEA,IAAA,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;AACjB,QAAA,MAAM,iBAAiB,CAAC;YACtB,IAAI,EAAE,eAAe,CAAC,eAAe;AACrC,YAAA,QAAQ,EACN,oEAAoE;AACtE,YAAA,MAAM,EAAE;AACN,gBAAA;AACE,oBAAA,KAAK,EAAE,yCAAyC;AAChD,oBAAA,GAAG,EAAE,+DAA+D;AACrE,iBAAA;AACF,aAAA;AACD,YAAA,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC;AACxC,YAAA,QAAQ,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE;AACxC,SAAA,CAAC;IACJ;AAEA,IAAA,IAAI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AAuB,CAAC,MAAM,CAAC;AACxC,YAAA,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;AAC3D,SAAA,CAAC;IACJ;AAEA,IAAA,OAAO,KAAK;AACd;AAEA;AACA,MAAM,UAAU,GAAG,0BAA0B;AAE7C;;;;;;;AAOG;AACH,SAAS,iBAAiB,CACxB,IAAwB,EAAA;AAExB,IAAA,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;AAAE,QAAA,OAAO,SAAS;;;IAI3C,MAAM,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3C,IAAA,IAAI,MAAW;AACf,IAAA,IAAI;AACF,QAAA,MAAM,GAAG,IAAI,GAAG,CAAC,aAAa,GAAG,IAAI,GAAG,CAAA,QAAA,EAAW,IAAI,CAAA,CAAE,CAAC;IAC5D;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,aAAa;IACtB;AAEA,IAAA,IAAI,CAAC,aAAa,IAAI,MAAM,CAAC,QAAQ,KAAK,OAAO;AAAE,QAAA,OAAO,SAAS;;;AAInE,IAAA,MAAM,YAAY,GAAG,UAAU,CAAC,QAAQ,EAAE,QAAQ;IAClD,OAAO,YAAY,KAAK,QAAQ,GAAG,0BAA0B,GAAG,SAAS;AAC3E;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sentinel the delivery client sends when live preview is enabled and no
|
|
3
|
+
* hash has arrived. It is a value on the query, not a hash, and the transport
|
|
4
|
+
* excludes it from the host swap — so a request carrying it is an ordinary
|
|
5
|
+
* published-content request.
|
|
6
|
+
*/
|
|
7
|
+
const LIVE_PREVIEW_INIT = "init";
|
|
8
|
+
/**
|
|
9
|
+
* Which service a request made with this configuration will reach.
|
|
10
|
+
*
|
|
11
|
+
* This is not a proxy for the transport's decision, it is the same predicate:
|
|
12
|
+
* `@contentstack/core` swaps in the preview host only when live preview is
|
|
13
|
+
* enabled and the hash is present and is not the init sentinel. Anything else
|
|
14
|
+
* goes to published content.
|
|
15
|
+
*
|
|
16
|
+
* It must be read synchronously, immediately before the request. Live-preview
|
|
17
|
+
* state is process-wide, so under concurrent server rendering a value read after
|
|
18
|
+
* an await can belong to a different request.
|
|
19
|
+
*/
|
|
20
|
+
function resolveServedBy(
|
|
21
|
+
/**
|
|
22
|
+
* A stack's live-preview configuration. `live_preview` is the hash, named the
|
|
23
|
+
* way the transport reads it.
|
|
24
|
+
*/
|
|
25
|
+
livePreview) {
|
|
26
|
+
if (!livePreview?.enable)
|
|
27
|
+
return "cdn";
|
|
28
|
+
const hash = livePreview.live_preview;
|
|
29
|
+
return hash && hash !== LIVE_PREVIEW_INIT ? "preview" : "cdn";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { resolveServedBy };
|
|
33
|
+
//# sourceMappingURL=served-by.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"served-by.js","sources":["../../src/utils/served-by.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;AAKG;AACH,MAAM,iBAAiB,GAAG,MAAM;AAKhC;;;;;;;;;;;AAWG;SACa,eAAe;AAC7B;;;AAGG;AACH,WAAoE,EAAA;IAEpE,IAAI,CAAC,WAAW,EAAE,MAAM;AAAE,QAAA,OAAO,KAAK;AAEtC,IAAA,MAAM,IAAI,GAAG,WAAW,CAAC,YAAY;AACrC,IAAA,OAAO,IAAI,IAAI,IAAI,KAAK,iBAAiB,GAAG,SAAS,GAAG,KAAK;AAC/D;;;;"}
|
|
@@ -32,7 +32,7 @@ function analyzeUsedComponents(spec) {
|
|
|
32
32
|
}
|
|
33
33
|
// Traverse slots (children)
|
|
34
34
|
if (node.slots && typeof node.slots === "object") {
|
|
35
|
-
Object.values(node.slots).forEach((slotContent) => {
|
|
35
|
+
Object.values(node.slots ?? {}).forEach((slotContent) => {
|
|
36
36
|
if (Array.isArray(slotContent)) {
|
|
37
37
|
slotContent.forEach((child) => traverse(child));
|
|
38
38
|
}
|
|
@@ -91,7 +91,7 @@ function getComponentUsageStats(spec) {
|
|
|
91
91
|
stats.set(normalizedType, (stats.get(normalizedType) || 0) + 1);
|
|
92
92
|
}
|
|
93
93
|
if (node.slots && typeof node.slots === "object") {
|
|
94
|
-
Object.values(node.slots).forEach((slotContent) => {
|
|
94
|
+
Object.values(node.slots ?? {}).forEach((slotContent) => {
|
|
95
95
|
if (Array.isArray(slotContent)) {
|
|
96
96
|
slotContent.forEach((child) => traverse(child));
|
|
97
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-analyzer.js","sources":["../../src/utils/spec-analyzer.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA;;;;;;AAMG;AACH,SAAS,0BAA0B,CAAC,IAAU,EAAA;AAC5C,IAAA,IAAI,IAAI,CAAC,IAAI,KAAK,qBAAqB,EAAE;QACvC,OAAO,qBAAqB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI;IACjD;AACA,IAAA,OAAO,IAAI,CAAC,IAAI,IAAI,IAAI;AAC1B;AAEA;;;;;;AAMG;AACG,SAAU,qBAAqB,CACnC,IAA6B,EAAA;AAE7B,IAAA,MAAM,cAAc,GAAG,IAAI,GAAG,EAAU;IAExC,SAAS,QAAQ,CAAC,IAA6B,EAAA;AAC7C,QAAA,IAAI,CAAC,IAAI;YAAE;;AAGX,QAAA,MAAM,cAAc,GAAG,0BAA0B,CAAC,IAAI,CAAC;QACvD,IAAI,cAAc,EAAE;AAClB,YAAA,cAAc,CAAC,GAAG,CAAC,cAAc,CAAC;QACpC;;QAGA,IAAI,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;AAChD,YAAA,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,WAAgB,KAAI;
|
|
1
|
+
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