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:
17
node_modules/@jqhtml/core/dist/index.cjs
generated
vendored
17
node_modules/@jqhtml/core/dist/index.cjs
generated
vendored
@@ -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
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/index.cjs.map
generated
vendored
2
node_modules/@jqhtml/core/dist/index.cjs.map
generated
vendored
File diff suppressed because one or more lines are too long
17
node_modules/@jqhtml/core/dist/index.js
generated
vendored
17
node_modules/@jqhtml/core/dist/index.js
generated
vendored
@@ -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
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/index.js.map
generated
vendored
2
node_modules/@jqhtml/core/dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
19
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js
generated
vendored
19
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js
generated
vendored
@@ -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
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js.map
generated
vendored
2
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@jqhtml/core/dist/jquery-plugin.d.ts.map
generated
vendored
2
node_modules/@jqhtml/core/dist/jquery-plugin.d.ts.map
generated
vendored
@@ -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"}
|
||||
2
node_modules/@jqhtml/core/package.json
generated
vendored
2
node_modules/@jqhtml/core/package.json
generated
vendored
@@ -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",
|
||||
|
||||
2
node_modules/@jqhtml/parser/dist/codegen.js
generated
vendored
2
node_modules/@jqhtml/parser/dist/codegen.js
generated
vendored
@@ -1377,7 +1377,7 @@ export class CodeGenerator {
|
||||
for (const [name, component] of this.components) {
|
||||
code += `// Component: ${name}\n`;
|
||||
code += `jqhtml_components.set('${name}', {\n`;
|
||||
code += ` _jqhtml_version: '2.3.29',\n`; // Version will be replaced during build
|
||||
code += ` _jqhtml_version: '2.3.30',\n`; // Version will be replaced during build
|
||||
code += ` name: '${name}',\n`;
|
||||
code += ` tag: '${component.tagName}',\n`;
|
||||
code += ` defaultAttributes: ${this.serializeAttributeObject(component.defaultAttributes)},\n`;
|
||||
|
||||
2
node_modules/@jqhtml/parser/package.json
generated
vendored
2
node_modules/@jqhtml/parser/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jqhtml/parser",
|
||||
"version": "2.3.29",
|
||||
"version": "2.3.30",
|
||||
"description": "JQHTML template parser - converts templates to JavaScript",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
||||
2
node_modules/@jqhtml/ssr/package.json
generated
vendored
2
node_modules/@jqhtml/ssr/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jqhtml/ssr",
|
||||
"version": "2.3.29",
|
||||
"version": "2.3.30",
|
||||
"description": "Server-Side Rendering for JQHTML components - renders components to HTML for SEO",
|
||||
"main": "src/index.js",
|
||||
"bin": {
|
||||
|
||||
2
node_modules/@jqhtml/vscode-extension/.version
generated
vendored
2
node_modules/@jqhtml/vscode-extension/.version
generated
vendored
@@ -1 +1 @@
|
||||
2.3.29
|
||||
2.3.30
|
||||
|
||||
Binary file not shown.
2
node_modules/@jqhtml/vscode-extension/package.json
generated
vendored
2
node_modules/@jqhtml/vscode-extension/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
||||
"name": "@jqhtml/vscode-extension",
|
||||
"displayName": "JQHTML",
|
||||
"description": "Syntax highlighting and language support for JQHTML template files",
|
||||
"version": "2.3.29",
|
||||
"version": "2.3.30",
|
||||
"publisher": "jqhtml",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
|
||||
Reference in New Issue
Block a user