Add Spa.load_detached_action, decorator identifier rule, npm updates

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-10 20:50:57 +00:00
parent d047b49d39
commit 2f2cf41139
26 changed files with 492 additions and 76 deletions

30
node_modules/.package-lock.json generated vendored
View File

@@ -2211,9 +2211,9 @@
}
},
"node_modules/@jqhtml/core": {
"version": "2.3.13",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/core/-/core-2.3.13.tgz",
"integrity": "sha512-EZiMkfRj0c9r4f2S8fcxNYRMd5FWorkUz5D8p5cKRUa0d6IhAJov3NzKgooHAg52TN6xupWo0bB+jNFQxd6v0w==",
"version": "2.3.14",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/core/-/core-2.3.14.tgz",
"integrity": "sha512-hJkCDrFhE1RnCCu0dG2wl+DqOzOZ92TRz93VlVjkgX+wu6muM0knbM5lsLnK9LD6n6nT13u5pvQEl1DVQVQRLg==",
"license": "MIT",
"dependencies": {
"@rollup/plugin-node-resolve": "^16.0.1",
@@ -2237,9 +2237,9 @@
}
},
"node_modules/@jqhtml/parser": {
"version": "2.3.13",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/parser/-/parser-2.3.13.tgz",
"integrity": "sha512-zzFL0thym8aCx/WQshiYXRipwU09MR1YCLAZMGnZeez+CVEbgymlBH0lsjVexHlHfXOgr31sXGLoJo197WvlTg==",
"version": "2.3.14",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/parser/-/parser-2.3.14.tgz",
"integrity": "sha512-WMpYG1pagvopbLg2dUAc94C62oiyQ2rPhAl4lPcCxL6VDOFeeCBzjdqx/40oie551y/yiCcrd2nr3YeXDh2bnw==",
"license": "MIT",
"dependencies": {
"@types/jest": "^29.5.11",
@@ -2277,9 +2277,9 @@
}
},
"node_modules/@jqhtml/vscode-extension": {
"version": "2.3.13",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.13.tgz",
"integrity": "sha512-EMJkTBovxvPso/p5WToJUiOp1dPFirdbsV+rVuhCMcu8LhbAQsGxiRNm5gYOVEHnlMpFA2eoUX7l5d9C3ySo0A==",
"version": "2.3.14",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.14.tgz",
"integrity": "sha512-I0Z83JBB3b2RQYs/KQ8FNTpuvsvgH15MvByMvEsffGRCnEr3ehX4BCxWizjaIrpqPzakQjIZQSe1KW9mNbmGfw==",
"license": "MIT",
"engines": {
"vscode": "^1.74.0"
@@ -3997,9 +3997,9 @@
"license": "MIT"
},
"node_modules/baseline-browser-mapping": {
"version": "2.9.5",
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.5.tgz",
"integrity": "sha512-D5vIoztZOq1XM54LUdttJVc96ggEsIfju2JBvht06pSzpckp3C7HReun67Bghzrtdsq9XdMGbSSB3v3GhMNmAA==",
"version": "2.9.6",
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.6.tgz",
"integrity": "sha512-v9BVVpOTLB59C9E7aSnmIF8h7qRsFpx+A2nugVMTszEOMcfjlZMsXRm4LF23I3Z9AJxc8ANpIvzbzONoX9VJlg==",
"license": "Apache-2.0",
"bin": {
"baseline-browser-mapping": "dist/cli.js"
@@ -10795,9 +10795,9 @@
"license": "MIT"
},
"node_modules/sass": {
"version": "1.95.0",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.95.0.tgz",
"integrity": "sha512-9QMjhLq+UkOg/4bb8Lt8A+hJZvY3t+9xeZMKSBtBEgxrXA3ed5Ts4NDreUkYgJP1BTmrscQE/xYhf7iShow6lw==",
"version": "1.95.1",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.95.1.tgz",
"integrity": "sha512-uPoDh5NIEZV4Dp5GBodkmNY9tSQfXY02pmCcUo+FR1P+x953HGkpw+vV28D4IqYB6f8webZtwoSaZaiPtpTeMg==",
"license": "MIT",
"dependencies": {
"chokidar": "^4.0.0",

View File

@@ -50,6 +50,7 @@ export declare class Jqhtml_Component {
private _should_cache_html_after_ready;
private _is_dynamic;
private _on_render_complete;
private _use_cached_data_hit;
constructor(element?: any, args?: Record<string, any>);
/**
* Protect lifecycle methods from manual invocation

View File

@@ -1 +1 @@
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAcH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,CAAC,EAAE;YACb,GAAG,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;YACjF,UAAU,EAAE,MAAM,IAAI,CAAC;SACxB,CAAC;KACH;CACF;AAED,qBAAa,gBAAgB;IAE3B,MAAM,CAAC,kBAAkB,UAAQ;IACjC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAGtB,CAAC,EAAE,GAAG,CAAC;IACP,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAK;IAGzB,OAAO,CAAC,kBAAkB,CAAmB;IAC7C,OAAO,CAAC,aAAa,CAAiC;IACtD,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,mBAAmB,CAAuB;IAClD,OAAO,CAAC,oBAAoB,CAAwE;IACpG,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O,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,UAAU;IAUlB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,0BAA0B;CAqEnC"}

View File

@@ -567,7 +567,14 @@ function process_tag_to_html(instruction, html, tagElements, components, context
* Process a component instruction to HTML
*/
function process_component_to_html(instruction, html, components, context) {
const [componentName, props, contentOrSlots] = instruction.comp;
const [componentName, originalProps, contentOrSlots] = instruction.comp;
// Propagate use_cached_data from parent to child if parent has it set
// This allows a parent component with use_cached_data=true to automatically
// pass this behavior to all child components rendered in its template
let props = originalProps;
if (context.args?.use_cached_data === true && props.use_cached_data === undefined) {
props = { ...originalProps, use_cached_data: true };
}
// Determine if third parameter is a function (default content) or object (named slots)
let contentFn;
let slots;
@@ -1135,6 +1142,8 @@ class Jqhtml_Component {
this._is_dynamic = false; // True if this.data changed during on_load() (used for HTML cache sync)
// on_render synchronization (HTML cache mode)
this._on_render_complete = false; // True after on_render() has been called post-on_load
// use_cached_data feature - skip on_load() when cache hit occurs
this._use_cached_data_hit = false; // True if use_cached_data=true AND cache was used
this._cid = this._generate_cid();
this._lifecycle_manager = LifecycleManager.get_instance();
// Create or wrap element
@@ -1729,6 +1738,12 @@ class Jqhtml_Component {
console.log(`[Cache html] Component ${this._cid} (${this.component_name()}) cache miss`, { cache_key: html_cache_key });
}
}
// Warn if use_cached_data is set in html cache mode - it has no effect
if (this.args.use_cached_data === true) {
console.warn(`[JQHTML] Component "${this.component_name()}" has use_cached_data=true but cache mode is 'html'.\n` +
`use_cached_data only applies to 'data' cache mode. In 'html' mode, the entire rendered HTML is cached.\n` +
`The use_cached_data flag will be ignored.`);
}
}
else {
// Data cache mode (default) - check for cached data to hydrate this.data
@@ -1736,8 +1751,17 @@ class Jqhtml_Component {
if (cached_data !== null && typeof cached_data === 'object') {
// Hydrate this.data with cached data
this.data = cached_data;
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) hydrated from cache`, { cache_key, data: cached_data });
// If use_cached_data=true, skip on_load() entirely - use cached data as final data
if (this.args.use_cached_data === true) {
this._use_cached_data_hit = true;
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) using cached data (use_cached_data=true, skipping on_load)`, { cache_key, data: cached_data });
}
}
else {
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) hydrated from cache`, { cache_key, data: cached_data });
}
}
}
else {
@@ -1768,6 +1792,15 @@ class Jqhtml_Component {
if (this._stopped || this._ready_state >= 2)
return;
this._log_lifecycle('load', 'start');
// use_cached_data feature: If cache hit occurred and use_cached_data=true, skip on_load() entirely
// The cached data is already in this.data from create() phase
if (this._use_cached_data_hit) {
this._ready_state = 2;
this._update_debug_attrs();
this._log_lifecycle('load', 'complete (use_cached_data - skipped on_load)');
this.trigger('load');
return;
}
// Restore this.data to initial state from snapshot (skip on first load)
// This ensures on_load() always starts with clean state
const is_first_load = this._ready_state < 2;
@@ -4451,6 +4484,10 @@ class Load_Coordinator {
if (key.startsWith('_')) {
continue; // Skip internal properties
}
// Skip framework properties that shouldn't affect cache identity
if (key === 'use_cached_data') {
continue;
}
const value = args[key];
const value_type = typeof value;
// Handle primitives (string, number, boolean, null, undefined)
@@ -4667,7 +4704,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.13';
const version = '2.3.14';
// Default export with all functionality
const jqhtml = {
// Core

File diff suppressed because one or more lines are too long

View File

@@ -563,7 +563,14 @@ function process_tag_to_html(instruction, html, tagElements, components, context
* Process a component instruction to HTML
*/
function process_component_to_html(instruction, html, components, context) {
const [componentName, props, contentOrSlots] = instruction.comp;
const [componentName, originalProps, contentOrSlots] = instruction.comp;
// Propagate use_cached_data from parent to child if parent has it set
// This allows a parent component with use_cached_data=true to automatically
// pass this behavior to all child components rendered in its template
let props = originalProps;
if (context.args?.use_cached_data === true && props.use_cached_data === undefined) {
props = { ...originalProps, use_cached_data: true };
}
// Determine if third parameter is a function (default content) or object (named slots)
let contentFn;
let slots;
@@ -1131,6 +1138,8 @@ class Jqhtml_Component {
this._is_dynamic = false; // True if this.data changed during on_load() (used for HTML cache sync)
// on_render synchronization (HTML cache mode)
this._on_render_complete = false; // True after on_render() has been called post-on_load
// use_cached_data feature - skip on_load() when cache hit occurs
this._use_cached_data_hit = false; // True if use_cached_data=true AND cache was used
this._cid = this._generate_cid();
this._lifecycle_manager = LifecycleManager.get_instance();
// Create or wrap element
@@ -1725,6 +1734,12 @@ class Jqhtml_Component {
console.log(`[Cache html] Component ${this._cid} (${this.component_name()}) cache miss`, { cache_key: html_cache_key });
}
}
// Warn if use_cached_data is set in html cache mode - it has no effect
if (this.args.use_cached_data === true) {
console.warn(`[JQHTML] Component "${this.component_name()}" has use_cached_data=true but cache mode is 'html'.\n` +
`use_cached_data only applies to 'data' cache mode. In 'html' mode, the entire rendered HTML is cached.\n` +
`The use_cached_data flag will be ignored.`);
}
}
else {
// Data cache mode (default) - check for cached data to hydrate this.data
@@ -1732,8 +1747,17 @@ class Jqhtml_Component {
if (cached_data !== null && typeof cached_data === 'object') {
// Hydrate this.data with cached data
this.data = cached_data;
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) hydrated from cache`, { cache_key, data: cached_data });
// If use_cached_data=true, skip on_load() entirely - use cached data as final data
if (this.args.use_cached_data === true) {
this._use_cached_data_hit = true;
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) using cached data (use_cached_data=true, skipping on_load)`, { cache_key, data: cached_data });
}
}
else {
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) hydrated from cache`, { cache_key, data: cached_data });
}
}
}
else {
@@ -1764,6 +1788,15 @@ class Jqhtml_Component {
if (this._stopped || this._ready_state >= 2)
return;
this._log_lifecycle('load', 'start');
// use_cached_data feature: If cache hit occurred and use_cached_data=true, skip on_load() entirely
// The cached data is already in this.data from create() phase
if (this._use_cached_data_hit) {
this._ready_state = 2;
this._update_debug_attrs();
this._log_lifecycle('load', 'complete (use_cached_data - skipped on_load)');
this.trigger('load');
return;
}
// Restore this.data to initial state from snapshot (skip on first load)
// This ensures on_load() always starts with clean state
const is_first_load = this._ready_state < 2;
@@ -4447,6 +4480,10 @@ class Load_Coordinator {
if (key.startsWith('_')) {
continue; // Skip internal properties
}
// Skip framework properties that shouldn't affect cache identity
if (key === 'use_cached_data') {
continue;
}
const value = args[key];
const value_type = typeof value;
// Handle primitives (string, number, boolean, null, undefined)
@@ -4663,7 +4700,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.13';
const version = '2.3.14';
// 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":"instruction-processor.d.ts","sourceRoot":"","sources":["../src/instruction-processor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIlD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC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G,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAClL;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC;CAClF;AAED,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,eAAe,GAAG,MAAM,CAAC;AAqB/G,wBAAgB,GAAG,IAAI,MAAM,CA2C5B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,WAAW,EAAE,EAC3B,MAAM,EAAE,GAAG,EACX,OAAO,EAAE,gBAAgB,EACzB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GACtC,IAAI,CAwCN;AAsdD;;GAEG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAW1F"}

View File

@@ -1,5 +1,5 @@
/**
* JQHTML Core v2.3.13
* JQHTML Core v2.3.14
* (c) 2025 JQHTML Team
* Released under the MIT License
*/
@@ -568,7 +568,14 @@ function process_tag_to_html(instruction, html, tagElements, components, context
* Process a component instruction to HTML
*/
function process_component_to_html(instruction, html, components, context) {
const [componentName, props, contentOrSlots] = instruction.comp;
const [componentName, originalProps, contentOrSlots] = instruction.comp;
// Propagate use_cached_data from parent to child if parent has it set
// This allows a parent component with use_cached_data=true to automatically
// pass this behavior to all child components rendered in its template
let props = originalProps;
if (context.args?.use_cached_data === true && props.use_cached_data === undefined) {
props = { ...originalProps, use_cached_data: true };
}
// Determine if third parameter is a function (default content) or object (named slots)
let contentFn;
let slots;
@@ -1136,6 +1143,8 @@ class Jqhtml_Component {
this._is_dynamic = false; // True if this.data changed during on_load() (used for HTML cache sync)
// on_render synchronization (HTML cache mode)
this._on_render_complete = false; // True after on_render() has been called post-on_load
// use_cached_data feature - skip on_load() when cache hit occurs
this._use_cached_data_hit = false; // True if use_cached_data=true AND cache was used
this._cid = this._generate_cid();
this._lifecycle_manager = LifecycleManager.get_instance();
// Create or wrap element
@@ -1730,6 +1739,12 @@ class Jqhtml_Component {
console.log(`[Cache html] Component ${this._cid} (${this.component_name()}) cache miss`, { cache_key: html_cache_key });
}
}
// Warn if use_cached_data is set in html cache mode - it has no effect
if (this.args.use_cached_data === true) {
console.warn(`[JQHTML] Component "${this.component_name()}" has use_cached_data=true but cache mode is 'html'.\n` +
`use_cached_data only applies to 'data' cache mode. In 'html' mode, the entire rendered HTML is cached.\n` +
`The use_cached_data flag will be ignored.`);
}
}
else {
// Data cache mode (default) - check for cached data to hydrate this.data
@@ -1737,8 +1752,17 @@ class Jqhtml_Component {
if (cached_data !== null && typeof cached_data === 'object') {
// Hydrate this.data with cached data
this.data = cached_data;
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) hydrated from cache`, { cache_key, data: cached_data });
// If use_cached_data=true, skip on_load() entirely - use cached data as final data
if (this.args.use_cached_data === true) {
this._use_cached_data_hit = true;
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) using cached data (use_cached_data=true, skipping on_load)`, { cache_key, data: cached_data });
}
}
else {
if (window.jqhtml?.debug?.verbose) {
console.log(`[Cache data] Component ${this._cid} (${this.component_name()}) hydrated from cache`, { cache_key, data: cached_data });
}
}
}
else {
@@ -1769,6 +1793,15 @@ class Jqhtml_Component {
if (this._stopped || this._ready_state >= 2)
return;
this._log_lifecycle('load', 'start');
// use_cached_data feature: If cache hit occurred and use_cached_data=true, skip on_load() entirely
// The cached data is already in this.data from create() phase
if (this._use_cached_data_hit) {
this._ready_state = 2;
this._update_debug_attrs();
this._log_lifecycle('load', 'complete (use_cached_data - skipped on_load)');
this.trigger('load');
return;
}
// Restore this.data to initial state from snapshot (skip on first load)
// This ensures on_load() always starts with clean state
const is_first_load = this._ready_state < 2;
@@ -4452,6 +4485,10 @@ class Load_Coordinator {
if (key.startsWith('_')) {
continue; // Skip internal properties
}
// Skip framework properties that shouldn't affect cache identity
if (key === 'use_cached_data') {
continue;
}
const value = args[key];
const value_type = typeof value;
// Handle primitives (string, number, boolean, null, undefined)
@@ -4668,7 +4705,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.13';
const version = '2.3.14';
// 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":"load-coordinator.d.ts","sourceRoot":"","sources":["../src/load-coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAWvD,MAAM,WAAW,mBAAmB;IAChC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,qBAAa,gBAAgB;IACzB,OAAO,CAAC,MAAM,CAAC,SAAS,CAA6C;IAErE;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,uBAAuB,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,mBAAmB;IAqEtF;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO;IAoBnE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAClB,SAAS,EAAE,gBAAgB,EAC3B,eAAe,EAAE,OAAO,CAA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AAC,sBAAsB;IA8CrC;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAuC3E;;OAEG;IACH,MAAM,CAAC,kBAAkB,IAAI,GAAG;IAahC;;OAEG;IACH,MAAM,CAAC,SAAS,IAAI,IAAI;CAG3B"}

View File

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

View File

@@ -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.13',\n`; // Version will be replaced during build
code += ` _jqhtml_version: '2.3.14',\n`; // Version will be replaced during build
code += ` name: '${name}',\n`;
code += ` tag: '${component.tagName}',\n`;
code += ` defaultAttributes: ${this.serializeAttributeObject(component.defaultAttributes)},\n`;

View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/parser",
"version": "2.3.13",
"version": "2.3.14",
"description": "JQHTML template parser - converts templates to JavaScript",
"type": "module",
"main": "dist/index.js",

View File

@@ -1 +1 @@
2.3.13
2.3.14

View File

@@ -2,7 +2,7 @@
"name": "@jqhtml/vscode-extension",
"displayName": "JQHTML",
"description": "Syntax highlighting and language support for JQHTML template files",
"version": "2.3.13",
"version": "2.3.14",
"publisher": "jqhtml",
"license": "MIT",
"publishConfig": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
{
"name": "baseline-browser-mapping",
"main": "./dist/index.cjs",
"version": "2.9.5",
"version": "2.9.6",
"description": "A library for obtaining browser versions with their maximum supported Baseline feature set and Widely Available status.",
"exports": {
".": {
@@ -42,7 +42,7 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@mdn/browser-compat-data": "^7.1.24",
"@mdn/browser-compat-data": "^7.2.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.3",
"@types/node": "^22.15.17",
@@ -55,7 +55,7 @@
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.35.0",
"web-features": "^3.10.0"
"web-features": "^3.11.0"
},
"repository": {
"type": "git",

2
node_modules/sass/package.json generated vendored
View File

@@ -1 +1 @@
{"name":"sass","description":"A pure JavaScript implementation of Sass.","license":"MIT","bugs":"https://github.com/sass/dart-sass/issues","homepage":"https://github.com/sass/dart-sass","repository":{"type":"git","url":"https://github.com/sass/dart-sass"},"author":{"name":"Natalie Weizenbaum","email":"nweiz@google.com","url":"https://github.com/nex3"},"engines":{"node":">=14.0.0"},"dependencies":{"chokidar":"^4.0.0","immutable":"^5.0.2","source-map-js":">=0.6.2 <2.0.0"},"optionalDependencies":{"@parcel/watcher":"^2.4.1"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","exports":{"types":"./types/index.d.ts","node":{"require":"./sass.node.js","default":"./sass.node.mjs"},"default":{"require":"./sass.default.cjs","default":"./sass.default.js"}},"version":"1.95.0","bin":{"sass":"sass.js"},"main":"sass.node.js"}
{"name":"sass","description":"A pure JavaScript implementation of Sass.","license":"MIT","bugs":"https://github.com/sass/dart-sass/issues","homepage":"https://github.com/sass/dart-sass","repository":{"type":"git","url":"https://github.com/sass/dart-sass"},"author":{"name":"Natalie Weizenbaum","email":"nweiz@google.com","url":"https://github.com/nex3"},"engines":{"node":">=14.0.0"},"dependencies":{"chokidar":"^4.0.0","immutable":"^5.0.2","source-map-js":">=0.6.2 <2.0.0"},"optionalDependencies":{"@parcel/watcher":"^2.4.1"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","exports":{"types":"./types/index.d.ts","node":{"require":"./sass.node.js","default":"./sass.node.mjs"},"default":{"require":"./sass.default.cjs","default":"./sass.default.js"}},"version":"1.95.1","bin":{"sass":"sass.js"},"main":"sass.node.js"}

31
node_modules/sass/sass.dart.js generated vendored
View File

@@ -130,7 +130,7 @@ self.fs = _cliPkgRequires.fs;
self.nodeModule = _cliPkgRequires.nodeModule;
self.stream = _cliPkgRequires.stream;
self.util = _cliPkgRequires.util;
// Generated by dart2js (, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.10.3.
// Generated by dart2js (, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.10.4.
// The code supports the following hooks:
// dartPrint(message):
// if this function is defined it is called instead of the Dart [print]
@@ -9791,19 +9791,18 @@ self.util = _cliPkgRequires.util;
t1.Stylesheet$internal$5$globalVariables$plainCss(children, span, parseTimeWarnings, globalVariables, plainCss);
return t1;
},
Stylesheet_Stylesheet$parse(contents, syntax, url) {
var error, stackTrace, url0, t1, exception, t2,
parseSelectors = false;
Stylesheet_Stylesheet$parse(contents, syntax, parseSelectors, url) {
var error, stackTrace, url0, t1, exception, t2;
try {
switch (syntax.index) {
case 1:
t1 = new A.SassParser(parseSelectors, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.FileSpan), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null).parse$0(0);
t1 = new A.SassParser(false, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.FileSpan), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null).parse$0(0);
return t1;
case 0:
t1 = A.ScssParser$(contents, parseSelectors, url).parse$0(0);
t1 = A.ScssParser$(contents, false, url).parse$0(0);
return t1;
case 2:
t1 = new A.CssParser(parseSelectors, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.FileSpan), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null).parse$0(0);
t1 = new A.CssParser(false, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.FileSpan), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null).parse$0(0);
return t1;
}
} catch (exception) {
@@ -10176,7 +10175,7 @@ self.util = _cliPkgRequires.util;
case 5:
// else
t1 = A.readFile(path);
stylesheet = A.Stylesheet_Stylesheet$parse(t1, syntax, $.$get$context().toUri$1(path));
stylesheet = A.Stylesheet_Stylesheet$parse(t1, syntax, false, $.$get$context().toUri$1(path));
case 4:
// join
$async$goto = 7;
@@ -10216,7 +10215,7 @@ self.util = _cliPkgRequires.util;
t4.addAll$1(0, futureDeprecations);
logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, t4, !verbose);
logger.validate$0();
stylesheet = A.Stylesheet_Stylesheet$parse(source, syntax, null);
stylesheet = A.Stylesheet_Stylesheet$parse(source, syntax, false, null);
t1 = stylesheet.span;
_0_0 = t1.get$sourceUrl(t1);
if (type$.Uri._is(_0_0))
@@ -11074,7 +11073,7 @@ self.util = _cliPkgRequires.util;
t11.addAll$1(0, t12);
logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t13, type$.int), t4, t14, t10, t11, !t8);
logger.validate$0();
stylesheet = A.Stylesheet_Stylesheet$parse(t2, t3 == null ? B.Syntax_SCSS_0_scss : t3, null);
stylesheet = A.Stylesheet_Stylesheet$parse(t2, t3 == null ? B.Syntax_SCSS_0_scss : t3, false, null);
t2 = stylesheet.span;
_0_0 = t2.get$sourceUrl(t2);
if (type$.Uri._is(_0_0))
@@ -11137,7 +11136,7 @@ self.util = _cliPkgRequires.util;
t3 = A.readFile(source);
if (t2 == null)
t2 = A.Syntax_forPath(source);
stylesheet = A.Stylesheet_Stylesheet$parse(t3, t2, $.$get$context().toUri$1(source));
stylesheet = A.Stylesheet_Stylesheet$parse(t3, t2, false, $.$get$context().toUri$1(source));
}
result0 = A._compileStylesheet(stylesheet, logger, importCache, null, $.$get$FilesystemImporter_cwd(), null, t4, true, null, null, t5, t7, t1);
logger.summarize$1$js(false);
@@ -28780,7 +28779,7 @@ self.util = _cliPkgRequires.util;
J.set$deprecations$x(self.exports, A.jsify($.$get$deprecations()));
J.set$Version$x(self.exports, $.$get$versionClass());
J.set$loadParserExports_$x(self.exports, A.allowInterop(A.parser0__loadParserExports$closure()));
J.set$info$x(self.exports, "dart-sass\t1.95.0\t(Sass Compiler)\t[Dart]\ndart2js\t3.10.3\t(Dart Compiler)\t[Dart]");
J.set$info$x(self.exports, "dart-sass\t1.95.1\t(Sass Compiler)\t[Dart]\ndart2js\t3.10.4\t(Dart Compiler)\t[Dart]");
A.updateCanonicalizeContextPrototype();
A.updateSourceSpanPrototype();
J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
@@ -34059,7 +34058,7 @@ self.util = _cliPkgRequires.util;
switch ($async$goto) {
case 0:
// Function start
$async$returnValue = "1.95.0 compiled with dart2js 3.10.3";
$async$returnValue = "1.95.1 compiled with dart2js 3.10.4";
// goto return
$async$goto = 1;
break;
@@ -50996,7 +50995,7 @@ self.util = _cliPkgRequires.util;
t3 = result.contents;
t1 = result.syntax;
t2 = $async$self.originalUrl.resolveUri$1(t2);
$async$returnValue = A.Stylesheet_Stylesheet$parse(t3, t1, t2);
$async$returnValue = A.Stylesheet_Stylesheet$parse(t3, t1, false, t2);
// goto return
$async$goto = 1;
break;
@@ -52612,7 +52611,7 @@ self.util = _cliPkgRequires.util;
}
try {
argVersion = A.Version_Version$parse(id);
sassVersion = A.Version_Version$parse("1.95.0");
sassVersion = A.Version_Version$parse("1.95.1");
if (J.compareTo$1$ns(argVersion, sassVersion) > 0)
A.ExecutableOptions__fail("Invalid version " + A.S(argVersion) + ". --fatal-deprecation requires a version less than or equal to the current Dart Sass version.");
J.addAll$1$ax(deprecations, A.Deprecation_forVersion(argVersion));
@@ -56567,7 +56566,7 @@ self.util = _cliPkgRequires.util;
t3 = result.contents;
t1 = result.syntax;
t4 = _this.originalUrl;
return A.Stylesheet_Stylesheet$parse(t3, t1, t4 == null ? t2 : t4.resolveUri$1(t2));
return A.Stylesheet_Stylesheet$parse(t3, t1, false, t4 == null ? t2 : t4.resolveUri$1(t2));
},
$signature: 84
};