@dxtmisha/functional-basic 1.3.5 → 1.3.6
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 +10 -0
- package/dist/library.js +627 -624
- package/dist/src/classes/GeoInstance.d.ts +21 -0
- package/package.json +1 -1
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Cookie key for storing the geo code/
|
|
4
|
+
* Ключ куки для хранения кода гео
|
|
5
|
+
*/
|
|
6
|
+
export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
|
|
2
7
|
/**
|
|
3
8
|
* Base class for working with geographic data.
|
|
4
9
|
* Includes methods for determining location, language, and time zone.
|
|
@@ -173,6 +178,13 @@ export declare class GeoInstance {
|
|
|
173
178
|
* @param timezone new time zone offset / новое смещение часового пояса
|
|
174
179
|
*/
|
|
175
180
|
setTimezone(timezone: number): void;
|
|
181
|
+
/**
|
|
182
|
+
* Internal method to get the geo cookie instance.
|
|
183
|
+
*
|
|
184
|
+
* Внутренний метод для получения экземпляра гео-куки.
|
|
185
|
+
* @returns Cookie instance for geo code / экземпляр куки для гео-кода
|
|
186
|
+
*/
|
|
187
|
+
private getCookie;
|
|
176
188
|
/**
|
|
177
189
|
* Internal method to determine the initial location.
|
|
178
190
|
*
|
|
@@ -180,6 +192,15 @@ export declare class GeoInstance {
|
|
|
180
192
|
* @returns initial location code / начальный код локации
|
|
181
193
|
*/
|
|
182
194
|
private findLocation;
|
|
195
|
+
/**
|
|
196
|
+
* Internal method to determine the location from DOM-specific sources.
|
|
197
|
+
* Returns an empty string (falsy) when not in a DOM runtime.
|
|
198
|
+
*
|
|
199
|
+
* Внутренний метод для определения местоположения из DOM-источников.
|
|
200
|
+
* Возвращает пустую строку (falsy) вне DOM-окружения.
|
|
201
|
+
* @returns location code from DOM or empty string / код локации из DOM или пустая строка
|
|
202
|
+
*/
|
|
203
|
+
private findLocationDom;
|
|
183
204
|
/**
|
|
184
205
|
* Internal method to determine the language from the provided code.
|
|
185
206
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional-basic",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Foundational utility library for modern web development — HTTP client, geolocation, i18n, SEO meta tags, caching, storage, DOM utilities, and more. Framework-agnostic, zero dependencies, TypeScript-first.",
|
|
7
7
|
"keywords": [
|