Enhance refactor commands with controller-aware Route() updates and fix code quality violations
Add semantic token highlighting for 'that' variable and comment file references in VS Code extension Add Phone_Text_Input and Currency_Input components with formatting utilities Implement client widgets, form standardization, and soft delete functionality Add modal scroll lock and update documentation Implement comprehensive modal system with form integration and validation Fix modal component instantiation using jQuery plugin API Implement modal system with responsive sizing, queuing, and validation support Implement form submission with validation, error handling, and loading states Implement country/state selectors with dynamic data loading and Bootstrap styling Revert Rsx::Route() highlighting in Blade/PHP files Target specific PHP scopes for Rsx::Route() highlighting in Blade Expand injection selector for Rsx::Route() highlighting Add custom syntax highlighting for Rsx::Route() and Rsx.Route() calls Update jqhtml packages to v2.2.165 Add bundle path validation for common mistakes (development mode only) Create Ajax_Select_Input widget and Rsx_Reference_Data controller Create Country_Select_Input widget with default country support Initialize Tom Select on Select_Input widgets Add Tom Select bundle for enhanced select dropdowns Implement ISO 3166 geographic data system for country/region selection Implement widget-based form system with disabled state support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
0
node_modules/@babel/traverse/lib/scope/binding.js
generated
vendored
Executable file → Normal file
0
node_modules/@babel/traverse/lib/scope/binding.js
generated
vendored
Executable file → Normal file
0
node_modules/@babel/traverse/lib/scope/binding.js.map
generated
vendored
Executable file → Normal file
0
node_modules/@babel/traverse/lib/scope/binding.js.map
generated
vendored
Executable file → Normal file
16
node_modules/@babel/traverse/lib/scope/index.js
generated
vendored
Executable file → Normal file
16
node_modules/@babel/traverse/lib/scope/index.js
generated
vendored
Executable file → Normal file
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
||||
exports.default = void 0;
|
||||
var _renamer = require("./lib/renamer.js");
|
||||
var _index = require("../index.js");
|
||||
var _traverseForScope = require("./traverseForScope.js");
|
||||
var _binding = require("./binding.js");
|
||||
var _t = require("@babel/types");
|
||||
var t = _t;
|
||||
@@ -186,6 +187,9 @@ function resetScope(scope) {
|
||||
scope.bindings = Object.create(null);
|
||||
scope.globals = Object.create(null);
|
||||
}
|
||||
function isAnonymousFunctionExpression(path) {
|
||||
return path.isFunctionExpression() && !path.node.id || path.isArrowFunctionExpression();
|
||||
}
|
||||
{
|
||||
var NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding");
|
||||
}
|
||||
@@ -677,6 +681,7 @@ class Scope {
|
||||
}
|
||||
crawl() {
|
||||
const path = this.path;
|
||||
;
|
||||
resetScope(this);
|
||||
this.data = Object.create(null);
|
||||
let scope = this;
|
||||
@@ -699,9 +704,6 @@ class Scope {
|
||||
}
|
||||
}, collectorVisitor]));
|
||||
if (path.type !== "Program") {
|
||||
for (const visit of scopeVisitor.enter) {
|
||||
visit.call(state, path, state);
|
||||
}
|
||||
const typeVisitors = scopeVisitor[path.type];
|
||||
if (typeVisitors) {
|
||||
for (const visit of typeVisitors.enter) {
|
||||
@@ -709,7 +711,9 @@ class Scope {
|
||||
}
|
||||
}
|
||||
}
|
||||
path.traverse(scopeVisitor, state);
|
||||
{
|
||||
path.traverse(scopeVisitor, state);
|
||||
}
|
||||
this.crawling = false;
|
||||
for (const path of state.assignments) {
|
||||
const ids = path.getAssignmentIdentifiers();
|
||||
@@ -747,7 +751,7 @@ class Scope {
|
||||
kind = "var",
|
||||
id
|
||||
} = opts;
|
||||
if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression(path.parent, {
|
||||
if (!init && !unique && (kind === "var" || kind === "let") && isAnonymousFunctionExpression(path) && isCallExpression(path.parent, {
|
||||
callee: path.node
|
||||
}) && path.parent.arguments.length <= path.node.params.length && isIdentifier(id)) {
|
||||
path.pushContainer("params", id);
|
||||
@@ -936,7 +940,7 @@ class Scope {
|
||||
emit(identifier(name), decl.init != null);
|
||||
}
|
||||
}
|
||||
if (parentPath.parentPath.isFor({
|
||||
if (parentPath.parentPath.isForXStatement({
|
||||
left: parent
|
||||
})) {
|
||||
parentPath.replaceWith(firstId);
|
||||
|
||||
2
node_modules/@babel/traverse/lib/scope/index.js.map
generated
vendored
Executable file → Normal file
2
node_modules/@babel/traverse/lib/scope/index.js.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
0
node_modules/@babel/traverse/lib/scope/lib/renamer.js
generated
vendored
Executable file → Normal file
0
node_modules/@babel/traverse/lib/scope/lib/renamer.js
generated
vendored
Executable file → Normal file
0
node_modules/@babel/traverse/lib/scope/lib/renamer.js.map
generated
vendored
Executable file → Normal file
0
node_modules/@babel/traverse/lib/scope/lib/renamer.js.map
generated
vendored
Executable file → Normal file
68
node_modules/@babel/traverse/lib/scope/traverseForScope.js
generated
vendored
Normal file
68
node_modules/@babel/traverse/lib/scope/traverseForScope.js
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = traverseForScope;
|
||||
var _t = require("@babel/types");
|
||||
var _index = require("../index.js");
|
||||
var _visitors = require("../visitors.js");
|
||||
var _context = require("../path/context.js");
|
||||
const {
|
||||
VISITOR_KEYS
|
||||
} = _t;
|
||||
function traverseForScope(path, visitors, state) {
|
||||
const exploded = (0, _visitors.explode)(visitors);
|
||||
if (exploded.enter || exploded.exit) {
|
||||
throw new Error("Should not be used with enter/exit visitors.");
|
||||
}
|
||||
_traverse(path.parentPath, path.parent, path.node, path.container, path.key, path.listKey, path.hub, path);
|
||||
function _traverse(parentPath, parent, node, container, key, listKey, hub, inPath) {
|
||||
if (!node) {
|
||||
return;
|
||||
}
|
||||
const path = inPath || _index.NodePath.get({
|
||||
hub,
|
||||
parentPath,
|
||||
parent,
|
||||
container,
|
||||
listKey,
|
||||
key
|
||||
});
|
||||
_context.setScope.call(path);
|
||||
const visitor = exploded[node.type];
|
||||
if (visitor) {
|
||||
if (visitor.enter) {
|
||||
for (const visit of visitor.enter) {
|
||||
visit.call(state, path, state);
|
||||
}
|
||||
}
|
||||
if (visitor.exit) {
|
||||
for (const visit of visitor.exit) {
|
||||
visit.call(state, path, state);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (path.shouldSkip) {
|
||||
return;
|
||||
}
|
||||
const keys = VISITOR_KEYS[node.type];
|
||||
if (!(keys != null && keys.length)) {
|
||||
return;
|
||||
}
|
||||
for (const key of keys) {
|
||||
const prop = node[key];
|
||||
if (!prop) continue;
|
||||
if (Array.isArray(prop)) {
|
||||
for (let i = 0; i < prop.length; i++) {
|
||||
const value = prop[i];
|
||||
_traverse(path, node, value, prop, i, key);
|
||||
}
|
||||
} else {
|
||||
_traverse(path, node, prop, node, key, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=traverseForScope.js.map
|
||||
1
node_modules/@babel/traverse/lib/scope/traverseForScope.js.map
generated
vendored
Normal file
1
node_modules/@babel/traverse/lib/scope/traverseForScope.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"names":["_t","require","_index","_visitors","_context","VISITOR_KEYS","traverseForScope","path","visitors","state","exploded","explode","enter","exit","Error","_traverse","parentPath","parent","node","container","key","listKey","hub","inPath","NodePath","get","setScope","call","visitor","type","visit","shouldSkip","keys","length","prop","Array","isArray","i","value"],"sources":["../../src/scope/traverseForScope.ts"],"sourcesContent":["import { VISITOR_KEYS } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { HubInterface, Visitor } from \"../index.ts\";\nimport { NodePath } from \"../index.ts\";\nimport { explode } from \"../visitors.ts\";\nimport { setScope } from \"../path/context.ts\";\n\nexport default function traverseForScope(\n path: NodePath,\n visitors: Visitor,\n state: any,\n) {\n const exploded = explode(visitors);\n\n if (exploded.enter || exploded.exit) {\n throw new Error(\"Should not be used with enter/exit visitors.\");\n }\n\n _traverse(\n path.parentPath,\n path.parent,\n path.node,\n path.container!,\n path.key!,\n path.listKey,\n path.hub,\n path,\n );\n\n function _traverse(\n parentPath: NodePath,\n parent: t.Node,\n node: t.Node,\n container: t.Node | t.Node[],\n key: string | number,\n listKey: string | null | undefined,\n hub?: HubInterface,\n inPath?: NodePath,\n ) {\n if (!node) {\n return;\n }\n\n const path =\n inPath ||\n NodePath.get({\n hub,\n parentPath,\n parent,\n container,\n listKey,\n key,\n });\n\n setScope.call(path);\n\n const visitor = exploded[node.type];\n if (visitor) {\n if (visitor.enter) {\n for (const visit of visitor.enter) {\n visit.call(state, path, state);\n }\n }\n if (visitor.exit) {\n for (const visit of visitor.exit) {\n visit.call(state, path, state);\n }\n }\n }\n if (path.shouldSkip) {\n return;\n }\n\n const keys = VISITOR_KEYS[node.type];\n if (!keys?.length) {\n return;\n }\n\n for (const key of keys) {\n // @ts-expect-error key must present in node\n const prop = node[key];\n if (!prop) continue;\n if (Array.isArray(prop)) {\n for (let i = 0; i < prop.length; i++) {\n const value = prop[i];\n _traverse(path, node, value, prop, i, key);\n }\n } else {\n _traverse(path, node, prop, node, key, null);\n }\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAA8C;EALrCI;AAAY,IAAAL,EAAA;AAON,SAASM,gBAAgBA,CACtCC,IAAc,EACdC,QAAiB,EACjBC,KAAU,EACV;EACA,MAAMC,QAAQ,GAAG,IAAAC,iBAAO,EAACH,QAAQ,CAAC;EAElC,IAAIE,QAAQ,CAACE,KAAK,IAAIF,QAAQ,CAACG,IAAI,EAAE;IACnC,MAAM,IAAIC,KAAK,CAAC,8CAA8C,CAAC;EACjE;EAEAC,SAAS,CACPR,IAAI,CAACS,UAAU,EACfT,IAAI,CAACU,MAAM,EACXV,IAAI,CAACW,IAAI,EACTX,IAAI,CAACY,SAAS,EACdZ,IAAI,CAACa,GAAG,EACRb,IAAI,CAACc,OAAO,EACZd,IAAI,CAACe,GAAG,EACRf,IACF,CAAC;EAED,SAASQ,SAASA,CAChBC,UAAoB,EACpBC,MAAc,EACdC,IAA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