Skip to content

Commit

Permalink
Upgrade all deps
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack authored Dec 16, 2024
1 parent 83126f3 commit cbc4943
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 377 deletions.
5 changes: 5 additions & 0 deletions adit_radis_shared/common/static/vendor/alpine-morph.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
let holdover = fromKeyHoldovers[toKey];
from2.appendChild(holdover);
currentFrom = holdover;
fromKey = getKey(currentFrom);
} else {
if (!shouldSkip(adding, currentTo)) {
let clone = currentTo.cloneNode(true);
Expand Down Expand Up @@ -173,6 +174,7 @@
if (fromKeys[toKey]) {
currentFrom.replaceWith(fromKeys[toKey]);
currentFrom = fromKeys[toKey];
fromKey = getKey(currentFrom);
}
}
if (toKey && fromKey) {
Expand All @@ -181,6 +183,7 @@
fromKeyHoldovers[fromKey] = currentFrom;
currentFrom.replaceWith(fromKeyNode);
currentFrom = fromKeyNode;
fromKey = getKey(currentFrom);
} else {
fromKeyHoldovers[fromKey] = currentFrom;
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
Expand Down Expand Up @@ -326,6 +329,8 @@
let fromId = from && from._x_bindings && from._x_bindings.id;
if (!fromId)
return;
if (!to.setAttribute)
return;
to.setAttribute("id", fromId);
to.id = fromId;
}
Expand Down
49 changes: 29 additions & 20 deletions adit_radis_shared/common/static/vendor/alpine.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,32 @@
deferredMutations = deferredMutations.concat(mutations);
return;
}
let addedNodes = /* @__PURE__ */ new Set();
let addedNodes = [];
let removedNodes = /* @__PURE__ */ new Set();
let addedAttributes = /* @__PURE__ */ new Map();
let removedAttributes = /* @__PURE__ */ new Map();
for (let i = 0; i < mutations.length; i++) {
if (mutations[i].target._x_ignoreMutationObserver)
continue;
if (mutations[i].type === "childList") {
mutations[i].addedNodes.forEach((node) => node.nodeType === 1 && addedNodes.add(node));
mutations[i].removedNodes.forEach((node) => node.nodeType === 1 && removedNodes.add(node));
mutations[i].removedNodes.forEach((node) => {
if (node.nodeType !== 1)
return;
if (!node._x_marker)
return;
removedNodes.add(node);
});
mutations[i].addedNodes.forEach((node) => {
if (node.nodeType !== 1)
return;
if (removedNodes.has(node)) {
removedNodes.delete(node);
return;
}
if (node._x_marker)
return;
addedNodes.push(node);
});
}
if (mutations[i].type === "attributes") {
let el = mutations[i].target;
Expand Down Expand Up @@ -234,29 +250,15 @@
onAttributeAddeds.forEach((i) => i(el, attrs));
});
for (let node of removedNodes) {
if (addedNodes.has(node))
if (addedNodes.some((i) => i.contains(node)))
continue;
onElRemoveds.forEach((i) => i(node));
}
addedNodes.forEach((node) => {
node._x_ignoreSelf = true;
node._x_ignore = true;
});
for (let node of addedNodes) {
if (removedNodes.has(node))
continue;
if (!node.isConnected)
continue;
delete node._x_ignoreSelf;
delete node._x_ignore;
onElAddeds.forEach((i) => i(node));
node._x_ignore = true;
node._x_ignoreSelf = true;
}
addedNodes.forEach((node) => {
delete node._x_ignoreSelf;
delete node._x_ignore;
});
addedNodes = null;
removedNodes = null;
addedAttributes = null;
Expand Down Expand Up @@ -800,13 +802,20 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
function interceptInit(callback) {
initInterceptors2.push(callback);
}
var markerDispenser = 1;
function initTree(el, walker = walk, intercept = () => {
}) {
if (findClosest(el, (i) => i._x_ignore))
return;
deferHandlingDirectives(() => {
walker(el, (el2, skip) => {
if (el2._x_marker)
return;
intercept(el2, skip);
initInterceptors2.forEach((i) => i(el2, skip));
directives(el2, el2.attributes).forEach((handle) => handle());
if (!el2._x_ignore)
el2._x_marker = markerDispenser++;
el2._x_ignore && skip();
});
});
Expand All @@ -815,6 +824,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
walker(root, (el) => {
cleanupElement(el);
cleanupAttributes(el);
delete el._x_marker;
});
}
function warnAboutMissingPlugins() {
Expand Down Expand Up @@ -1646,7 +1656,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
get raw() {
return raw;
},
version: "3.14.3",
version: "3.14.7",
flushAndStopDeferringMutations,
dontAutoEvaluateFunctions,
disableEffectScheduling,
Expand Down Expand Up @@ -2587,7 +2597,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
placeInDom(clone2, target, modifiers);
skipDuringClone(() => {
initTree(clone2);
clone2._x_ignore = true;
})();
});
el._x_teleportPutBack = () => {
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cbc4943

Please sign in to comment.