@dxtmisha/functional-basic 1.8.7 → 1.8.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.8.10] - 2026-08-20
6
+
7
+ ### Changed
8
+ - **AI Resource Metadata & Types**:
9
+ - Migrated prompt resource metadata from monolithic `prompts.json` into individual resource descriptor files (`ai-types-list/resources/api-reference.json`).
10
+ - Regenerated AI type definitions and package descriptions with updated AI prompt formats.
11
+ - **Git Configuration**:
12
+ - Added `ai-description.md` and `ai-mcp-resources.json` to `.gitignore`.
13
+
14
+ ## [1.8.9] - 2026-08-16
15
+
16
+ ### Added
17
+ - **LLM Configuration**: Added `llms.txt` configuration for package-level LLM context and documentation indexing.
18
+
19
+ ### Changed
20
+ - **AI Documentation & Types**: Regenerated package descriptions (`ai-description.md`) and updated AI type definitions.
21
+
22
+ ## [1.8.8] - 2026-08-15
23
+
24
+ ### Changed
25
+ - **getMouseClient / getMouseClientX / getMouseClientY**: Updated event parameter type definition from `MouseEvent & TouchEvent` to `MouseEvent | TouchEvent` and refactored coordinate resolution with explicit `'clientX' in event` and `'clientY' in event` property checks.
26
+ - **Tests & Documentation**: Updated unit test suites and wiki documentation files across all languages (ru, en, vi) to match the updated `MouseEvent | TouchEvent` event signature.
27
+
5
28
  ## [1.8.7] - 2026-08-12
6
29
 
7
30
  ### Changed
package/ai-description.md CHANGED
@@ -1,13 +1,6 @@
1
- This package is a comprehensive utility library providing robust tools for API requests, data caching, localization, formatting, and state management. Study it to understand enterprise-grade frontend architecture, robust error handling, SSR-compatible data hydration, and advanced internationalization primitives.
1
+ This package is a comprehensive utility library designed for web applications, providing robust core functions for API requests, caching, internationalization (Geo/Intl), state management, DOM manipulation, and SEO metadata control. An AI assistant must study this file when implementing or refactoring features related to HTTP communication, localized data formatting, browser storage, query/hash state synchronization, or search filtering to ensure adherence to established patterns and type definitions.
2
2
 
3
- API Integration
4
- State Management
5
- Caching
6
- Internationalization
7
- Localization
8
- URL Routing
9
- Event Handling
10
- Meta Tags
3
+ Key Capabilities: API Integration, Request Caching, Internationalization, Cookie Management, Local Storage, URL State, DOM Utilities, Meta Tags, Search Matching, Error Handling
11
4
  ## Mandatory Rules
12
5
  You MUST evaluate whether your task relates to any of the following topics (even if not working directly with this package). If related material is present, you are strictly obligated to read and study the corresponding file before proceeding:
13
- - 'node_modules/@dxtmisha/functional-basic/ai-resources/api-reference.md': Provides code examples and usage patterns for the @dxtmisha/functional-basic library modules including HTTP client, storage, geolocation, and DOM helpers. It helps AI agents understand how to correctly integrate and utilize utility functions for frontend and backend tasks.
6
+ - 'node_modules/@dxtmisha/functional-basic/ai-resources/api-reference.md': Provides code examples and usage patterns for HTTP clients, caching, data storage, localization, and DOM helpers from the @dxtmisha/functional-basic library. Guides AI assistants on how to properly implement core functional utilities in TypeScript applications.
@@ -13,8 +13,8 @@
13
13
  },
14
14
  {
15
15
  "uri": "@dxtmisha/functional-basic/ai-resources/api-reference.md",
16
- "name": "API Reference and Examples (@dxtmisha/functional-basic)",
16
+ "name": "API Reference And Examples (@dxtmisha/functional-basic)",
17
17
  "mimeType": "text/markdown",
18
- "description": "Provides code examples and usage patterns for the @dxtmisha/functional-basic library modules including HTTP client, storage, geolocation, and DOM helpers. It helps AI agents understand how to correctly integrate and utilize utility functions for frontend and backend tasks."
18
+ "description": "Provides code examples and usage patterns for HTTP clients, caching, data storage, localization, and DOM helpers from the @dxtmisha/functional-basic library. Guides AI assistants on how to properly implement core functional utilities in TypeScript applications."
19
19
  }
20
20
  ]
