pasika 0.5.11 → 0.5.13

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.
@@ -1137,7 +1137,7 @@ function isComponentName(name) {
1137
1137
  }
1138
1138
  function isOuterLayoutClass(className) {
1139
1139
  const utility = className.split(":").pop() ?? className;
1140
- return /^(?:-?m[trblsexy]?-.+|(?:min-|max-)?[wh]-.+|size-.+|(?:flex-(?:1|auto|initial|none|grow|shrink|basis-.+)|grow(?:-.+)?|shrink(?:-.+)?|basis-.+|order-.+|(?:col|row)-(?:auto|span-.+|start-.+|end-.+)|(?:self|place-self|justify-self)-.+|z-.+|gap-.+|space-[xy]-.+))$/.test(
1140
+ return /^(?:-?(?:m|p)[trblsexy]?-.+|(?:min-|max-)?[wh]-.+|size-.+|inset(?:-[xy])?-.+|(?:-?(?:top|right|bottom|left)-.+)|overflow(?:-[xy])?-(?:auto|hidden|clip|visible|scroll)|(?:flex-(?:1|auto|initial|none|grow|shrink|basis-.+)|grow(?:-.+)?|shrink(?:-.+)?|basis-.+|order-.+|(?:col|row)-(?:auto|span-.+|start-.+|end-.+)|(?:self|place-self|justify-self)-.+|z-.+|gap-.+|space-[xy]-.+))$/.test(
1141
1141
  utility
1142
1142
  );
1143
1143
  }
@@ -2276,6 +2276,24 @@ function isComponentReturn(node) {
2276
2276
  if (parent.type === "ReturnStatement") return true;
2277
2277
  return parent.type === "ArrowFunctionExpression" && parent.body === node;
2278
2278
  }
2279
+ function isComponentRoot(node) {
2280
+ let current = node;
2281
+ const visited = /* @__PURE__ */ new Set();
2282
+ while (!visited.has(current)) {
2283
+ visited.add(current);
2284
+ const parent = current.parent;
2285
+ if (!parent) return false;
2286
+ const parentType = parent.type;
2287
+ if (parentType === "ReturnStatement") return true;
2288
+ if (parentType === "ArrowFunctionExpression") return true;
2289
+ if (parentType === "ConditionalExpression" || parentType === "ParenthesizedExpression") {
2290
+ current = parent;
2291
+ continue;
2292
+ }
2293
+ return false;
2294
+ }
2295
+ return false;
2296
+ }
2279
2297
  function isJsxElementWithChildren(node) {
2280
2298
  return "children" in node && Array.isArray(node.children);
2281
2299
  }
@@ -2358,6 +2376,9 @@ var interactiveComponentRule = {
2358
2376
  if (isComponentReturn(node)) {
2359
2377
  return;
2360
2378
  }
2379
+ if (isComponentRoot(node)) {
2380
+ return;
2381
+ }
2361
2382
  if (isSoleContentOfWrapper(node)) {
2362
2383
  return;
2363
2384
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.5.11",
3
+ "version": "0.5.13",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",