vuetify-codemods 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/main.js +12 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -94402,7 +94402,7 @@ var __export = (target, all) => {
94402
94402
  var builders_exports = {};
94403
94403
  __export(builders_exports, {
94404
94404
  htmlComment: () => htmlComment,
94405
- setParents: () => setParents,
94405
+ setParents: () => setParents$1,
94406
94406
  vAttribute: () => vAttribute,
94407
94407
  vDirective: () => vDirective,
94408
94408
  vDirectiveKey: () => vDirectiveKey,
@@ -94641,7 +94641,7 @@ var traverseNodes = (node2, visitor2) => {
94641
94641
  leaveNode: visitor2.leaveNode ?? noop
94642
94642
  });
94643
94643
  };
94644
- function setParents(node2) {
94644
+ function setParents$1(node2) {
94645
94645
  traverseNodes(node2, {
94646
94646
  enterNode(innerNode, parent) {
94647
94647
  innerNode.parent = parent;
@@ -95218,7 +95218,7 @@ function transformVueFile(code2, filename, codemods, opts) {
95218
95218
  stats.push([codemod.name, count]);
95219
95219
  }
95220
95220
  if (templateAst && originalTemplate) {
95221
- setParents(templateAst);
95221
+ setParents$1(templateAst);
95222
95222
  let scriptIndex = 0;
95223
95223
  let styleIndex = 0;
95224
95224
  traverseNodes(templateAst, {
@@ -95858,6 +95858,11 @@ function replaceChildNode(parent, oldChild, newChild) {
95858
95858
  }
95859
95859
  return false;
95860
95860
  }
95861
+ function setParents(node2, builders2) {
95862
+ const parent = node2.parent;
95863
+ builders2.setParents(node2);
95864
+ node2.parent = parent;
95865
+ }
95861
95866
  const v4ComboboxItemSlotPlugin = {
95862
95867
  type: "codemod",
95863
95868
  name: "vuetify-4-combobox-item-slot",
@@ -96052,6 +96057,7 @@ const v4GridPlugin = {
96052
96057
  builders2.vLiteral("compact")
96053
96058
  )
96054
96059
  );
96060
+ setParents(el.startTag, builders2);
96055
96061
  count++;
96056
96062
  }
96057
96063
  for (const prop of ["align", "justify", "align-content"]) {
@@ -96096,6 +96102,7 @@ function appendStaticClass(el, cls, builders2) {
96096
96102
  builders2.vLiteral(cls)
96097
96103
  )
96098
96104
  );
96105
+ setParents(el.startTag, builders2);
96099
96106
  }
96100
96107
  }
96101
96108
  function propToClass(el, propName, classPrefix, builders2) {
@@ -96125,6 +96132,7 @@ const v4SnackbarMultilinePlugin = {
96125
96132
  node2.startTag.attributes.push(
96126
96133
  builders2.vAttribute(builders2.vIdentifier("min-height"), builders2.vLiteral("68"))
96127
96134
  );
96135
+ setParents(node2.startTag, builders2);
96128
96136
  }
96129
96137
  count++;
96130
96138
  break;
@@ -96147,6 +96155,7 @@ const v4SnackbarQueueSlotPlugin = {
96147
96155
  if (!node2.key.argument) {
96148
96156
  node2.key.name.rawName = "#";
96149
96157
  node2.key.argument = builders2.vIdentifier("item");
96158
+ setParents(node2.key, builders2);
96150
96159
  count++;
96151
96160
  } else if (node2.key.argument.type === "VIdentifier") {
96152
96161
  node2.key.argument.rawName = "item";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vuetify-codemods",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "bin": {
6
6
  "vuetify-codemods": "dist/main.js"
7
7
  },