package/ai-types.md CHANGED
@@ -1,4 +1,4 @@
1
- All these methods are in the @dxtmisha/functional-basic (v1.8.7) library.
1
+ All these methods are in the @dxtmisha/functional-basic (v1.8.10) library.
2
2
 
3
3
  /** Check if server runs on localhost @keywords api, localhost */
4
4
  export declare class Api {
@@ -2074,17 +2074,14 @@ export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): numbe
2074
2074
  */
2075
2075
  export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
2076
2076
 
2077
- /** Returns mouse client coordinates from event. @keywords mouse, coordinates, clientX, clientY */
2078
- export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
2077
+ /** Returns the position of the mouse cursor or click. @keywords getMouseClient mouse touch event coordinates */
2078
+ export declare function getMouseClient(event: MouseEvent | TouchEvent): ImageCoordinator;
2079
2079
 
2080
- /**
2081
- * Returns the client X coordinate from mouse or touch events.
2082
- * @keywords mouse client x coordinate touch clientX
2083
- */
2084
- export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
2080
+ /** Returns mouse X coordinate or click location. @keywords mouse client x coordinate */
2081
+ export declare function getMouseClientX(event: MouseEvent | TouchEvent): number;
2085
2082
 
2086
- /** Returns mouse client Y coordinate or click location. @keywords mouse y client cursor coordinate */
2087
- export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
2083
+ /** Returns the Y coordinate of the mouse cursor or touch event. @keywords getMouseClientY mouse touch Y coordinate */
2084
+ export declare function getMouseClientY(event: MouseEvent | TouchEvent): number;
2088
2085
 
2089
2086
  /** Filter object by keys @keywords getObjectByKeys pick keys */
2090
2087
  export declare function getObjectByKeys<T extends Record<string, any>, K extends keyof T>(data: T, keys: K[]): Pick<T, K>;
@@ -6,4 +6,4 @@ import { ImageCoordinator } from '../types/basicTypes';
6
6
  * @param event event object/ объект события
7
7
  * @returns coordinates of the mouse cursor / координаты курсора мыши
8
8
  */
9
- export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
9
+ export declare function getMouseClient(event: MouseEvent | TouchEvent): ImageCoordinator;
@@ -5,4 +5,4 @@
5
5
  * @param event event object/ объект события
6
6
  * @returns X coordinate / координата X
7
7
  */
8
- export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
8
+ export declare function getMouseClientX(event: MouseEvent | TouchEvent): number;
@@ -5,4 +5,4 @@
5
5
  * @param event event object/ объект события
6
6
  * @returns Y coordinate / координата Y
7
7
  */
8
- export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
8
+ export declare function getMouseClientY(event: MouseEvent | TouchEvent): number;
package/dist/library.js CHANGED
@@ -4739,13 +4739,13 @@ function Bn(e) {
4739
4739
  //#region src/functions/getMouseClientX.ts
4740
4740
  function Vn(e) {
4741
4741
  var t, n;
4742
- return (e == null ? void 0 : e.clientX) || (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientX) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientX) || 0;
4742
+ return "clientX" in e ? e.clientX : (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientX) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientX) || 0;
4743
4743
  }
4744
4744
  //#endregion
4745
4745
  //#region src/functions/getMouseClientY.ts
4746
4746
  function Hn(e) {
4747
4747
  var t, n;
4748
- return (e == null ? void 0 : e.clientY) || (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientY) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientY) || 0;
4748
+ return "clientY" in e ? e.clientY : (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientY) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientY) || 0;
4749
4749
  }
4750
4750
  //#endregion
4751
4751
  //#region src/functions/getMouseClient.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional-basic",
3
3
  "private": false,
4
- "version": "1.8.7",
4
+ "version": "1.8.10",
5
5
  "type": "module",
6
6
  "description": "Foundational isomorphic utility library for modern web and SSR development — HTTP client, state storage, i18n localization, SEO metadata, DOM events, formatting, and data utilities. Framework-agnostic, TypeScript-first.",
7
7
  "keywords": [
@@ -1,8 +0,0 @@
1
- [
2
- {
3
- "path": "ai-resources/api-reference.md",
4
- "md5": "5b6b7850a06fbe60c2ff108599c45dc3",
5
- "name": "API Reference and Examples",
6
- "description": "Provides code examples and usage patterns for the @dxtmisha/functional-basic library modules including HTTP client, storage, geolocation, and DOM helpers. It helps AI agents understand how to correctly integrate and utilize utility functions for frontend and backend tasks."
7
- }
8
- ]