Update jqhtml packages to latest versions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-24 23:25:34 +00:00
parent 3834303c8a
commit 1f32bed10a
16 changed files with 83 additions and 38 deletions

View File

@@ -4900,6 +4900,21 @@ function init_jquery_plugin(jQuery) {
jQuery.fn.on = function (...args) {
// Get event name (first argument)
const eventName = typeof args[0] === 'string' ? args[0].split('.')[0] : null; // Strip namespace
// Check for incorrect [data-sid usage in delegated selector (second argument)
// Pattern: .on('click', '[data-sid="btn"]', handler)
if (typeof args[1] === 'string' && args[1].includes('[data-sid')) {
throw new Error(`[JQHTML] Incorrect use of data-sid in .on() delegated selector: "${args[1]}"\n\n` +
`data-sid is a scoped ID system - the data-sid attribute exists only for debugging in DevTools ` +
`and may be disabled in production.\n\n` +
`CORRECT USAGE:\n` +
` • In templates: $sid="my_element"\n` +
` • In JavaScript: this.$sid('my_element').on('${args[0]}', handler)\n\n` +
`$sid creates a unique ID scoped to the parent component, accessible only from within that component.\n\n` +
`ALTERNATIVES for event delegation:\n` +
` • data-* attribute: <div data-role="btn"> → .on('${args[0]}', '[data-role="btn"]', handler)\n` +
` • BEM class name: <div class="MyComponent__btn"> → .on('${args[0]}', '.MyComponent__btn', handler)\n` +
` • Custom attribute: <div data-subelement="btn"> → .on('${args[0]}', '[data-subelement="btn"]', handler)`);
}
// Check first element for Component class and warn if needed
if (eventName && !COMMON_JQUERY_EVENTS.has(eventName) && this.length > 0) {
const firstEl = this.first();
@@ -4966,7 +4981,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.29';
const version = '2.3.30';
// Default export with all functionality
const jqhtml = {
// Core

File diff suppressed because one or more lines are too long

View File

@@ -4896,6 +4896,21 @@ function init_jquery_plugin(jQuery) {
jQuery.fn.on = function (...args) {
// Get event name (first argument)
const eventName = typeof args[0] === 'string' ? args[0].split('.')[0] : null; // Strip namespace
// Check for incorrect [data-sid usage in delegated selector (second argument)
// Pattern: .on('click', '[data-sid="btn"]', handler)
if (typeof args[1] === 'string' && args[1].includes('[data-sid')) {
throw new Error(`[JQHTML] Incorrect use of data-sid in .on() delegated selector: "${args[1]}"\n\n` +
`data-sid is a scoped ID system - the data-sid attribute exists only for debugging in DevTools ` +
`and may be disabled in production.\n\n` +
`CORRECT USAGE:\n` +
` • In templates: $sid="my_element"\n` +
` • In JavaScript: this.$sid('my_element').on('${args[0]}', handler)\n\n` +
`$sid creates a unique ID scoped to the parent component, accessible only from within that component.\n\n` +
`ALTERNATIVES for event delegation:\n` +
` • data-* attribute: <div data-role="btn"> → .on('${args[0]}', '[data-role="btn"]', handler)\n` +
` • BEM class name: <div class="MyComponent__btn"> → .on('${args[0]}', '.MyComponent__btn', handler)\n` +
` • Custom attribute: <div data-subelement="btn"> → .on('${args[0]}', '[data-subelement="btn"]', handler)`);
}
// Check first element for Component class and warn if needed
if (eventName && !COMMON_JQUERY_EVENTS.has(eventName) && this.length > 0) {
const firstEl = this.first();
@@ -4962,7 +4977,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.29';
const version = '2.3.30';
// Default export with all functionality
const jqhtml = {
// Core

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
/**
* JQHTML Core v2.3.29
* JQHTML Core v2.3.30
* (c) 2025 JQHTML Team
* Released under the MIT License
*/
@@ -4901,6 +4901,21 @@ function init_jquery_plugin(jQuery) {
jQuery.fn.on = function (...args) {
// Get event name (first argument)
const eventName = typeof args[0] === 'string' ? args[0].split('.')[0] : null; // Strip namespace
// Check for incorrect [data-sid usage in delegated selector (second argument)
// Pattern: .on('click', '[data-sid="btn"]', handler)
if (typeof args[1] === 'string' && args[1].includes('[data-sid')) {
throw new Error(`[JQHTML] Incorrect use of data-sid in .on() delegated selector: "${args[1]}"\n\n` +
`data-sid is a scoped ID system - the data-sid attribute exists only for debugging in DevTools ` +
`and may be disabled in production.\n\n` +
`CORRECT USAGE:\n` +
` • In templates: $sid="my_element"\n` +
` • In JavaScript: this.$sid('my_element').on('${args[0]}', handler)\n\n` +
`$sid creates a unique ID scoped to the parent component, accessible only from within that component.\n\n` +
`ALTERNATIVES for event delegation:\n` +
` • data-* attribute: <div data-role="btn"> → .on('${args[0]}', '[data-role="btn"]', handler)\n` +
` • BEM class name: <div class="MyComponent__btn"> → .on('${args[0]}', '.MyComponent__btn', handler)\n` +
` • Custom attribute: <div data-subelement="btn"> → .on('${args[0]}', '[data-subelement="btn"]', handler)`);
}
// Check first element for Component class and warn if needed
if (eventName && !COMMON_JQUERY_EVENTS.has(eventName) && this.length > 0) {
const firstEl = this.first();
@@ -4967,7 +4982,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.29';
const version = '2.3.30';
// Default export with all functionality
const jqhtml = {
// Core

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"jquery-plugin.d.ts","sourceRoot":"","sources":["../src/jquery-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAQpE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;WAEG;QACH,SAAS,IAAI,gBAAgB,GAAG,IAAI,CAAC;QACrC,SAAS,CAAC,cAAc,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAC9F,SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAE/E;;;;;;;WAOG;QACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KACvC;CACF;AAGD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CAwZpD"}
{"version":3,"file":"jquery-plugin.d.ts","sourceRoot":"","sources":["../src/jquery-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAQpE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;WAEG;QACH,SAAS,IAAI,gBAAgB,GAAG,IAAI,CAAC;QACrC,SAAS,CAAC,cAAc,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAC9F,SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAE/E;;;;;;;WAOG;QACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KACvC;CACF;AAGD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CA0apD"}

View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/core",
"version": "2.3.29",
"version": "2.3.30",
"description": "Core runtime library for JQHTML",
"type": "module",
"main": "./dist/index.js",