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:
70
node_modules/webpack/lib/InitFragment.js
generated
vendored
70
node_modules/webpack/lib/InitFragment.js
generated
vendored
@@ -13,18 +13,32 @@ const makeSerializable = require("./util/makeSerializable");
|
||||
/** @typedef {import("./serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
|
||||
/** @typedef {import("./serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
|
||||
|
||||
/** @typedef {string} InitFragmentKey */
|
||||
|
||||
/**
|
||||
* @template GenerateContext
|
||||
* @typedef {object} MaybeMergeableInitFragment
|
||||
* @property {InitFragmentKey=} key
|
||||
* @property {number} stage
|
||||
* @property {number} position
|
||||
* @property {(context: GenerateContext) => string | Source | undefined} getContent
|
||||
* @property {(context: GenerateContext) => string | Source | undefined} getEndContent
|
||||
* @property {(fragments: MaybeMergeableInitFragment<GenerateContext>) => MaybeMergeableInitFragment<GenerateContext>=} merge
|
||||
* @property {(fragments: MaybeMergeableInitFragment<GenerateContext>[]) => MaybeMergeableInitFragment<GenerateContext>[]=} mergeAll
|
||||
*/
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @param {InitFragment<T>} fragment the init fragment
|
||||
* @param {T} fragment the init fragment
|
||||
* @param {number} index index
|
||||
* @returns {[InitFragment<T>, number]} tuple with both
|
||||
* @returns {[T, number]} tuple with both
|
||||
*/
|
||||
const extractFragmentIndex = (fragment, index) => [fragment, index];
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @param {[InitFragment<T>, number]} a first pair
|
||||
* @param {[InitFragment<T>, number]} b second pair
|
||||
* @param {[MaybeMergeableInitFragment<T>, number]} a first pair
|
||||
* @param {[MaybeMergeableInitFragment<T>, number]} b second pair
|
||||
* @returns {number} sort value
|
||||
*/
|
||||
const sortFragmentWithIndex = ([a, i], [b, j]) => {
|
||||
@@ -37,13 +51,14 @@ const sortFragmentWithIndex = ([a, i], [b, j]) => {
|
||||
|
||||
/**
|
||||
* @template GenerateContext
|
||||
* @implements {MaybeMergeableInitFragment<GenerateContext>}
|
||||
*/
|
||||
class InitFragment {
|
||||
/**
|
||||
* @param {string | Source | undefined} content the source code that will be included as initialization code
|
||||
* @param {number} stage category of initialization code (contribute to order)
|
||||
* @param {number} position position in the category (contribute to order)
|
||||
* @param {string=} key unique key to avoid emitting the same initialization code twice
|
||||
* @param {InitFragmentKey=} key unique key to avoid emitting the same initialization code twice
|
||||
* @param {string | Source=} endContent the source code that will be included at the end of the module
|
||||
*/
|
||||
constructor(content, stage, position, key, endContent) {
|
||||
@@ -64,7 +79,7 @@ class InitFragment {
|
||||
|
||||
/**
|
||||
* @param {GenerateContext} context context
|
||||
* @returns {string | Source=} the source code that will be included at the end of the module
|
||||
* @returns {string | Source | undefined} the source code that will be included at the end of the module
|
||||
*/
|
||||
getEndContent(context) {
|
||||
return this.endContent;
|
||||
@@ -72,9 +87,8 @@ class InitFragment {
|
||||
|
||||
/**
|
||||
* @template Context
|
||||
* @template T
|
||||
* @param {Source} source sources
|
||||
* @param {InitFragment<T>[]} initFragments init fragments
|
||||
* @param {MaybeMergeableInitFragment<Context>[]} initFragments init fragments
|
||||
* @param {Context} context context
|
||||
* @returns {Source} source
|
||||
*/
|
||||
@@ -87,14 +101,10 @@ class InitFragment {
|
||||
.sort(sortFragmentWithIndex);
|
||||
|
||||
// Deduplicate fragments. If a fragment has no key, it is always included.
|
||||
/** @type {Map<InitFragmentKey | symbol, MaybeMergeableInitFragment<Context> | MaybeMergeableInitFragment<Context>[]>} */
|
||||
const keyedFragments = new Map();
|
||||
for (const [fragment] of sortedFragments) {
|
||||
if (
|
||||
typeof (
|
||||
/** @type {InitFragment<T> & { mergeAll?: (fragments: InitFragment<Context>[]) => InitFragment<Context>[] }} */
|
||||
(fragment).mergeAll
|
||||
) === "function"
|
||||
) {
|
||||
if (typeof fragment.mergeAll === "function") {
|
||||
if (!fragment.key) {
|
||||
throw new Error(
|
||||
`InitFragment with mergeAll function must have a valid key: ${fragment.constructor.name}`
|
||||
@@ -110,9 +120,12 @@ class InitFragment {
|
||||
}
|
||||
continue;
|
||||
} else if (typeof fragment.merge === "function") {
|
||||
const oldValue = keyedFragments.get(fragment.key);
|
||||
const key = /** @type {InitFragmentKey} */ (fragment.key);
|
||||
const oldValue =
|
||||
/** @type {MaybeMergeableInitFragment<Context>} */
|
||||
(keyedFragments.get(key));
|
||||
if (oldValue !== undefined) {
|
||||
keyedFragments.set(fragment.key, fragment.merge(oldValue));
|
||||
keyedFragments.set(key, fragment.merge(oldValue));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -123,10 +136,19 @@ class InitFragment {
|
||||
const endContents = [];
|
||||
for (let fragment of keyedFragments.values()) {
|
||||
if (Array.isArray(fragment)) {
|
||||
fragment = fragment[0].mergeAll(fragment);
|
||||
fragment =
|
||||
/** @type {[MaybeMergeableInitFragment<Context> & { mergeAll: (fragments: MaybeMergeableInitFragment<Context>[]) => MaybeMergeableInitFragment<Context>[] }, ...MaybeMergeableInitFragment<Context>[]]} */
|
||||
(fragment)[0].mergeAll(fragment);
|
||||
}
|
||||
concatSource.add(fragment.getContent(context));
|
||||
const endContent = fragment.getEndContent(context);
|
||||
const content =
|
||||
/** @type {MaybeMergeableInitFragment<Context>} */
|
||||
(fragment).getContent(context);
|
||||
if (content) {
|
||||
concatSource.add(content);
|
||||
}
|
||||
const endContent =
|
||||
/** @type {MaybeMergeableInitFragment<Context>} */
|
||||
(fragment).getEndContent(context);
|
||||
if (endContent) {
|
||||
endContents.push(endContent);
|
||||
}
|
||||
@@ -170,16 +192,6 @@ class InitFragment {
|
||||
|
||||
makeSerializable(InitFragment, "webpack/lib/InitFragment");
|
||||
|
||||
InitFragment.prototype.merge =
|
||||
/** @type {TODO} */
|
||||
(undefined);
|
||||
InitFragment.prototype.getImported =
|
||||
/** @type {TODO} */
|
||||
(undefined);
|
||||
InitFragment.prototype.setImported =
|
||||
/** @type {TODO} */
|
||||
(undefined);
|
||||
|
||||
InitFragment.STAGE_CONSTANTS = 10;
|
||||
InitFragment.STAGE_ASYNC_BOUNDARY = 20;
|
||||
InitFragment.STAGE_HARMONY_EXPORTS = 30;
|
||||
|
||||
Reference in New Issue
Block a user