@dxtmisha/functional-basic 1.8.10 → 1.10.1

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.
Files changed (199) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/ai-description.md +10 -3
  3. package/ai-mcp-resources.json +14 -2
  4. package/ai-resources/design-config.md +104 -0
  5. package/ai-resources/error-center.md +150 -0
  6. package/ai-types.md +1091 -1744
  7. package/dist/library.d.ts +9991 -189
  8. package/dist/library.js +851 -835
  9. package/package.json +7 -2
  10. package/dist/classes/Api.d.ts +0 -209
  11. package/dist/classes/ApiCache.d.ts +0 -152
  12. package/dist/classes/ApiDataReturn.d.ts +0 -79
  13. package/dist/classes/ApiDefault.d.ts +0 -49
  14. package/dist/classes/ApiError.d.ts +0 -39
  15. package/dist/classes/ApiErrorItem.d.ts +0 -70
  16. package/dist/classes/ApiErrorStorage.d.ts +0 -92
  17. package/dist/classes/ApiHeaders.d.ts +0 -37
  18. package/dist/classes/ApiHydration.d.ts +0 -40
  19. package/dist/classes/ApiInstance.d.ts +0 -299
  20. package/dist/classes/ApiPreparation.d.ts +0 -58
  21. package/dist/classes/ApiResponse.d.ts +0 -154
  22. package/dist/classes/ApiStatus.d.ts +0 -131
  23. package/dist/classes/BroadcastMessage.d.ts +0 -76
  24. package/dist/classes/Cache.d.ts +0 -39
  25. package/dist/classes/CacheItem.d.ts +0 -65
  26. package/dist/classes/CacheStatic.d.ts +0 -36
  27. package/dist/classes/Cookie.d.ts +0 -54
  28. package/dist/classes/CookieBlock.d.ts +0 -30
  29. package/dist/classes/CookieBlockInstance.d.ts +0 -24
  30. package/dist/classes/CookieStorage.d.ts +0 -175
  31. package/dist/classes/DataStorage.d.ts +0 -107
  32. package/dist/classes/Datetime.d.ts +0 -571
  33. package/dist/classes/ErrorCenter.d.ts +0 -86
  34. package/dist/classes/ErrorCenterHandler.d.ts +0 -85
  35. package/dist/classes/ErrorCenterInstance.d.ts +0 -101
  36. package/dist/classes/EventItem.d.ts +0 -230
  37. package/dist/classes/Formatters.d.ts +0 -157
  38. package/dist/classes/Geo.d.ts +0 -172
  39. package/dist/classes/GeoFlag.d.ts +0 -135
  40. package/dist/classes/GeoInstance.d.ts +0 -264
  41. package/dist/classes/GeoIntl.d.ts +0 -291
  42. package/dist/classes/GeoPhone.d.ts +0 -110
  43. package/dist/classes/GeoUnit.d.ts +0 -207
  44. package/dist/classes/Global.d.ts +0 -29
  45. package/dist/classes/Hash.d.ts +0 -57
  46. package/dist/classes/HashInstance.d.ts +0 -29
  47. package/dist/classes/Icons.d.ts +0 -128
  48. package/dist/classes/Loading.d.ts +0 -62
  49. package/dist/classes/LoadingInstance.d.ts +0 -87
  50. package/dist/classes/Meta.d.ts +0 -189
  51. package/dist/classes/MetaManager.d.ts +0 -123
  52. package/dist/classes/MetaOg.d.ts +0 -120
  53. package/dist/classes/MetaStatic.d.ts +0 -179
  54. package/dist/classes/MetaTwitter.d.ts +0 -120
  55. package/dist/classes/Query.d.ts +0 -57
  56. package/dist/classes/QueryInstance.d.ts +0 -29
  57. package/dist/classes/ResumableTimer.d.ts +0 -85
  58. package/dist/classes/ScrollbarWidth.d.ts +0 -52
  59. package/dist/classes/SearchList.d.ts +0 -132
  60. package/dist/classes/SearchListData.d.ts +0 -144
  61. package/dist/classes/SearchListItem.d.ts +0 -49
  62. package/dist/classes/SearchListMatcher.d.ts +0 -58
  63. package/dist/classes/SearchListOptions.d.ts +0 -66
  64. package/dist/classes/ServerStorage.d.ts +0 -110
  65. package/dist/classes/StorageCallback.d.ts +0 -86
  66. package/dist/classes/Translate.d.ts +0 -117
  67. package/dist/classes/TranslateFile.d.ts +0 -81
  68. package/dist/classes/TranslateInstance.d.ts +0 -203
  69. package/dist/classes/UrlInstanceAbstract.d.ts +0 -98
  70. package/dist/classes/UrlItem.d.ts +0 -119
  71. package/dist/functions/addTagHighlightMatch.d.ts +0 -11
  72. package/dist/functions/anyToString.d.ts +0 -10
  73. package/dist/functions/applyTemplate.d.ts +0 -10
  74. package/dist/functions/arrFill.d.ts +0 -9
  75. package/dist/functions/blobToBase64.d.ts +0 -9
  76. package/dist/functions/capitalize.d.ts +0 -9
  77. package/dist/functions/copyObject.d.ts +0 -10
  78. package/dist/functions/copyObjectLite.d.ts +0 -9
  79. package/dist/functions/createElement.d.ts +0 -21
  80. package/dist/functions/domContentLoaded.d.ts +0 -13
  81. package/dist/functions/domQuerySelector.d.ts +0 -8
  82. package/dist/functions/domQuerySelectorAll.d.ts +0 -8
  83. package/dist/functions/encodeAttribute.d.ts +0 -8
  84. package/dist/functions/encodeLiteAttribute.d.ts +0 -8
  85. package/dist/functions/ensureMaxSize.d.ts +0 -10
  86. package/dist/functions/escapeExp.d.ts +0 -7
  87. package/dist/functions/eventStopPropagation.d.ts +0 -7
  88. package/dist/functions/executeFunction.d.ts +0 -12
  89. package/dist/functions/executePromise.d.ts +0 -11
  90. package/dist/functions/forEach.d.ts +0 -14
  91. package/dist/functions/frame.d.ts +0 -10
  92. package/dist/functions/getArrayHighlightMatch.d.ts +0 -10
  93. package/dist/functions/getAttributes.d.ts +0 -9
  94. package/dist/functions/getClipboardData.d.ts +0 -9
  95. package/dist/functions/getColumn.d.ts +0 -10
  96. package/dist/functions/getCurrentDate.d.ts +0 -19
  97. package/dist/functions/getCurrentTime.d.ts +0 -15
  98. package/dist/functions/getElement.d.ts +0 -9
  99. package/dist/functions/getElementId.d.ts +0 -26
  100. package/dist/functions/getElementImage.d.ts +0 -8
  101. package/dist/functions/getElementItem.d.ts +0 -12
  102. package/dist/functions/getElementOrWindow.d.ts +0 -8
  103. package/dist/functions/getElementSafeScript.d.ts +0 -9
  104. package/dist/functions/getExactSearchExp.d.ts +0 -8
  105. package/dist/functions/getExp.d.ts +0 -14
  106. package/dist/functions/getFirst.d.ts +0 -8
  107. package/dist/functions/getHydrationData.d.ts +0 -10
  108. package/dist/functions/getItemByPath.d.ts +0 -9
  109. package/dist/functions/getKey.d.ts +0 -8
  110. package/dist/functions/getLast.d.ts +0 -8
  111. package/dist/functions/getLength.d.ts +0 -10
  112. package/dist/functions/getLengthOfAllArray.d.ts +0 -8
  113. package/dist/functions/getMaxLengthAllArray.d.ts +0 -9
  114. package/dist/functions/getMinLengthAllArray.d.ts +0 -8
  115. package/dist/functions/getMouseClient.d.ts +0 -9
  116. package/dist/functions/getMouseClientX.d.ts +0 -8
  117. package/dist/functions/getMouseClientY.d.ts +0 -8
  118. package/dist/functions/getObjectByKeys.d.ts +0 -8
  119. package/dist/functions/getObjectNoUndefined.d.ts +0 -9
  120. package/dist/functions/getObjectOrNone.d.ts +0 -8
  121. package/dist/functions/getOnlyText.d.ts +0 -8
  122. package/dist/functions/getRandomItem.d.ts +0 -10
  123. package/dist/functions/getRandomText.d.ts +0 -12
  124. package/dist/functions/getRequestString.d.ts +0 -11
  125. package/dist/functions/getSearchExp.d.ts +0 -12
  126. package/dist/functions/getSeparatingSearchExp.d.ts +0 -9
  127. package/dist/functions/getStepPercent.d.ts +0 -9
  128. package/dist/functions/getStepValue.d.ts +0 -9
  129. package/dist/functions/goScroll.d.ts +0 -10
  130. package/dist/functions/goScrollSmooth.d.ts +0 -10
  131. package/dist/functions/goScrollTo.d.ts +0 -10
  132. package/dist/functions/handleShare.d.ts +0 -10
  133. package/dist/functions/inArray.d.ts +0 -9
  134. package/dist/functions/initScrollbarOffset.d.ts +0 -7
  135. package/dist/functions/intersectKey.d.ts +0 -9
  136. package/dist/functions/isApiSuccess.d.ts +0 -9
  137. package/dist/functions/isArray.d.ts +0 -8
  138. package/dist/functions/isDifferent.d.ts +0 -10
  139. package/dist/functions/isDomData.d.ts +0 -7
  140. package/dist/functions/isDomRuntime.d.ts +0 -10
  141. package/dist/functions/isElementVisible.d.ts +0 -11
  142. package/dist/functions/isEnter.d.ts +0 -9
  143. package/dist/functions/isFilled.d.ts +0 -10
  144. package/dist/functions/isFloat.d.ts +0 -8
  145. package/dist/functions/isFunction.d.ts +0 -9
  146. package/dist/functions/isInDom.d.ts +0 -9
  147. package/dist/functions/isInput.d.ts +0 -8
  148. package/dist/functions/isIntegerBetween.d.ts +0 -9
  149. package/dist/functions/isMetaKey.d.ts +0 -8
  150. package/dist/functions/isNull.d.ts +0 -9
  151. package/dist/functions/isNumber.d.ts +0 -8
  152. package/dist/functions/isObject.d.ts +0 -8
  153. package/dist/functions/isObjectNotArray.d.ts +0 -8
  154. package/dist/functions/isOnLine.d.ts +0 -7
  155. package/dist/functions/isSelected.d.ts +0 -9
  156. package/dist/functions/isSelectedByList.d.ts +0 -9
  157. package/dist/functions/isShare.d.ts +0 -7
  158. package/dist/functions/isString.d.ts +0 -8
  159. package/dist/functions/isTab.d.ts +0 -8
  160. package/dist/functions/isWindow.d.ts +0 -7
  161. package/dist/functions/random.d.ts +0 -9
  162. package/dist/functions/removeCommonPrefix.d.ts +0 -9
  163. package/dist/functions/replaceComponentName.d.ts +0 -9
  164. package/dist/functions/replaceRecursive.d.ts +0 -11
  165. package/dist/functions/replaceTemplate.d.ts +0 -10
  166. package/dist/functions/resizeImageByMax.d.ts +0 -19
  167. package/dist/functions/secondToTime.d.ts +0 -9
  168. package/dist/functions/setElementItem.d.ts +0 -11
  169. package/dist/functions/setValues.d.ts +0 -18
  170. package/dist/functions/sleep.d.ts +0 -8
  171. package/dist/functions/sortList.d.ts +0 -11
  172. package/dist/functions/splice.d.ts +0 -13
  173. package/dist/functions/strFill.d.ts +0 -9
  174. package/dist/functions/strSplit.d.ts +0 -12
  175. package/dist/functions/toArray.d.ts +0 -17
  176. package/dist/functions/toCamelCase.d.ts +0 -8
  177. package/dist/functions/toCamelCaseFirst.d.ts +0 -8
  178. package/dist/functions/toDate.d.ts +0 -8
  179. package/dist/functions/toKebabCase.d.ts +0 -15
  180. package/dist/functions/toNumber.d.ts +0 -19
  181. package/dist/functions/toNumberByMax.d.ts +0 -11
  182. package/dist/functions/toNumberPositive.d.ts +0 -9
  183. package/dist/functions/toPercent.d.ts +0 -9
  184. package/dist/functions/toPercentBy100.d.ts +0 -9
  185. package/dist/functions/toString.d.ts +0 -8
  186. package/dist/functions/transformation.d.ts +0 -21
  187. package/dist/functions/uint8ArrayToBase64.d.ts +0 -8
  188. package/dist/functions/uniqueArray.d.ts +0 -8
  189. package/dist/functions/writeClipboardData.d.ts +0 -8
  190. package/dist/media/errorCauseList.d.ts +0 -2
  191. package/dist/types/apiTypes.d.ts +0 -259
  192. package/dist/types/basicTypes.d.ts +0 -131
  193. package/dist/types/errorCenterTypes.d.ts +0 -50
  194. package/dist/types/formattersTypes.d.ts +0 -224
  195. package/dist/types/geoTypes.d.ts +0 -142
  196. package/dist/types/metaTypes.d.ts +0 -586
  197. package/dist/types/searchTypes.d.ts +0 -53
  198. package/dist/types/sortTypes.d.ts +0 -20
  199. package/dist/types/translateTypes.d.ts +0 -54
