@alpaca-headless/alpaca-headless 1.0.542 → 1.0.545
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.
|
@@ -107,9 +107,9 @@ export async function Placeholder({ name, content, tag, className, description,
|
|
|
107
107
|
}
|
|
108
108
|
export function renderPlaceholder(wrap, componentsWithProps, placeholderData, context, description) {
|
|
109
109
|
return wrap(_jsxs(_Fragment, { children: [context.isEditing && (_jsx("script", { "data-placeholder-start": placeholderData.key, "data-description": description })), componentsWithProps.map(({ Component, data, props }) => {
|
|
110
|
-
var _a, _b, _c, _d, _e;
|
|
110
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
111
111
|
return (_jsx(_Fragment, { children: _jsxs(ErrorBoundary, { FallbackComponent: ErrorFallback, children: [context.isEditing && (_jsx("script", { "data-component-start": data.id, "data-itemid": ((_b = (_a = data._editor) === null || _a === void 0 ? void 0 : _a.linkedComponentItem) === null || _b === void 0 ? void 0 : _b.id) ||
|
|
112
|
-
data.id, "data-typeid": data.templateId, "data-
|
|
112
|
+
data.id, "data-typeid": data.templateId, "data-version": (_d = (_c = data._editor) === null || _c === void 0 ? void 0 : _c.linkedComponentItem) === null || _d === void 0 ? void 0 : _d.version, "data-layoutid": (_f = (_e = data._editor) === null || _e === void 0 ? void 0 : _e.hostingPageItem) === null || _f === void 0 ? void 0 : _f.id })), _createElement(Component, Object.assign({}, props, { key: data.id })), context.isEditing && (_jsx("script", { "data-component-end": data.id }))] }, "EB" + data.id + ((_g = data.rendering) === null || _g === void 0 ? void 0 : _g.revision)) }));
|
|
113
113
|
}), placeholderData.hasMore && (_jsx(Suspense, { children: _jsx(LazyPlaceholder, { placeholder: placeholderData, context: context }) })), context.isEditing && (_jsx("script", { "data-placeholder-end": placeholderData.key }))] }));
|
|
114
114
|
}
|
|
115
115
|
function ComponentNotFound({ component }) {
|
package/package.json
CHANGED
|
@@ -221,7 +221,11 @@ export function renderPlaceholder(
|
|
|
221
221
|
(data as ComponentData)._editor?.linkedComponentItem?.id ||
|
|
222
222
|
data.id
|
|
223
223
|
}
|
|
224
|
-
data-typeid={
|
|
224
|
+
data-typeid={(data as ComponentData).templateId}
|
|
225
|
+
data-version={
|
|
226
|
+
(data as ComponentData)._editor?.linkedComponentItem
|
|
227
|
+
?.version
|
|
228
|
+
}
|
|
225
229
|
data-layoutid={
|
|
226
230
|
(data as ComponentData)._editor?.hostingPageItem?.id
|
|
227
231
|
}
|