@versa-stack/v-craft 1.0.3 → 1.0.4-alpha.1

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.
@@ -1323,7 +1323,10 @@ Error:`,
1323
1323
  r,
1324
1324
  n,
1325
1325
  n?.eventsContext || {}
1326
- ), A = w(() => a?.value?.resolve(r.value.componentName)?.componentName || r.value.componentName), z = () => {
1326
+ ), A = w(() => {
1327
+ const P = a?.value?.resolve(r.value.componentName);
1328
+ return q(r.value) ? r.value.props.componentName : P?.componentName || r.value.componentName;
1329
+ }), z = () => {
1327
1330
  m();
1328
1331
  }, R = (P) => {
1329
1332
  let S = 0;
@@ -1334,7 +1337,9 @@ Error:`,
1334
1337
  }, y = w(() => R(r.value.uuid)), k = w(() => {
1335
1338
  const P = [], U = a?.value?.resolveNode?.(r.value)?.slots;
1336
1339
  return U && U.length > 0 ? P.push(...U) : P.push("default"), P;
1337
- }), I = w(() => q(r.value) ? !0 : Object.values(r.value.slots || {}).some((P) => P.length > 0)), J = (P, S) => u.value ? u.value.slotName && u.value.slotName !== S ? [] : he(u.value, P) : [], he = (P, S) => P.type === "single" ? S.map((U) => ({
1340
+ }), I = w(() => q(r.value) ? !0 : Object.values(r.value.slots || {}).some(
1341
+ (P) => P.length > 0
1342
+ )), J = (P, S) => u.value ? u.value.slotName && u.value.slotName !== S ? [] : he(u.value, P) : [], he = (P, S) => P.type === "single" ? S.map((U) => ({
1338
1343
  key: `${U.uuid}-single`,
1339
1344
  craftNode: {
1340
1345
  ...U,
@@ -1400,7 +1405,10 @@ Error:`,
1400
1405
  O("span", yr, ne(H), 1)
1401
1406
  ], 40, gr)) : x("", !0),
1402
1407
  I.value ? (v(), E(T, { key: 1 }, [
1403
- u.value?.type && u.value.slotName === H ? (v(!0), E(T, { key: 0 }, M(J(r.value.slots?.[H] || [], H), (L) => (v(), N(U, {
1408
+ u.value?.type && u.value.slotName === H ? (v(!0), E(T, { key: 0 }, M(J(
1409
+ r.value.slots?.[H] || [],
1410
+ H
1411
+ ), (L) => (v(), N(U, {
1404
1412
  key: L.key,
1405
1413
  craftNode: L.craftNode
1406
1414
  }, null, 8, ["craftNode"]))), 128)) : x("", !0),