@@ -1,586 +0,0 @@
1
- /**
2
- * Standard HTML meta tags/
3
- * Стандартные HTML мета-теги
4
- * @enum {string}
5
- */
6
- export declare enum MetaTag {
7
- /** Page title/ Заголовок страницы */
8
- title = "title",
9
- /** Page description/ Описание страницы */
10
- description = "description",
11
- /** Keywords/ Ключевые слова */
12
- keywords = "keywords",
13
- /** Canonical URL/ Канонический URL */
14
- canonical = "canonical",
15
- /** Search engine instructions/ Инструкции для поисковиков */
16
- robots = "robots",
17
- /** Content author/ Автор контента */
18
- author = "author"
19
- }
20
- export declare enum MetaRobots {
21
- /**
22
- * Allow indexing and following links (default)/
23
- * Разрешает индексировать страницу и переходить по ссылкам (по умолчанию)
24
- */
25
- indexFollow = "index, follow",
26
- /**
27
- * Do not index the page, but follow its links/
28
- * Не индексировать страницу, но переходить по ссылкам
29
- */
30
- noIndexFollow = "noindex, follow",
31
- /**
32
- * Index the page, but do not follow its links/
33
- * Индексировать страницу, но не переходить по ссылкам
34
- */
35
- indexNoFollow = "index, nofollow",
36
- /**
37
- * Do not index the page and do not follow its links/
38
- * Не индексировать страницу и не переходить по ссылкам
39
- */
40
- noIndexNoFollow = "noindex, nofollow",
41
- /** Prevent caching of the page/ Запрещает кэширование страницы */
42
- noArchive = "noarchive",
43
- /**
44
- * Do not show a snippet or description in search results/
45
- * Не показывать сниппет (описание) в результатах поиска
46
- */
47
- noSnippet = "nosnippet",
48
- /**
49
- * Do not display image preview in search results/
50
- * Не показывать превью изображений в результатах поиска
51
- */
52
- noImageIndex = "noimageindex",
53
- /** Allow indexing images only/ Разрешить индексировать только изображения */
54
- images = "images",
55
- /**
56
- * Do not show cached version or translation link/
57
- * Не показывать кэш и ссылку "Перевести" в результатах
58
- */
59
- noTranslate = "notranslate",
60
- /**
61
- * Prevent page being shown in "Preview" (Instant Preview)/
62
- * Не показывать страницу в предпросмотре (Instant Preview)
63
- */
64
- noPreview = "nopreview",
65
- /**
66
- * Allow only text content indexing (no media)/
67
- * Разрешить индексировать только текст, без медиа
68
- */
69
- textOnly = "textonly",
70
- /**
71
- * Do not index subpages or parameters/
72
- * Не индексировать подстраницы или страницы с параметрами
73
- */
74
- noIndexSubpages = "noindex, noarchive",
75
- /**
76
- * Use meta directives from HTTP headers (advanced)/
77
- * Использовать директивы из HTTP-заголовков (расширенная настройка)
78
- */
79
- none = "none"
80
- }
81
- /**
82
- * Enumeration of Open Graph tags for metadata/
83
- * Перечисление Open Graph тegов для мета-данных
84
- * @enum {string}
85
- */
86
- export declare enum MetaOpenGraphTag {
87
- /** Page title/ Заголовок страницы */
88
- title = "og:title",
89
- /**
90
- * Content type (website, article, product, video, profile, etc.)/
91
- * Тип контента (website, article, product, video, profile и т.д.)
92
- */
93
- type = "og:type",
94
- /** Canonical URL of the page/ Канонический URL страницы */
95
- url = "og:url",
96
- /** Preview image URL/ Ссылка на изображение для предпросмотра */
97
- image = "og:image",
98
- /**
99
- * Brief page description (up to ~200 characters)/
100
- * Краткое описание страницы (до ~200 символов)
101
- */
102
- description = "og:description",
103
- /**
104
- * Page language (e.g., ru_RU, en_US)/
105
- * Язык страницы (например: ru_RU, en_US)
106
- */
107
- locale = "og:locale",
108
- /** Site name/ Название сайта */
109
- siteName = "og:site_name",
110
- /**
111
- * Alternative language versions (for multilingual sites)/
112
- * Альтернативные языковые версии (для мультиязычных сайтов)
113
- */
114
- localeAlternate = "og:locale:alternate",
115
- /**
116
- * Alternative form of og:image/
117
- * Альтернативная форма записи og:image
118
- */
119
- imageUrl = "og:image:url",
120
- /** HTTPS version of the image/ HTTPS-версия изображения */
121
- imageSecureUrl = "og:image:secure_url",
122
- /**
123
- * Image MIME type (image/jpeg, image/png)/
124
- * MIME-тип изображения (image/jpeg, image/png)
125
- */
126
- imageType = "og:image:type",
127
- /** Image width in pixels/ Ширина изображения в пикселях */
128
- imageWidth = "og:image:width",
129
- /** Image height in pixels/ Высота изображения в пикселях */
130
- imageHeight = "og:image:height",
131
- /**
132
- * Alternative image text (for accessibility)/
133
- * Альтернативный текст изображения (для доступности)
134
- */
135
- imageAlt = "og:image:alt",
136
- /** Video URL/ Ссылка на видео */
137
- video = "og:video",
138
- /** Alternative video URL/ Альтернативная ссылка на видео */
139
- videoUrl = "og:video:url",
140
- /** HTTPS version of video/ HTTPS-версия видео */
141
- videoSecureUrl = "og:video:secure_url",
142
- /**
143
- * Video MIME type (video/mp4, video/webm)/
144
- * MIME-тип видео (video/mp4, video/webm)
145
- */
146
- videoType = "og:video:type",
147
- /** Video width/ Ширина видео */
148
- videoWidth = "og:video:width",
149
- /** Video height/ Высота видео */
150
- videoHeight = "og:video:height",
151
- /** Audio file URL/ Ссылка на аудиофайл */
152
- audio = "og:audio",
153
- /** HTTPS version of audio/ HTTPS-версия аудио */
154
- audioSecureUrl = "og:audio:secure_url",
155
- /** Audio MIME type (audio/mpeg)/ MIME-тип аудио (audio/mpeg) */
156
- audioType = "og:audio:type",
157
- /** Publication date/ Дата публикации */
158
- articlePublishedTime = "article:published_time",
159
- /** Last update date/ Дата последнего обновления */
160
- articleModifiedTime = "article:modified_time",
161
- /** Expiration date (if any)/ Дата устаревания (если есть) */
162
- articleExpirationTime = "article:expiration_time",
163
- /** Author (URL or name)/ Автор (URL или имя) */
164
- articleAuthor = "article:author",
165
- /** Article category/ Категория статьи */
166
- articleSection = "article:section",
167
- /** Tags / keywords/ Теги / ключевые слова */
168
- articleTag = "article:tag",
169
- /** Book author/ Автор книги */
170
- bookAuthor = "book:author",
171
- /** Book ISBN/ ISBN книги */
172
- bookIsbn = "book:isbn",
173
- /** Book publication date/ Дата публикации книги */
174
- bookReleaseDate = "book:release_date",
175
- /** Topics / tags/ Темы / теги */
176
- bookTag = "book:tag",
177
- /**
178
- * Track duration (in seconds)/
179
- * Длительность трека (в секундах)
180
- */
181
- musicDuration = "music:duration",
182
- /** Album URL/ Ссылка на альбом */
183
- musicAlbum = "music:album",
184
- /** Disc number/ Номер диска */
185
- musicAlbumDisc = "music:album:disc",
186
- /** Track number in album/ Номер трека в альбоме */
187
- musicAlbumTrack = "music:album:track",
188
- /** Musician/ Исполнитель */
189
- musicMusician = "music:musician",
190
- /** Song URL/ Ссылка на песню */
191
- musicSong = "music:song",
192
- /**
193
- * Disc number where the song is/
194
- * Номер диска, на котором песня
195
- */
196
- musicSongDisc = "music:song:disc",
197
- /** Track number in song/ Номер трека в песне */
198
- musicSongTrack = "music:song:track",
199
- /** Release date/ Дата релиза */
200
- musicReleaseDate = "music:release_date",
201
- /** Content creator/ Создатель контента */
202
- musicCreator = "music:creator",
203
- /** Actor/ Актёр */
204
- videoActor = "video:actor",
205
- /** Actor's role/ Роль актёра */
206
- videoActorRole = "video:actor:role",
207
- /** Director/ Режиссёр */
208
- videoDirector = "video:director",
209
- /** Screenwriter/ Сценарист */
210
- videoWriter = "video:writer",
211
- /**
212
- * Video duration (in seconds)/
213
- * Длительность видео (в секундах)
214
- */
215
- videoDuration = "video:duration",
216
- /** Video release date/ Дата выхода видео */
217
- videoReleaseDate = "video:release_date",
218
- /** Tags / topics/ Теги / темы видео */
219
- videoTag = "video:tag",
220
- /**
221
- * Series to which the episode belongs/
222
- * Сериал, к которому относится эпизод
223
- */
224
- videoSeries = "video:series",
225
- /** First name/ Имя */
226
- profileFirstName = "profile:first_name",
227
- /** Last name/ Фамилия */
228
- profileLastName = "profile:last_name",
229
- /** Username / login/ Имя пользователя / логин */
230
- profileUsername = "profile:username",
231
- /** Gender (male / female)/ Пол (male / female) */
232
- profileGender = "profile:gender",
233
- /** Brand name/ Название бренда */
234
- productBrand = "product:brand",
235
- /**
236
- * Product availability (in stock / out of stock / preorder)/
237
- * Наличие товара (in stock / out of stock / preorder)
238
- */
239
- productAvailability = "product:availability",
240
- /**
241
- * Product condition (new / used / refurbished)/
242
- * Состояние товара (new / used / refurbished)
243
- */
244
- productCondition = "product:condition",
245
- /** Price/ Цена */
246
- productPriceAmount = "product:price:amount",
247
- /**
248
- * Currency (USD, RUB, EUR, etc.)/
249
- * Валюта (USD, RUB, EUR и т.д.)
250
- */
251
- productPriceCurrency = "product:price:currency",
252
- /** Internal product ID/ Внутренний ID товара */
253
- productRetailerItemId = "product:retailer_item_id",
254
- /** Product category/ Категория товара */
255
- productCategory = "product:category",
256
- /** EAN code/ EAN код */
257
- productEan = "product:ean",
258
- /** ISBN (if product is a book)/ ISBN (если товар — книга) */
259
- productIsbn = "product:isbn",
260
- /** Manufacturer part number/ Номер производителя */
261
- productMfrPartNo = "product:mfr_part_no",
262
- /** UPC code/ UPC код */
263
- productUpc = "product:upc",
264
- /** Weight (value)/ Вес (значение) */
265
- productWeightValue = "product:weight:value",
266
- /**
267
- * Weight (units, e.g., kg)/
268
- * Вес (единицы измерения, например: kg)
269
- */
270
- productWeightUnits = "product:weight:units",
271
- /** Product color/ Цвет товара */
272
- productColor = "product:color",
273
- /** Product material/ Материал товара */
274
- productMaterial = "product:material",
275
- /** Pattern / design/ Узор / дизайн */
276
- productPattern = "product:pattern",
277
- /**
278
- * Age group (adult, kids, baby)/
279
- * Возрастная группа (adult, kids, baby)
280
- */
281
- productAgeGroup = "product:age_group",
282
- /**
283
- * Gender (for whom — male, female, unisex)/
284
- * Пол (для кого — male, female, unisex)
285
- */
286
- productGender = "product:gender"
287
- }
288
- /**
289
- * Possible content types for Open Graph (og:type)/
290
- * Возможные типы контента для Open Graph (og:type)
291
- */
292
- export declare enum MetaOpenGraphType {
293
- /**
294
- * Regular web page or article/
295
- * Обычная веб-страница или статья
296
- */
297
- website = "website",
298
- /**
299
- * News article, blog post, or other text material/
300
- * Новостная статья, блог-пост или другой текстовый материал
301
- */
302
- article = "article",
303
- /**
304
- * Video (e.g., clip, film, series, music video)/
305
- * Видео (например, ролик, фильм, сериал, клип)
306
- */
307
- video = "video.other",
308
- /** Entire TV series/ Сериал целиком */
309
- videoTvShow = "video.tv_show",
310
- /**
311
- * Specific TV series episode/
312
- * Конкретный эпизод сериала
313
- */
314
- videoEpisode = "video.episode",
315
- /** Movie/ Фильм */
316
- videoMovie = "video.movie",
317
- /** Music album/ Музыкальный альбом */
318
- musicAlbum = "music.album",
319
- /** Music playlist/ Музыкальный плейлист */
320
- musicPlaylist = "music.playlist",
321
- /** Individual track (song)/ Отдельный трек (песня) */
322
- musicSong = "music.song",
323
- /**
324
- * Radio station or audio stream/
325
- * Радиостанция или стрим аудио
326
- */
327
- musicRadioStation = "music.radio_station",
328
- /**
329
- * Application (web, mobile, or desktop)/
330
- * Приложение (веб-, мобильное или десктопное)
331
- */
332
- app = "app",
333
- /**
334
- * Product or item (e.g., in a store)/
335
- * Продукт или товар (например, в магазине)
336
- */
337
- product = "product",
338
- /**
339
- * Brand, company, organization/
340
- * Бренд, компания, организация
341
- */
342
- business = "business.business",
343
- /**
344
- * Place (geolocation, point on a map)/
345
- * Место (геолокация, точка на карте)
346
- */
347
- place = "place",
348
- /**
349
- * Event (event, meeting, concert, etc.)/
350
- * Событие (ивент, встреча, концерт и т.п.)
351
- */
352
- event = "event",
353
- /**
354
- * User profile (personal page, author, etc.)/
355
- * Профиль пользователя (личная страница, автор и т.д.)
356
- */
357
- profile = "profile",
358
- /** Book page/ Страница книги */
359
- book = "book"
360
- }
361
- /**
362
- * Product availability states/
363
- * Состояния доступности товара
364
- */
365
- export declare enum MetaOpenGraphAvailability {
366
- /** In stock, available for purchase/ В наличии, доступен для покупки */
367
- inStock = "in stock",
368
- /** Out of stock, currently unavailable/ Нет в наличии, в настоящее время недоступен */
369
- outOfStock = "out of stock",
370
- /** Available for pre-order/ Доступен для предзаказа */
371
- preorder = "preorder",
372
- /**
373
- * Backordered, temporarily out of stock/
374
- * В ожидании поставки, временно отсутствует на складе
375
- */
376
- backorder = "backorder",
377
- /** Discontinued, no longer available/ Снят с производства, больше не доступен */
378
- discontinued = "discontinued",
379
- /**
380
- * Pending availability status/
381
- * Ожидается информация о доступности
382
- */
383
- pending = "pending"
384
- }
385
- /**
386
- * Product condition states/
387
- * Состояния товара
388
- */
389
- export declare enum MetaOpenGraphCondition {
390
- /** Brand new product, never used/ Новый товар, не использовался */
391
- new = "new",
392
- /** Used product, previously owned/ Подержанный, бывший в употреблении */
393
- used = "used",
394
- /**
395
- * Refurbished / restored product/
396
- * Восстановленный (ремонтированный, refurbished)
397
- */
398
- refurbished = "refurbished"
399
- }
400
- /**
401
- * Age groups for products/
402
- * Возрастные группы для товаров
403
- */
404
- export declare enum MetaOpenGraphAge {
405
- /** For newborns (0–12 months)/ Для новорожденных (0–12 месяцев) */
406
- newborn = "newborn",
407
- /** For infants (0–24 months)/ Для младенцев (0–24 месяцев) */
408
- infant = "infant",
409
- /** For toddlers (approximately 2–4 years)/ Для малышей (примерно 2–4 года) */
410
- toddler = "toddler",
411
- /** For kids (approximately 4–12 years)/ Для детей (примерно 4–12 лет) */
412
- kids = "kids",
413
- /** For adults/ Для взрослых */
414
- adult = "adult"
415
- }
416
- /**
417
- * Gender categories for products/
418
- * Гендерные категории для товаров
419
- */
420
- export declare enum MetaOpenGraphGender {
421
- /** For women/ Для женщин */
422
- female = "female",
423
- /** For men/ Для мужчин */
424
- male = "male",
425
- /** Universal / suitable for everyone/ Универсальное / подходит всем */
426
- unisex = "unisex"
427
- }
428
- /**
429
- * Twitter Card meta-properties/
430
- * Мета теги Twitter Card
431
- */
432
- export declare enum MetaTwitterTag {
433
- /**
434
- * Type of card (summary, summary_large_image, app, player, product)/
435
- * Тип карточки (summary, summary_large_image, app, player, product)
436
- */
437
- card = "twitter:card",
438
- /** Website or brand @username/ Аккаунт сайта или бренда (@username) */
439
- site = "twitter:site",
440
- /** Content creator @username/ Автор контента (@username) */
441
- creator = "twitter:creator",
442
- /** Page URL/ URL страницы */
443
- url = "twitter:url",
444
- /** Title of the card/ Заголовок карточки */
445
- title = "twitter:title",
446
- /** Short description of the card/ Краткое описание карточки */
447
- description = "twitter:description",
448
- /** Main image for the card/ Основное изображение карточки */
449
- image = "twitter:image",
450
- /**
451
- * Alternative text for the image (for accessibility)/
452
- * Альтернативный текст изображения (для доступности)
453
- */
454
- imageAlt = "twitter:image:alt",
455
- /**
456
- * Alternative way to define image source/
457
- * Альтернативный способ указания изображения
458
- */
459
- imageSrc = "twitter:image:src",
460
- /** Image width (optional)/ Ширина изображения (опционально) */
461
- imageWidth = "twitter:image:width",
462
- /** Image height (optional)/ Высота изображения (опционально) */
463
- imageHeight = "twitter:image:height",
464
- /**
465
- * Custom label 1 (used in summary/product cards)/
466
- * Пользовательская метка 1 (используется в summary/product карточках)
467
- */
468
- label1 = "twitter:label1",
469
- /**
470
- * Custom value 1 (used with label1)/
471
- * Пользовательское значение 1 (используется с label1)
472
- */
473
- data1 = "twitter:data1",
474
- /**
475
- * Custom label 2 (used in summary/product cards)/
476
- * Пользовательская метка 2 (используется в summary/product карточках)
477
- */
478
- label2 = "twitter:label2",
479
- /**
480
- * Custom value 2 (used with label2)/
481
- * Пользовательское значение 2 (используется с label2)
482
- */
483
- data2 = "twitter:data2",
484
- /** iPhone app name/ Название приложения для iPhone */
485
- appNameIphone = "twitter:app:name:iphone",
486
- /**
487
- * iPhone app ID (App Store ID)/
488
- * Идентификатор приложения в App Store (iPhone)
489
- */
490
- appIdIphone = "twitter:app:id:iphone",
491
- /** iPhone app URL (deep link)/ Ссылка на приложение iPhone (deep link) */
492
- appUrlIphone = "twitter:app:url:iphone",
493
- /** iPad app name/ Название приложения для iPad */
494
- appNameIpad = "twitter:app:name:ipad",
495
- /**
496
- * iPad app ID (App Store ID)/
497
- * Идентификатор приложения в App Store (iPad)
498
- */
499
- appIdIpad = "twitter:app:id:ipad",
500
- /** iPad app URL (deep link)/ Ссылка на приложение iPad (deep link) */
501
- appUrlIpad = "twitter:app:url:ipad",
502
- /** Google Play app name/ Название приложения в Google Play */
503
- appNameGooglePlay = "twitter:app:name:googleplay",
504
- /**
505
- * Google Play app ID (package name)/
506
- * Идентификатор приложения в Google Play (package name)
507
- */
508
- appIdGooglePlay = "twitter:app:id:googleplay",
509
- /**
510
- * Google Play app URL (deep link)/
511
- * Ссылка на приложение в Google Play (deep link)
512
- */
513
- appUrlGooglePlay = "twitter:app:url:googleplay",
514
- /** Player iframe URL/ URL iframe плеера */
515
- player = "twitter:player",
516
- /** Player width/ Ширина плеера */
517
- playerWidth = "twitter:player:width",
518
- /** Player height/ Высота плеера */
519
- playerHeight = "twitter:player:height",
520
- /**
521
- * Direct media stream URL (video/audio)/
522
- * Прямая ссылка на видео- или аудио поток
523
- */
524
- playerStream = "twitter:player:stream",
525
- /**
526
- * MIME type of the media stream/
527
- * MIME-тип потока (например, video/mp4)
528
- */
529
- playerStreamContentType = "twitter:player:stream:content_type"
530
- }
531
- /**
532
- * Twitter Card types/
533
- * Возможные значения для `twitter:card`
534
- */
535
- export declare enum MetaTwitterCard {
536
- /**
537
- * Summary card — small image, short title and description/
538
- * Карточка-сводка — небольшое изображение, короткий заголовок и описание
539
- */
540
- summary = "summary",
541
- /**
542
- * Summary card with large image — most popular card type/
543
- * Карточка с большим изображением — самый распространённый тип
544
- */
545
- summaryLargeImage = "summary_large_image",
546
- /**
547
- * App card — used for promoting mobile applications (iOS / Android)/
548
- * Карточка приложения — используется для продвижения мобильных приложений (iOS / Android)
549
- */
550
- app = "app",
551
- /**
552
- * Player card — for embedding video, audio, or other rich media/
553
- * Карточка плеера — для встроенного видео, аудио или интерактивного контента
554
- */
555
- player = "player",
556
- /**
557
- * Product card (deprecated) — used for e-commerce products/
558
- * Карточка товара (устаревшая) — использовалась для отображения товаров в Twitter
559
- */
560
- product = "product",
561
- /**
562
- * Gallery card (deprecated) — used for displaying multiple images/
563
- * Галерея (устаревшая) — использовалась для показа нескольких изображений
564
- */
565
- gallery = "gallery",
566
- /**
567
- * Photo card (deprecated) — single image card, replaced by summary_large_image/
568
- * Фото-карточка (устаревшая) — карточка с одним изображением, заменена на summary_large_image
569
- */
570
- photo = "photo",
571
- /**
572
- * Lead generation card (deprecated) — for collecting user data (via CTA)/
573
- * Карточка для лидогенерации (устаревшая) — использовалась для сбора данных пользователей через кнопку
574
- */
575
- leadGeneration = "lead_generation",
576
- /**
577
- * Audio card (experimental) — similar to player, but focused on audio players/
578
- * Аудио-карточка (экспериментальная) — аналог player, ориентирована на аудио
579
- */
580
- audio = "audio",
581
- /**
582
- * Poll card (internal/experimental) — used for Twitter polls/
583
- * Карточка опроса (внутренняя/экспериментальная) — используется для твитов-опросов
584
- */
585
- poll = "poll"
586
- }
@@ -1,53 +0,0 @@
1
- /** Search item type/ Тип элемента поиска */
2
- export type SearchItem = Record<string, any>;
3
- /** Type for generating a column path / Тип для генерации пути к колонке */
4
- export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
5
- /** Type for getting a column / Тип для получения колонки */
6
- export type SearchColumn<T extends SearchItem> = {
7
- [K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K;
8
- }[keyof T];
9
- /** Type for a list of columns / Тип для списка колонок */
10
- export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
11
- /** Type for formatting the key / Тип для форматирования ключа */
12
- export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
13
- /** Type for generating a search key / Тип для генерации ключа поиска */
14
- export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
15
- /** Type for a formatted search item / Тип для отформатированного элемента поиска */
16
- export type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
17
- [K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string;
18
- } & {
19
- searchActive?: boolean;
20
- };
21
- /** Type for a list of formatted search items / Тип для списка отформатированных элементов поиска */
22
- export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
23
- /** Search list value / Значение списка поиска */
24
- export type SearchListValue<T extends SearchItem> = T[] | undefined;
25
- /** Search options / Опции поиска */
26
- export type SearchOptions = {
27
- /** Limit of output values / Лимит выводимых значений */
28
- limit?: number;
29
- /** Whether to return all items even if no match / Возвращать ли все элементы, даже если совпадений нет */
30
- returnEverything?: boolean;
31
- /** Delay before searching / Задержка перед поиском */
32
- delay?: number;
33
- /** Find exact match / Найти точное совпадение */
34
- findExactMatch?: boolean;
35
- /** CSS class for matches / CSS класс для совпадений */
36
- classSearchName?: string;
37
- };
38
- /** Search cache item / Элемент кэша поиска */
39
- export type SearchCacheItem<T extends SearchItem> = {
40
- /** Original item / Исходный элемент */
41
- item: T;
42
- /** Search string value / Строковое значение для поиска */
43
- value: string;
44
- };
45
- /** Search cache list / Список кэша поиска */
46
- export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
47
- /** Highlight match item type / Тип элемента подсветки совпадения */
48
- export type HighlightMatchItem = {
49
- /** Text segment / Текстовый сегмент */
50
- text: string;
51
- /** Whether the segment matches the search query / Соответствует ли сегмент поисковому запросу */
52
- isMatch: boolean;
53
- };
@@ -1,20 +0,0 @@
1
- /**
2
- * Sorting direction. /
3
- * Направление сортировки.
4
- */
5
- export type SortDir = 'asc' | 'desc';
6
- /**
7
- * Single column sorting specification item. /
8
- * Элемент спецификации сортировки по отдельной колонке.
9
- */
10
- export type SortColumnItem = {
11
- /** Column or property key for sorting / Колонка или ключ свойства для сортировки */
12
- column?: string;
13
- /** Sorting direction ('asc' or 'desc') / Направление сортировки ('asc' или 'desc') */
14
- dir?: SortDir;
15
- };
16
- /**
17
- * Custom sort function signature. /
18
- * Сигнатура пользовательской функции сортировки.
19
- */
20
- export type SortFunction<T = any> = (a: T, b: T, column?: string, dir?: SortDir) => number;