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:
99
node_modules/webpack/lib/ExportsInfo.js
generated
vendored
99
node_modules/webpack/lib/ExportsInfo.js
generated
vendored
@@ -12,6 +12,8 @@ const { forEachRuntime } = require("./util/runtime");
|
||||
|
||||
/** @typedef {import("./Dependency")} Dependency */
|
||||
/** @typedef {import("./Dependency").RuntimeSpec} RuntimeSpec */
|
||||
/** @typedef {import("./Dependency").ExportsSpecExcludeExports} ExportsSpecExcludeExports */
|
||||
/** @typedef {import("./dependencies/HarmonyImportDependency")} HarmonyImportDependency */
|
||||
/** @typedef {import("./Module")} Module */
|
||||
/** @typedef {import("./ModuleGraph")} ModuleGraph */
|
||||
/** @typedef {import("./ModuleGraphConnection")} ModuleGraphConnection */
|
||||
@@ -22,6 +24,32 @@ const { forEachRuntime } = require("./util/runtime");
|
||||
/** @typedef {typeof UsageState.OnlyPropertiesUsed | typeof UsageState.NoInfo | typeof UsageState.Unknown | typeof UsageState.Used} RuntimeUsageStateType */
|
||||
/** @typedef {typeof UsageState.Unused | RuntimeUsageStateType} UsageStateType */
|
||||
|
||||
/** @typedef {string} ExportInfoName */
|
||||
|
||||
/** @typedef {Map<string, RuntimeUsageStateType>} UsedInRuntime */
|
||||
/** @typedef {{ module: Module, export: ExportInfoName[], deferred: boolean }} TargetItemWithoutConnection */
|
||||
/** @typedef {{ module: Module, connection: ModuleGraphConnection, export: ExportInfoName[] | undefined }} TargetItemWithConnection */
|
||||
/** @typedef {(target: TargetItemWithConnection) => boolean} ResolveTargetFilter */
|
||||
/** @typedef {(module: Module) => boolean} ValidTargetModuleFilter */
|
||||
/** @typedef {{ connection: ModuleGraphConnection, export: ExportInfoName[], priority: number }} TargetItem */
|
||||
/** @typedef {Map<Dependency | undefined, TargetItem>} Target */
|
||||
|
||||
/** @typedef {string | null} ExportInfoUsedName */
|
||||
/** @typedef {boolean | null} ExportInfoProvided */
|
||||
|
||||
/** @typedef {Map<ExportInfoName, ExportInfo>} Exports */
|
||||
/** @typedef {string | string[] | false} UsedName */
|
||||
/** @typedef {Set<ExportInfo>} AlreadyVisitedExportInfo */
|
||||
|
||||
/**
|
||||
* @typedef {object} RestoreProvidedDataExports
|
||||
* @property {ExportInfoName} name
|
||||
* @property {ExportInfo["provided"]} provided
|
||||
* @property {ExportInfo["canMangleProvide"]} canMangleProvide
|
||||
* @property {ExportInfo["terminalBinding"]} terminalBinding
|
||||
* @property {RestoreProvidedData | undefined} exportsInfo
|
||||
*/
|
||||
|
||||
const UsageState = Object.freeze({
|
||||
Unused: /** @type {0} */ (0),
|
||||
OnlyPropertiesUsed: /** @type {1} */ (1),
|
||||
@@ -34,15 +62,6 @@ const RETURNS_TRUE = () => true;
|
||||
|
||||
const CIRCULAR = Symbol("circular target");
|
||||
|
||||
/**
|
||||
* @typedef {object} RestoreProvidedDataExports
|
||||
* @property {ExportInfoName} name
|
||||
* @property {ExportInfo["provided"]} provided
|
||||
* @property {ExportInfo["canMangleProvide"]} canMangleProvide
|
||||
* @property {ExportInfo["terminalBinding"]} terminalBinding
|
||||
* @property {RestoreProvidedData | undefined} exportsInfo
|
||||
*/
|
||||
|
||||
class RestoreProvidedData {
|
||||
/**
|
||||
* @param {RestoreProvidedDataExports[]} exports exports
|
||||
@@ -87,14 +106,11 @@ makeSerializable(
|
||||
"RestoreProvidedData"
|
||||
);
|
||||
|
||||
/** @typedef {Map<ExportInfoName, ExportInfo>} Exports */
|
||||
/** @typedef {string | string[] | false} UsedName */
|
||||
|
||||
class ExportsInfo {
|
||||
constructor() {
|
||||
/** @type {Exports} */
|
||||
this._exports = new Map();
|
||||
this._otherExportsInfo = new ExportInfo(/** @type {TODO} */ (null));
|
||||
this._otherExportsInfo = new ExportInfo(null);
|
||||
this._sideEffectsOnlyInfo = new ExportInfo("*side effects only*");
|
||||
this._exportsAreOrdered = false;
|
||||
/** @type {ExportsInfo=} */
|
||||
@@ -171,7 +187,7 @@ class ExportsInfo {
|
||||
*/
|
||||
_sortExportsMap(exports) {
|
||||
if (exports.size > 1) {
|
||||
/** @type {string[]} */
|
||||
/** @type {ExportInfoName[]} */
|
||||
const namesInOrder = [];
|
||||
for (const entry of exports.values()) {
|
||||
namesInOrder.push(entry.name);
|
||||
@@ -308,7 +324,7 @@ class ExportsInfo {
|
||||
|
||||
/**
|
||||
* @param {boolean=} canMangle true, if exports can still be mangled (defaults to false)
|
||||
* @param {Set<string>=} excludeExports list of unaffected exports
|
||||
* @param {ExportsSpecExcludeExports=} excludeExports list of unaffected exports
|
||||
* @param {Dependency=} targetKey use this as key for the target
|
||||
* @param {ModuleGraphConnection=} targetModule set this module as target
|
||||
* @param {number=} priority priority
|
||||
@@ -505,7 +521,7 @@ class ExportsInfo {
|
||||
|
||||
/**
|
||||
* @param {RuntimeSpec} runtime the runtime
|
||||
* @returns {SortableSet<string> | boolean | null} set of used exports, or true (when namespace object is used), or false (when unused), or null (when unknown)
|
||||
* @returns {SortableSet<ExportInfoName> | boolean | null} set of used exports, or true (when namespace object is used), or false (when unused), or null (when unknown)
|
||||
*/
|
||||
getUsedExports(runtime) {
|
||||
switch (this._otherExportsInfo.getUsed(runtime)) {
|
||||
@@ -517,6 +533,7 @@ class ExportsInfo {
|
||||
return true;
|
||||
}
|
||||
|
||||
/** @type {ExportInfoName[]} */
|
||||
const array = [];
|
||||
if (!this._exportsAreOrdered) this._sortExports();
|
||||
for (const exportInfo of this._exports.values()) {
|
||||
@@ -548,11 +565,11 @@ class ExportsInfo {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return /** @type {SortableSet<string>} */ (new SortableSet(array));
|
||||
return /** @type {SortableSet<ExportInfoName>} */ (new SortableSet(array));
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {null | true | string[]} list of exports when known
|
||||
* @returns {null | true | ExportInfoName[]} list of exports when known
|
||||
*/
|
||||
getProvidedExports() {
|
||||
switch (this._otherExportsInfo.provided) {
|
||||
@@ -564,7 +581,7 @@ class ExportsInfo {
|
||||
return true;
|
||||
}
|
||||
|
||||
/** @type {string[]} */
|
||||
/** @type {ExportInfoName[]} */
|
||||
const array = [];
|
||||
if (!this._exportsAreOrdered) this._sortExports();
|
||||
for (const exportInfo of this._exports.values()) {
|
||||
@@ -831,32 +848,14 @@ class ExportsInfo {
|
||||
}
|
||||
}
|
||||
|
||||
/** @typedef {Map<string, RuntimeUsageStateType>} UsedInRuntime */
|
||||
|
||||
/** @typedef {{ module: Module, export: string[], deferred: boolean }} TargetItemWithoutConnection */
|
||||
|
||||
/** @typedef {{ module: Module, connection: ModuleGraphConnection, export: string[] | undefined }} TargetItemWithConnection */
|
||||
|
||||
/** @typedef {(target: TargetItemWithConnection) => boolean} ResolveTargetFilter */
|
||||
|
||||
/** @typedef {(module: Module) => boolean} ValidTargetModuleFilter */
|
||||
|
||||
/** @typedef {{ connection: ModuleGraphConnection, export: string[], priority: number }} TargetItem */
|
||||
|
||||
/** @typedef {Map<Dependency | undefined, TargetItem>} Target */
|
||||
|
||||
/** @typedef {string} ExportInfoName */
|
||||
/** @typedef {string | null} ExportInfoUsedName */
|
||||
/** @typedef {boolean | null} ExportInfoProvided */
|
||||
|
||||
class ExportInfo {
|
||||
/**
|
||||
* @param {ExportInfoName} name the original name of the export
|
||||
* @param {ExportInfoName | null} name the original name of the export
|
||||
* @param {ExportInfo=} initFrom init values from this ExportInfo
|
||||
*/
|
||||
constructor(name, initFrom) {
|
||||
/** @type {ExportInfoName} */
|
||||
this.name = name;
|
||||
this.name = /** @type {ExportInfoName} */ (name);
|
||||
/**
|
||||
* @private
|
||||
* @type {ExportInfoUsedName}
|
||||
@@ -1058,8 +1057,8 @@ class ExportInfo {
|
||||
}
|
||||
} else {
|
||||
let changed = false;
|
||||
forEachRuntime(runtime, (_runtime) => {
|
||||
const runtime = /** @type {string} */ (_runtime);
|
||||
forEachRuntime(runtime, (runtime_) => {
|
||||
const runtime = /** @type {string} */ (runtime_);
|
||||
const usedInRuntime =
|
||||
/** @type {UsedInRuntime} */
|
||||
(this._usedInRuntime);
|
||||
@@ -1148,7 +1147,7 @@ class ExportInfo {
|
||||
/**
|
||||
* @param {Dependency} key the key
|
||||
* @param {ModuleGraphConnection} connection the target module if a single one
|
||||
* @param {(string[] | null)=} exportName the exported name
|
||||
* @param {ExportInfoName[] | null=} exportName the exported name
|
||||
* @param {number=} priority priority
|
||||
* @returns {boolean} true, if something has changed
|
||||
*/
|
||||
@@ -1158,7 +1157,7 @@ class ExportInfo {
|
||||
this._target = new Map();
|
||||
this._target.set(key, {
|
||||
connection,
|
||||
export: /** @type {string[]} */ (exportName),
|
||||
export: /** @type {ExportInfoName[]} */ (exportName),
|
||||
priority
|
||||
});
|
||||
return true;
|
||||
@@ -1168,7 +1167,7 @@ class ExportInfo {
|
||||
if (oldTarget === null && !connection) return false;
|
||||
this._target.set(key, {
|
||||
connection,
|
||||
export: /** @type {string[]} */ (exportName),
|
||||
export: /** @type {ExportInfoName[]} */ (exportName),
|
||||
priority
|
||||
});
|
||||
this._maxTarget = undefined;
|
||||
@@ -1182,7 +1181,7 @@ class ExportInfo {
|
||||
: oldTarget.export)
|
||||
) {
|
||||
oldTarget.connection = connection;
|
||||
oldTarget.export = /** @type {string[]} */ (exportName);
|
||||
oldTarget.export = /** @type {ExportInfoName[]} */ (exportName);
|
||||
oldTarget.priority = priority;
|
||||
this._maxTarget = undefined;
|
||||
return true;
|
||||
@@ -1331,7 +1330,7 @@ class ExportInfo {
|
||||
/**
|
||||
* @param {ModuleGraph} moduleGraph the module graph
|
||||
* @param {ValidTargetModuleFilter} validTargetModuleFilter a valid target module
|
||||
* @param {Set<ExportInfo>} alreadyVisited set of already visited export info to avoid circular references
|
||||
* @param {AlreadyVisitedExportInfo} alreadyVisited set of already visited export info to avoid circular references
|
||||
* @returns {TargetItemWithoutConnection | null | undefined | false} the target, undefined when there is no target, false when no target is valid
|
||||
*/
|
||||
_findTarget(moduleGraph, validTargetModuleFilter, alreadyVisited) {
|
||||
@@ -1345,7 +1344,9 @@ class ExportInfo {
|
||||
module: rawTarget.connection.module,
|
||||
export: rawTarget.export,
|
||||
deferred: Boolean(
|
||||
rawTarget.connection.dependency && rawTarget.connection.dependency.defer
|
||||
rawTarget.connection.dependency &&
|
||||
/** @type {HarmonyImportDependency} */
|
||||
(rawTarget.connection.dependency).defer
|
||||
)
|
||||
};
|
||||
for (;;) {
|
||||
@@ -1387,13 +1388,13 @@ class ExportInfo {
|
||||
/**
|
||||
* @param {ModuleGraph} moduleGraph the module graph
|
||||
* @param {ResolveTargetFilter} resolveTargetFilter filter function to further resolve target
|
||||
* @param {Set<ExportInfo> | undefined} alreadyVisited set of already visited export info to avoid circular references
|
||||
* @param {AlreadyVisitedExportInfo | undefined} alreadyVisited set of already visited export info to avoid circular references
|
||||
* @returns {TargetItemWithConnection | CIRCULAR | undefined} the target
|
||||
*/
|
||||
_getTarget(moduleGraph, resolveTargetFilter, alreadyVisited) {
|
||||
/**
|
||||
* @param {TargetItem | undefined | null} inputTarget unresolved target
|
||||
* @param {Set<ExportInfo>} alreadyVisited set of already visited export info to avoid circular references
|
||||
* @param {AlreadyVisitedExportInfo} alreadyVisited set of already visited export info to avoid circular references
|
||||
* @returns {TargetItemWithConnection | CIRCULAR | null} resolved target
|
||||
*/
|
||||
const resolveTarget = (inputTarget, alreadyVisited) => {
|
||||
|
||||
Reference in New Issue
Block a user