@ticmas/frontend-utils 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (479) hide show
  1. package/.eslintrc.js +38 -0
  2. package/.gitlab-ci.yml +4 -0
  3. package/.prettierrc.json +7 -0
  4. package/.yarn/releases/yarn-classic.cjs +148049 -0
  5. package/.yarn-cache/@ampproject-remapping-2.3.0.tgz +0 -0
  6. package/.yarn-cache/@asamuzakjp-css-color-2.8.3.tgz +0 -0
  7. package/.yarn-cache/@babel-code-frame-7.26.2.tgz +0 -0
  8. package/.yarn-cache/@babel-compat-data-7.26.5.tgz +0 -0
  9. package/.yarn-cache/@babel-core-7.26.7.tgz +0 -0
  10. package/.yarn-cache/@babel-generator-7.26.5.tgz +0 -0
  11. package/.yarn-cache/@babel-helper-compilation-targets-7.26.5.tgz +0 -0
  12. package/.yarn-cache/@babel-helper-module-imports-7.25.9.tgz +0 -0
  13. package/.yarn-cache/@babel-helper-module-transforms-7.26.0.tgz +0 -0
  14. package/.yarn-cache/@babel-helper-plugin-utils-7.26.5.tgz +0 -0
  15. package/.yarn-cache/@babel-helper-string-parser-7.25.9.tgz +0 -0
  16. package/.yarn-cache/@babel-helper-validator-identifier-7.25.9.tgz +0 -0
  17. package/.yarn-cache/@babel-helper-validator-option-7.25.9.tgz +0 -0
  18. package/.yarn-cache/@babel-helpers-7.26.7.tgz +0 -0
  19. package/.yarn-cache/@babel-parser-7.26.7.tgz +0 -0
  20. package/.yarn-cache/@babel-plugin-transform-react-jsx-self-7.25.9.tgz +0 -0
  21. package/.yarn-cache/@babel-plugin-transform-react-jsx-source-7.25.9.tgz +0 -0
  22. package/.yarn-cache/@babel-template-7.25.9.tgz +0 -0
  23. package/.yarn-cache/@babel-traverse-7.26.7.tgz +0 -0
  24. package/.yarn-cache/@babel-types-7.26.7.tgz +0 -0
  25. package/.yarn-cache/@bcoe-v8-coverage-1.0.2.tgz +0 -0
  26. package/.yarn-cache/@csstools-color-helpers-5.0.1.tgz +0 -0
  27. package/.yarn-cache/@csstools-css-calc-2.1.1.tgz +0 -0
  28. package/.yarn-cache/@csstools-css-color-parser-3.0.7.tgz +0 -0
  29. package/.yarn-cache/@csstools-css-parser-algorithms-3.0.4.tgz +0 -0
  30. package/.yarn-cache/@csstools-css-tokenizer-3.0.3.tgz +0 -0
  31. package/.yarn-cache/@esbuild-aix-ppc64-0.24.2.tgz +0 -0
  32. package/.yarn-cache/@esbuild-android-arm-0.24.2.tgz +0 -0
  33. package/.yarn-cache/@esbuild-android-arm64-0.24.2.tgz +0 -0
  34. package/.yarn-cache/@esbuild-android-x64-0.24.2.tgz +0 -0
  35. package/.yarn-cache/@esbuild-darwin-arm64-0.24.2.tgz +0 -0
  36. package/.yarn-cache/@esbuild-darwin-x64-0.24.2.tgz +0 -0
  37. package/.yarn-cache/@esbuild-freebsd-arm64-0.24.2.tgz +0 -0
  38. package/.yarn-cache/@esbuild-freebsd-x64-0.24.2.tgz +0 -0
  39. package/.yarn-cache/@esbuild-linux-arm-0.24.2.tgz +0 -0
  40. package/.yarn-cache/@esbuild-linux-arm64-0.24.2.tgz +0 -0
  41. package/.yarn-cache/@esbuild-linux-ia32-0.24.2.tgz +0 -0
  42. package/.yarn-cache/@esbuild-linux-loong64-0.24.2.tgz +0 -0
  43. package/.yarn-cache/@esbuild-linux-mips64el-0.24.2.tgz +0 -0
  44. package/.yarn-cache/@esbuild-linux-ppc64-0.24.2.tgz +0 -0
  45. package/.yarn-cache/@esbuild-linux-riscv64-0.24.2.tgz +0 -0
  46. package/.yarn-cache/@esbuild-linux-s390x-0.24.2.tgz +0 -0
  47. package/.yarn-cache/@esbuild-linux-x64-0.24.2.tgz +0 -0
  48. package/.yarn-cache/@esbuild-netbsd-arm64-0.24.2.tgz +0 -0
  49. package/.yarn-cache/@esbuild-netbsd-x64-0.24.2.tgz +0 -0
  50. package/.yarn-cache/@esbuild-openbsd-arm64-0.24.2.tgz +0 -0
  51. package/.yarn-cache/@esbuild-openbsd-x64-0.24.2.tgz +0 -0
  52. package/.yarn-cache/@esbuild-sunos-x64-0.24.2.tgz +0 -0
  53. package/.yarn-cache/@esbuild-win32-arm64-0.24.2.tgz +0 -0
  54. package/.yarn-cache/@esbuild-win32-ia32-0.24.2.tgz +0 -0
  55. package/.yarn-cache/@esbuild-win32-x64-0.24.2.tgz +0 -0
  56. package/.yarn-cache/@eslint-community-eslint-utils-4.4.1.tgz +0 -0
  57. package/.yarn-cache/@eslint-community-regexpp-4.12.1.tgz +0 -0
  58. package/.yarn-cache/@eslint-eslintrc-2.1.4.tgz +0 -0
  59. package/.yarn-cache/@eslint-js-8.56.0.tgz +0 -0
  60. package/.yarn-cache/@gerrit0-mini-shiki-1.27.2.tgz +0 -0
  61. package/.yarn-cache/@humanwhocodes-config-array-0.11.14.tgz +0 -0
  62. package/.yarn-cache/@humanwhocodes-module-importer-1.0.1.tgz +0 -0
  63. package/.yarn-cache/@humanwhocodes-object-schema-2.0.3.tgz +0 -0
  64. package/.yarn-cache/@isaacs-cliui-8.0.2.tgz +0 -0
  65. package/.yarn-cache/@istanbuljs-schema-0.1.3.tgz +0 -0
  66. package/.yarn-cache/@jridgewell-gen-mapping-0.3.8.tgz +0 -0
  67. package/.yarn-cache/@jridgewell-resolve-uri-3.1.2.tgz +0 -0
  68. package/.yarn-cache/@jridgewell-set-array-1.2.1.tgz +0 -0
  69. package/.yarn-cache/@jridgewell-sourcemap-codec-1.5.0.tgz +0 -0
  70. package/.yarn-cache/@jridgewell-trace-mapping-0.3.25.tgz +0 -0
  71. package/.yarn-cache/@nodelib-fs.scandir-2.1.5.tgz +0 -0
  72. package/.yarn-cache/@nodelib-fs.stat-2.0.5.tgz +0 -0
  73. package/.yarn-cache/@nodelib-fs.walk-1.2.8.tgz +0 -0
  74. package/.yarn-cache/@pkgjs-parseargs-0.11.0.tgz +0 -0
  75. package/.yarn-cache/@pkgr-core-0.1.1.tgz +0 -0
  76. package/.yarn-cache/@rollup-rollup-android-arm-eabi-4.34.1.tgz +0 -0
  77. package/.yarn-cache/@rollup-rollup-android-arm64-4.34.1.tgz +0 -0
  78. package/.yarn-cache/@rollup-rollup-darwin-arm64-4.34.1.tgz +0 -0
  79. package/.yarn-cache/@rollup-rollup-darwin-x64-4.34.1.tgz +0 -0
  80. package/.yarn-cache/@rollup-rollup-freebsd-arm64-4.34.1.tgz +0 -0
  81. package/.yarn-cache/@rollup-rollup-freebsd-x64-4.34.1.tgz +0 -0
  82. package/.yarn-cache/@rollup-rollup-linux-arm-gnueabihf-4.34.1.tgz +0 -0
  83. package/.yarn-cache/@rollup-rollup-linux-arm-musleabihf-4.34.1.tgz +0 -0
  84. package/.yarn-cache/@rollup-rollup-linux-arm64-gnu-4.34.1.tgz +0 -0
  85. package/.yarn-cache/@rollup-rollup-linux-arm64-musl-4.34.1.tgz +0 -0
  86. package/.yarn-cache/@rollup-rollup-linux-loongarch64-gnu-4.34.1.tgz +0 -0
  87. package/.yarn-cache/@rollup-rollup-linux-powerpc64le-gnu-4.34.1.tgz +0 -0
  88. package/.yarn-cache/@rollup-rollup-linux-riscv64-gnu-4.34.1.tgz +0 -0
  89. package/.yarn-cache/@rollup-rollup-linux-s390x-gnu-4.34.1.tgz +0 -0
  90. package/.yarn-cache/@rollup-rollup-linux-x64-gnu-4.34.1.tgz +0 -0
  91. package/.yarn-cache/@rollup-rollup-linux-x64-musl-4.34.1.tgz +0 -0
  92. package/.yarn-cache/@rollup-rollup-win32-arm64-msvc-4.34.1.tgz +0 -0
  93. package/.yarn-cache/@rollup-rollup-win32-ia32-msvc-4.34.1.tgz +0 -0
  94. package/.yarn-cache/@rollup-rollup-win32-x64-msvc-4.34.1.tgz +0 -0
  95. package/.yarn-cache/@rtsao-scc-1.1.0.tgz +0 -0
  96. package/.yarn-cache/@shikijs-engine-oniguruma-1.29.2.tgz +0 -0
  97. package/.yarn-cache/@shikijs-types-1.29.2.tgz +0 -0
  98. package/.yarn-cache/@shikijs-vscode-textmate-10.0.1.tgz +0 -0
  99. package/.yarn-cache/@types-babel__core-7.20.5.tgz +0 -0
  100. package/.yarn-cache/@types-babel__generator-7.6.8.tgz +0 -0
  101. package/.yarn-cache/@types-babel__template-7.4.4.tgz +0 -0
  102. package/.yarn-cache/@types-babel__traverse-7.20.6.tgz +0 -0
  103. package/.yarn-cache/@types-estree-1.0.6.tgz +0 -0
  104. package/.yarn-cache/@types-hast-3.0.4.tgz +0 -0
  105. package/.yarn-cache/@types-json5-0.0.29.tgz +0 -0
  106. package/.yarn-cache/@types-unist-3.0.3.tgz +0 -0
  107. package/.yarn-cache/@typescript-eslint-eslint-plugin-8.23.0.tgz +0 -0
  108. package/.yarn-cache/@typescript-eslint-parser-8.23.0.tgz +0 -0
  109. package/.yarn-cache/@typescript-eslint-scope-manager-8.23.0.tgz +0 -0
  110. package/.yarn-cache/@typescript-eslint-type-utils-8.23.0.tgz +0 -0
  111. package/.yarn-cache/@typescript-eslint-types-8.23.0.tgz +0 -0
  112. package/.yarn-cache/@typescript-eslint-typescript-estree-8.23.0.tgz +0 -0
  113. package/.yarn-cache/@typescript-eslint-utils-8.23.0.tgz +0 -0
  114. package/.yarn-cache/@typescript-eslint-visitor-keys-8.23.0.tgz +0 -0
  115. package/.yarn-cache/@ungap-structured-clone-1.3.0.tgz +0 -0
  116. package/.yarn-cache/@vitejs-plugin-react-4.3.4.tgz +0 -0
  117. package/.yarn-cache/@vitest-coverage-v8-3.0.5.tgz +0 -0
  118. package/.yarn-cache/@vitest-expect-3.0.5.tgz +0 -0
  119. package/.yarn-cache/@vitest-mocker-3.0.5.tgz +0 -0
  120. package/.yarn-cache/@vitest-pretty-format-3.0.5.tgz +0 -0
  121. package/.yarn-cache/@vitest-runner-3.0.5.tgz +0 -0
  122. package/.yarn-cache/@vitest-snapshot-3.0.5.tgz +0 -0
  123. package/.yarn-cache/@vitest-spy-3.0.5.tgz +0 -0
  124. package/.yarn-cache/@vitest-utils-3.0.5.tgz +0 -0
  125. package/.yarn-cache/acorn-8.14.0.tgz +0 -0
  126. package/.yarn-cache/acorn-jsx-5.3.2.tgz +0 -0
  127. package/.yarn-cache/agent-base-7.1.3.tgz +0 -0
  128. package/.yarn-cache/ajv-6.12.6.tgz +0 -0
  129. package/.yarn-cache/ansi-regex-5.0.1.tgz +0 -0
  130. package/.yarn-cache/ansi-regex-6.1.0.tgz +0 -0
  131. package/.yarn-cache/ansi-styles-4.3.0.tgz +0 -0
  132. package/.yarn-cache/ansi-styles-6.2.1.tgz +0 -0
  133. package/.yarn-cache/argparse-2.0.1.tgz +0 -0
  134. package/.yarn-cache/array-buffer-byte-length-1.0.2.tgz +0 -0
  135. package/.yarn-cache/array-includes-3.1.8.tgz +0 -0
  136. package/.yarn-cache/array.prototype.findlastindex-1.2.5.tgz +0 -0
  137. package/.yarn-cache/array.prototype.flat-1.3.3.tgz +0 -0
  138. package/.yarn-cache/array.prototype.flatmap-1.3.3.tgz +0 -0
  139. package/.yarn-cache/arraybuffer.prototype.slice-1.0.4.tgz +0 -0
  140. package/.yarn-cache/assertion-error-2.0.1.tgz +0 -0
  141. package/.yarn-cache/async-function-1.0.0.tgz +0 -0
  142. package/.yarn-cache/asynckit-0.4.0.tgz +0 -0
  143. package/.yarn-cache/available-typed-arrays-1.0.7.tgz +0 -0
  144. package/.yarn-cache/balanced-match-1.0.2.tgz +0 -0
  145. package/.yarn-cache/brace-expansion-1.1.11.tgz +0 -0
  146. package/.yarn-cache/brace-expansion-2.0.1.tgz +0 -0
  147. package/.yarn-cache/braces-3.0.3.tgz +0 -0
  148. package/.yarn-cache/browserslist-4.24.4.tgz +0 -0
  149. package/.yarn-cache/cac-6.7.14.tgz +0 -0
  150. package/.yarn-cache/call-bind-1.0.8.tgz +0 -0
  151. package/.yarn-cache/call-bind-apply-helpers-1.0.1.tgz +0 -0
  152. package/.yarn-cache/call-bound-1.0.3.tgz +0 -0
  153. package/.yarn-cache/callsites-3.1.0.tgz +0 -0
  154. package/.yarn-cache/caniuse-lite-1.0.30001696.tgz +0 -0
  155. package/.yarn-cache/chai-5.1.2.tgz +0 -0
  156. package/.yarn-cache/chalk-4.1.2.tgz +0 -0
  157. package/.yarn-cache/check-error-2.1.1.tgz +0 -0
  158. package/.yarn-cache/color-convert-2.0.1.tgz +0 -0
  159. package/.yarn-cache/color-name-1.1.4.tgz +0 -0
  160. package/.yarn-cache/combined-stream-1.0.8.tgz +0 -0
  161. package/.yarn-cache/concat-map-0.0.1.tgz +0 -0
  162. package/.yarn-cache/convert-source-map-2.0.0.tgz +0 -0
  163. package/.yarn-cache/cross-spawn-7.0.6.tgz +0 -0
  164. package/.yarn-cache/cssstyle-4.2.1.tgz +0 -0
  165. package/.yarn-cache/data-urls-5.0.0.tgz +0 -0
  166. package/.yarn-cache/data-view-buffer-1.0.2.tgz +0 -0
  167. package/.yarn-cache/data-view-byte-length-1.0.2.tgz +0 -0
  168. package/.yarn-cache/data-view-byte-offset-1.0.1.tgz +0 -0
  169. package/.yarn-cache/debug-3.2.7.tgz +0 -0
  170. package/.yarn-cache/debug-4.4.0.tgz +0 -0
  171. package/.yarn-cache/decimal.js-10.5.0.tgz +0 -0
  172. package/.yarn-cache/deep-eql-5.0.2.tgz +0 -0
  173. package/.yarn-cache/deep-is-0.1.4.tgz +0 -0
  174. package/.yarn-cache/define-data-property-1.1.4.tgz +0 -0
  175. package/.yarn-cache/define-properties-1.2.1.tgz +0 -0
  176. package/.yarn-cache/delayed-stream-1.0.0.tgz +0 -0
  177. package/.yarn-cache/doctrine-2.1.0.tgz +0 -0
  178. package/.yarn-cache/doctrine-3.0.0.tgz +0 -0
  179. package/.yarn-cache/dunder-proto-1.0.1.tgz +0 -0
  180. package/.yarn-cache/eastasianwidth-0.2.0.tgz +0 -0
  181. package/.yarn-cache/electron-to-chromium-1.5.90.tgz +0 -0
  182. package/.yarn-cache/emoji-regex-8.0.0.tgz +0 -0
  183. package/.yarn-cache/emoji-regex-9.2.2.tgz +0 -0
  184. package/.yarn-cache/entities-4.5.0.tgz +0 -0
  185. package/.yarn-cache/es-abstract-1.23.9.tgz +0 -0
  186. package/.yarn-cache/es-define-property-1.0.1.tgz +0 -0
  187. package/.yarn-cache/es-errors-1.3.0.tgz +0 -0
  188. package/.yarn-cache/es-module-lexer-1.6.0.tgz +0 -0
  189. package/.yarn-cache/es-object-atoms-1.1.1.tgz +0 -0
  190. package/.yarn-cache/es-set-tostringtag-2.1.0.tgz +0 -0
  191. package/.yarn-cache/es-shim-unscopables-1.0.2.tgz +0 -0
  192. package/.yarn-cache/es-to-primitive-1.3.0.tgz +0 -0
  193. package/.yarn-cache/esbuild-0.24.2.tgz +0 -0
  194. package/.yarn-cache/escalade-3.2.0.tgz +0 -0
  195. package/.yarn-cache/escape-string-regexp-4.0.0.tgz +0 -0
  196. package/.yarn-cache/eslint-8.56.0.tgz +0 -0
  197. package/.yarn-cache/eslint-config-prettier-10.0.1.tgz +0 -0
  198. package/.yarn-cache/eslint-import-resolver-node-0.3.9.tgz +0 -0
  199. package/.yarn-cache/eslint-module-utils-2.12.0.tgz +0 -0
  200. package/.yarn-cache/eslint-plugin-import-2.31.0.tgz +0 -0
  201. package/.yarn-cache/eslint-plugin-prettier-5.2.3.tgz +0 -0
  202. package/.yarn-cache/eslint-scope-7.2.2.tgz +0 -0
  203. package/.yarn-cache/eslint-visitor-keys-3.4.3.tgz +0 -0
  204. package/.yarn-cache/eslint-visitor-keys-4.2.0.tgz +0 -0
  205. package/.yarn-cache/espree-9.6.1.tgz +0 -0
  206. package/.yarn-cache/esquery-1.6.0.tgz +0 -0
  207. package/.yarn-cache/esrecurse-4.3.0.tgz +0 -0
  208. package/.yarn-cache/estraverse-5.3.0.tgz +0 -0
  209. package/.yarn-cache/estree-walker-3.0.3.tgz +0 -0
  210. package/.yarn-cache/esutils-2.0.3.tgz +0 -0
  211. package/.yarn-cache/expect-type-1.1.0.tgz +0 -0
  212. package/.yarn-cache/fast-deep-equal-3.1.3.tgz +0 -0
  213. package/.yarn-cache/fast-diff-1.3.0.tgz +0 -0
  214. package/.yarn-cache/fast-glob-3.3.3.tgz +0 -0
  215. package/.yarn-cache/fast-json-stable-stringify-2.1.0.tgz +0 -0
  216. package/.yarn-cache/fast-levenshtein-2.0.6.tgz +0 -0
  217. package/.yarn-cache/fastq-1.19.0.tgz +0 -0
  218. package/.yarn-cache/file-entry-cache-6.0.1.tgz +0 -0
  219. package/.yarn-cache/fill-range-7.1.1.tgz +0 -0
  220. package/.yarn-cache/find-up-5.0.0.tgz +0 -0
  221. package/.yarn-cache/flat-cache-3.2.0.tgz +0 -0
  222. package/.yarn-cache/flatted-3.3.2.tgz +0 -0
  223. package/.yarn-cache/for-each-0.3.4.tgz +0 -0
  224. package/.yarn-cache/foreground-child-3.3.0.tgz +0 -0
  225. package/.yarn-cache/form-data-4.0.1.tgz +0 -0
  226. package/.yarn-cache/fs.realpath-1.0.0.tgz +0 -0
  227. package/.yarn-cache/fsevents-2.3.3.tgz +0 -0
  228. package/.yarn-cache/function-bind-1.1.2.tgz +0 -0
  229. package/.yarn-cache/function.prototype.name-1.1.8.tgz +0 -0
  230. package/.yarn-cache/functions-have-names-1.2.3.tgz +0 -0
  231. package/.yarn-cache/gensync-1.0.0-beta.2.tgz +0 -0
  232. package/.yarn-cache/get-intrinsic-1.2.7.tgz +0 -0
  233. package/.yarn-cache/get-proto-1.0.1.tgz +0 -0
  234. package/.yarn-cache/get-symbol-description-1.1.0.tgz +0 -0
  235. package/.yarn-cache/glob-10.4.5.tgz +0 -0
  236. package/.yarn-cache/glob-11.0.1.tgz +0 -0
  237. package/.yarn-cache/glob-7.2.3.tgz +0 -0
  238. package/.yarn-cache/glob-parent-5.1.2.tgz +0 -0
  239. package/.yarn-cache/glob-parent-6.0.2.tgz +0 -0
  240. package/.yarn-cache/globals-11.12.0.tgz +0 -0
  241. package/.yarn-cache/globals-13.24.0.tgz +0 -0
  242. package/.yarn-cache/globalthis-1.0.4.tgz +0 -0
  243. package/.yarn-cache/globrex-0.1.2.tgz +0 -0
  244. package/.yarn-cache/gopd-1.2.0.tgz +0 -0
  245. package/.yarn-cache/graphemer-1.4.0.tgz +0 -0
  246. package/.yarn-cache/has-bigints-1.1.0.tgz +0 -0
  247. package/.yarn-cache/has-flag-4.0.0.tgz +0 -0
  248. package/.yarn-cache/has-property-descriptors-1.0.2.tgz +0 -0
  249. package/.yarn-cache/has-proto-1.2.0.tgz +0 -0
  250. package/.yarn-cache/has-symbols-1.1.0.tgz +0 -0
  251. package/.yarn-cache/has-tostringtag-1.0.2.tgz +0 -0
  252. package/.yarn-cache/hasown-2.0.2.tgz +0 -0
  253. package/.yarn-cache/html-encoding-sniffer-4.0.0.tgz +0 -0
  254. package/.yarn-cache/html-escaper-2.0.2.tgz +0 -0
  255. package/.yarn-cache/http-proxy-agent-7.0.2.tgz +0 -0
  256. package/.yarn-cache/https-proxy-agent-7.0.6.tgz +0 -0
  257. package/.yarn-cache/iconv-lite-0.6.3.tgz +0 -0
  258. package/.yarn-cache/ignore-5.3.2.tgz +0 -0
  259. package/.yarn-cache/import-fresh-3.3.1.tgz +0 -0
  260. package/.yarn-cache/imurmurhash-0.1.4.tgz +0 -0
  261. package/.yarn-cache/inflight-1.0.6.tgz +0 -0
  262. package/.yarn-cache/inherits-2.0.4.tgz +0 -0
  263. package/.yarn-cache/internal-slot-1.1.0.tgz +0 -0
  264. package/.yarn-cache/is-array-buffer-3.0.5.tgz +0 -0
  265. package/.yarn-cache/is-async-function-2.1.1.tgz +0 -0
  266. package/.yarn-cache/is-bigint-1.1.0.tgz +0 -0
  267. package/.yarn-cache/is-boolean-object-1.2.1.tgz +0 -0
  268. package/.yarn-cache/is-callable-1.2.7.tgz +0 -0
  269. package/.yarn-cache/is-core-module-2.16.1.tgz +0 -0
  270. package/.yarn-cache/is-data-view-1.0.2.tgz +0 -0
  271. package/.yarn-cache/is-date-object-1.1.0.tgz +0 -0
  272. package/.yarn-cache/is-extglob-2.1.1.tgz +0 -0
  273. package/.yarn-cache/is-finalizationregistry-1.1.1.tgz +0 -0
  274. package/.yarn-cache/is-fullwidth-code-point-3.0.0.tgz +0 -0
  275. package/.yarn-cache/is-generator-function-1.1.0.tgz +0 -0
  276. package/.yarn-cache/is-glob-4.0.3.tgz +0 -0
  277. package/.yarn-cache/is-map-2.0.3.tgz +0 -0
  278. package/.yarn-cache/is-number-7.0.0.tgz +0 -0
  279. package/.yarn-cache/is-number-object-1.1.1.tgz +0 -0
  280. package/.yarn-cache/is-path-inside-3.0.3.tgz +0 -0
  281. package/.yarn-cache/is-potential-custom-element-name-1.0.1.tgz +0 -0
  282. package/.yarn-cache/is-regex-1.2.1.tgz +0 -0
  283. package/.yarn-cache/is-set-2.0.3.tgz +0 -0
  284. package/.yarn-cache/is-shared-array-buffer-1.0.4.tgz +0 -0
  285. package/.yarn-cache/is-string-1.1.1.tgz +0 -0
  286. package/.yarn-cache/is-symbol-1.1.1.tgz +0 -0
  287. package/.yarn-cache/is-typed-array-1.1.15.tgz +0 -0
  288. package/.yarn-cache/is-weakmap-2.0.2.tgz +0 -0
  289. package/.yarn-cache/is-weakref-1.1.0.tgz +0 -0
  290. package/.yarn-cache/is-weakset-2.0.4.tgz +0 -0
  291. package/.yarn-cache/isarray-2.0.5.tgz +0 -0
  292. package/.yarn-cache/isexe-2.0.0.tgz +0 -0
  293. package/.yarn-cache/istanbul-lib-coverage-3.2.2.tgz +0 -0
  294. package/.yarn-cache/istanbul-lib-report-3.0.1.tgz +0 -0
  295. package/.yarn-cache/istanbul-lib-source-maps-5.0.6.tgz +0 -0
  296. package/.yarn-cache/istanbul-reports-3.1.7.tgz +0 -0
  297. package/.yarn-cache/jackspeak-3.4.3.tgz +0 -0
  298. package/.yarn-cache/jackspeak-4.0.2.tgz +0 -0
  299. package/.yarn-cache/js-tokens-4.0.0.tgz +0 -0
  300. package/.yarn-cache/js-yaml-4.1.0.tgz +0 -0
  301. package/.yarn-cache/jsdom-26.0.0.tgz +0 -0
  302. package/.yarn-cache/jsesc-3.1.0.tgz +0 -0
  303. package/.yarn-cache/json-buffer-3.0.1.tgz +0 -0
  304. package/.yarn-cache/json-schema-traverse-0.4.1.tgz +0 -0
  305. package/.yarn-cache/json-stable-stringify-without-jsonify-1.0.1.tgz +0 -0
  306. package/.yarn-cache/json5-1.0.2.tgz +0 -0
  307. package/.yarn-cache/json5-2.2.3.tgz +0 -0
  308. package/.yarn-cache/keyv-4.5.4.tgz +0 -0
  309. package/.yarn-cache/levn-0.4.1.tgz +0 -0
  310. package/.yarn-cache/linkify-it-5.0.0.tgz +0 -0
  311. package/.yarn-cache/locate-path-6.0.0.tgz +0 -0
  312. package/.yarn-cache/lodash.merge-4.6.2.tgz +0 -0
  313. package/.yarn-cache/loupe-3.1.3.tgz +0 -0
  314. package/.yarn-cache/lru-cache-10.4.3.tgz +0 -0
  315. package/.yarn-cache/lru-cache-11.0.2.tgz +0 -0
  316. package/.yarn-cache/lru-cache-5.1.1.tgz +0 -0
  317. package/.yarn-cache/lunr-2.3.9.tgz +0 -0
  318. package/.yarn-cache/magic-string-0.30.17.tgz +0 -0
  319. package/.yarn-cache/magicast-0.3.5.tgz +0 -0
  320. package/.yarn-cache/make-dir-4.0.0.tgz +0 -0
  321. package/.yarn-cache/markdown-it-14.1.0.tgz +0 -0
  322. package/.yarn-cache/math-intrinsics-1.1.0.tgz +0 -0
  323. package/.yarn-cache/mdurl-2.0.0.tgz +0 -0
  324. package/.yarn-cache/merge2-1.4.1.tgz +0 -0
  325. package/.yarn-cache/micromatch-4.0.8.tgz +0 -0
  326. package/.yarn-cache/mime-db-1.52.0.tgz +0 -0
  327. package/.yarn-cache/mime-types-2.1.35.tgz +0 -0
  328. package/.yarn-cache/minimatch-10.0.1.tgz +0 -0
  329. package/.yarn-cache/minimatch-3.1.2.tgz +0 -0
  330. package/.yarn-cache/minimatch-9.0.5.tgz +0 -0
  331. package/.yarn-cache/minimist-1.2.8.tgz +0 -0
  332. package/.yarn-cache/minipass-7.1.2.tgz +0 -0
  333. package/.yarn-cache/ms-2.1.3.tgz +0 -0
  334. package/.yarn-cache/nanoid-3.3.8.tgz +0 -0
  335. package/.yarn-cache/natural-compare-1.4.0.tgz +0 -0
  336. package/.yarn-cache/node-releases-2.0.19.tgz +0 -0
  337. package/.yarn-cache/nwsapi-2.2.16.tgz +0 -0
  338. package/.yarn-cache/object-inspect-1.13.3.tgz +0 -0
  339. package/.yarn-cache/object-keys-1.1.1.tgz +0 -0
  340. package/.yarn-cache/object.assign-4.1.7.tgz +0 -0
  341. package/.yarn-cache/object.fromentries-2.0.8.tgz +0 -0
  342. package/.yarn-cache/object.groupby-1.0.3.tgz +0 -0
  343. package/.yarn-cache/object.values-1.2.1.tgz +0 -0
  344. package/.yarn-cache/once-1.4.0.tgz +0 -0
  345. package/.yarn-cache/optionator-0.9.4.tgz +0 -0
  346. package/.yarn-cache/own-keys-1.0.1.tgz +0 -0
  347. package/.yarn-cache/p-limit-3.1.0.tgz +0 -0
  348. package/.yarn-cache/p-locate-5.0.0.tgz +0 -0
  349. package/.yarn-cache/parent-module-1.0.1.tgz +0 -0
  350. package/.yarn-cache/parse5-7.2.1.tgz +0 -0
  351. package/.yarn-cache/path-exists-4.0.0.tgz +0 -0
  352. package/.yarn-cache/path-is-absolute-1.0.1.tgz +0 -0
  353. package/.yarn-cache/path-key-3.1.1.tgz +0 -0
  354. package/.yarn-cache/path-parse-1.0.7.tgz +0 -0
  355. package/.yarn-cache/path-scurry-1.11.1.tgz +0 -0
  356. package/.yarn-cache/path-scurry-2.0.0.tgz +0 -0
  357. package/.yarn-cache/pathe-2.0.2.tgz +0 -0
  358. package/.yarn-cache/pathval-2.0.0.tgz +0 -0
  359. package/.yarn-cache/picocolors-1.1.1.tgz +0 -0
  360. package/.yarn-cache/picomatch-2.3.1.tgz +0 -0
  361. package/.yarn-cache/possible-typed-array-names-1.0.0.tgz +0 -0
  362. package/.yarn-cache/postcss-8.5.1.tgz +0 -0
  363. package/.yarn-cache/prelude-ls-1.2.1.tgz +0 -0
  364. package/.yarn-cache/prettier-3.4.2.tgz +0 -0
  365. package/.yarn-cache/prettier-linter-helpers-1.0.0.tgz +0 -0
  366. package/.yarn-cache/punycode-2.3.1.tgz +0 -0
  367. package/.yarn-cache/punycode.js-2.3.1.tgz +0 -0
  368. package/.yarn-cache/queue-microtask-1.2.3.tgz +0 -0
  369. package/.yarn-cache/react-refresh-0.14.2.tgz +0 -0
  370. package/.yarn-cache/reflect.getprototypeof-1.0.10.tgz +0 -0
  371. package/.yarn-cache/regexp.prototype.flags-1.5.4.tgz +0 -0
  372. package/.yarn-cache/resolve-1.22.10.tgz +0 -0
  373. package/.yarn-cache/resolve-from-4.0.0.tgz +0 -0
  374. package/.yarn-cache/reusify-1.0.4.tgz +0 -0
  375. package/.yarn-cache/rimraf-3.0.2.tgz +0 -0
  376. package/.yarn-cache/rimraf-6.0.1.tgz +0 -0
  377. package/.yarn-cache/rollup-4.34.1.tgz +0 -0
  378. package/.yarn-cache/rrweb-cssom-0.8.0.tgz +0 -0
  379. package/.yarn-cache/run-parallel-1.2.0.tgz +0 -0
  380. package/.yarn-cache/safe-array-concat-1.1.3.tgz +0 -0
  381. package/.yarn-cache/safe-push-apply-1.0.0.tgz +0 -0
  382. package/.yarn-cache/safe-regex-test-1.1.0.tgz +0 -0
  383. package/.yarn-cache/safer-buffer-2.1.2.tgz +0 -0
  384. package/.yarn-cache/saxes-6.0.0.tgz +0 -0
  385. package/.yarn-cache/semver-6.3.1.tgz +0 -0
  386. package/.yarn-cache/semver-7.7.0.tgz +0 -0
  387. package/.yarn-cache/set-function-length-1.2.2.tgz +0 -0
  388. package/.yarn-cache/set-function-name-2.0.2.tgz +0 -0
  389. package/.yarn-cache/set-proto-1.0.0.tgz +0 -0
  390. package/.yarn-cache/shebang-command-2.0.0.tgz +0 -0
  391. package/.yarn-cache/shebang-regex-3.0.0.tgz +0 -0
  392. package/.yarn-cache/side-channel-1.1.0.tgz +0 -0
  393. package/.yarn-cache/side-channel-list-1.0.0.tgz +0 -0
  394. package/.yarn-cache/side-channel-map-1.0.1.tgz +0 -0
  395. package/.yarn-cache/side-channel-weakmap-1.0.2.tgz +0 -0
  396. package/.yarn-cache/siginfo-2.0.0.tgz +0 -0
  397. package/.yarn-cache/signal-exit-4.1.0.tgz +0 -0
  398. package/.yarn-cache/source-map-js-1.2.1.tgz +0 -0
  399. package/.yarn-cache/stackback-0.0.2.tgz +0 -0
  400. package/.yarn-cache/std-env-3.8.0.tgz +0 -0
  401. package/.yarn-cache/string-width-4.2.3.tgz +0 -0
  402. package/.yarn-cache/string-width-5.1.2.tgz +0 -0
  403. package/.yarn-cache/string.prototype.trim-1.2.10.tgz +0 -0
  404. package/.yarn-cache/string.prototype.trimend-1.0.9.tgz +0 -0
  405. package/.yarn-cache/string.prototype.trimstart-1.0.8.tgz +0 -0
  406. package/.yarn-cache/strip-ansi-6.0.1.tgz +0 -0
  407. package/.yarn-cache/strip-ansi-7.1.0.tgz +0 -0
  408. package/.yarn-cache/strip-bom-3.0.0.tgz +0 -0
  409. package/.yarn-cache/strip-json-comments-3.1.1.tgz +0 -0
  410. package/.yarn-cache/supports-color-7.2.0.tgz +0 -0
  411. package/.yarn-cache/supports-preserve-symlinks-flag-1.0.0.tgz +0 -0
  412. package/.yarn-cache/symbol-tree-3.2.4.tgz +0 -0
  413. package/.yarn-cache/synckit-0.9.2.tgz +0 -0
  414. package/.yarn-cache/test-exclude-7.0.1.tgz +0 -0
  415. package/.yarn-cache/text-table-0.2.0.tgz +0 -0
  416. package/.yarn-cache/tinybench-2.9.0.tgz +0 -0
  417. package/.yarn-cache/tinyexec-0.3.2.tgz +0 -0
  418. package/.yarn-cache/tinypool-1.0.2.tgz +0 -0
  419. package/.yarn-cache/tinyrainbow-2.0.0.tgz +0 -0
  420. package/.yarn-cache/tinyspy-3.0.2.tgz +0 -0
  421. package/.yarn-cache/tldts-6.1.76.tgz +0 -0
  422. package/.yarn-cache/tldts-core-6.1.76.tgz +0 -0
  423. package/.yarn-cache/to-regex-range-5.0.1.tgz +0 -0
  424. package/.yarn-cache/tough-cookie-5.1.0.tgz +0 -0
  425. package/.yarn-cache/tr46-5.0.0.tgz +0 -0
  426. package/.yarn-cache/ts-api-utils-2.0.1.tgz +0 -0
  427. package/.yarn-cache/tsconfck-3.1.4.tgz +0 -0
  428. package/.yarn-cache/tsconfig-paths-3.15.0.tgz +0 -0
  429. package/.yarn-cache/tslib-2.8.1.tgz +0 -0
  430. package/.yarn-cache/type-check-0.4.0.tgz +0 -0
  431. package/.yarn-cache/type-fest-0.20.2.tgz +0 -0
  432. package/.yarn-cache/typed-array-buffer-1.0.3.tgz +0 -0
  433. package/.yarn-cache/typed-array-byte-length-1.0.3.tgz +0 -0
  434. package/.yarn-cache/typed-array-byte-offset-1.0.4.tgz +0 -0
  435. package/.yarn-cache/typed-array-length-1.0.7.tgz +0 -0
  436. package/.yarn-cache/typedoc-0.27.6.tgz +0 -0
  437. package/.yarn-cache/typescript-5.7.3.tgz +0 -0
  438. package/.yarn-cache/uc.micro-2.1.0.tgz +0 -0
  439. package/.yarn-cache/unbox-primitive-1.1.0.tgz +0 -0
  440. package/.yarn-cache/update-browserslist-db-1.1.2.tgz +0 -0
  441. package/.yarn-cache/uri-js-4.4.1.tgz +0 -0
  442. package/.yarn-cache/vite-6.0.11.tgz +0 -0
  443. package/.yarn-cache/vite-node-3.0.5.tgz +0 -0
  444. package/.yarn-cache/vite-tsconfig-paths-5.1.4.tgz +0 -0
  445. package/.yarn-cache/vitest-3.0.5.tgz +0 -0
  446. package/.yarn-cache/w3c-xmlserializer-5.0.0.tgz +0 -0
  447. package/.yarn-cache/webidl-conversions-7.0.0.tgz +0 -0
  448. package/.yarn-cache/whatwg-encoding-3.1.1.tgz +0 -0
  449. package/.yarn-cache/whatwg-mimetype-4.0.0.tgz +0 -0
  450. package/.yarn-cache/whatwg-url-14.1.0.tgz +0 -0
  451. package/.yarn-cache/which-2.0.2.tgz +0 -0
  452. package/.yarn-cache/which-boxed-primitive-1.1.1.tgz +0 -0
  453. package/.yarn-cache/which-builtin-type-1.2.1.tgz +0 -0
  454. package/.yarn-cache/which-collection-1.0.2.tgz +0 -0
  455. package/.yarn-cache/which-typed-array-1.1.18.tgz +0 -0
  456. package/.yarn-cache/why-is-node-running-2.3.0.tgz +0 -0
  457. package/.yarn-cache/word-wrap-1.2.5.tgz +0 -0
  458. package/.yarn-cache/wrap-ansi-7.0.0.tgz +0 -0
  459. package/.yarn-cache/wrap-ansi-8.1.0.tgz +0 -0
  460. package/.yarn-cache/wrappy-1.0.2.tgz +0 -0
  461. package/.yarn-cache/ws-8.18.0.tgz +0 -0
  462. package/.yarn-cache/xml-name-validator-5.0.0.tgz +0 -0
  463. package/.yarn-cache/xmlchars-2.2.0.tgz +0 -0
  464. package/.yarn-cache/yallist-3.1.1.tgz +0 -0
  465. package/.yarn-cache/yaml-2.7.0.tgz +0 -0
  466. package/.yarn-cache/yocto-queue-0.1.0.tgz +0 -0
  467. package/.yarnrc +2 -0
  468. package/.yarnrc.yml +2 -0
  469. package/README.md +53 -0
  470. package/package.json +35 -0
  471. package/src/logger/index.ts +0 -0
  472. package/src/microfrontends/check-global-property/__tests__/check-global-property.test.ts +45 -0
  473. package/src/microfrontends/check-global-property/check-global-property.ts +19 -0
  474. package/src/microfrontends/check-global-property/index.ts +1 -0
  475. package/src/microfrontends/index.ts +1 -0
  476. package/tsconfig.build.json +10 -0
  477. package/tsconfig.json +111 -0
  478. package/typedoc.json +6 -0
  479. package/vitest.config.mjs +28 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/.yarnrc ADDED
@@ -0,0 +1,2 @@
1
+ yarn-offline-mirror ".yarn-cache/"
2
+ yarn-offline-mirror-pruning true
package/.yarnrc.yml ADDED
@@ -0,0 +1,2 @@
1
+ defaultSemverRangePrefix: ""
2
+ yarnPath: .yarn/releases/yarn-classic.cjs
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # @ticmas/frontend-utils
2
+
3
+ `@ticmas-ui/frontend-utils` es una librería interna diseñada para centralizar funciones utilitarias y comunes utilizadas en proyectos de frontend. Su propósito es mejorar la consistencia y reutilización de código dentro de los proyectos del equipo.
4
+
5
+ ## 📋 Requisitos
6
+
7
+ - **Node 20+**
8
+ - **Yarn**
9
+ - **Tener configurado token de GITLAB_REGISTRY**
10
+
11
+ ## 🚀 Instalación
12
+
13
+ Instalá la librería con el siguiente comando:
14
+
15
+ ```bash
16
+ yarn add @ticmas/frontend-utils
17
+ ```
18
+
19
+ ## 🤝 Contribución
20
+ 1. Cloná el repositorio:
21
+
22
+ ```bash
23
+ git clone git@github.com:tu-organizacion/frontend-utils.git
24
+ ````
25
+
26
+ 2. Instalá las dependencias:
27
+
28
+ ```bash
29
+ yarn install
30
+ ```
31
+
32
+ 3. Seguí las buenas prácticas de la guía de estilo de código del equipo de ingeniería:
33
+
34
+ * Cada nueva función debe incluir tests unitarios.
35
+ * Asegurate de pasar el check de ESLint antes de crear un Merge Request.
36
+ * Evitá introducir lógica de negocio propia de productos. La librería debe mantenerse genérica y enfocada en utilidades comunes.
37
+ * Creá un Merge Request y compartilo en el canal `#developers` para su revisión..
38
+
39
+ ## 🧪 Tests
40
+
41
+ Ejecutá los tests para validar los cambios:
42
+
43
+ ```bash
44
+ yarn test
45
+ ```
46
+
47
+ ## 🧪 ESLint
48
+
49
+ Ejecutá ESLint para validar los cambios:
50
+
51
+ ```bash
52
+ yarn lint
53
+ ```
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@ticmas/frontend-utils",
3
+ "version": "1.0.0",
4
+ "repository": "https://gitlab.com/vidatec/libs/frontend-utils.git",
5
+ "license": "MIT",
6
+ "scripts": {
7
+ "clean-build": "rimraf dist",
8
+ "build": "yarn clean-build && tsc -p tsconfig.build.json",
9
+ "build-storybook": "yarn build && typedoc --out public",
10
+ "lint": "eslint \"src/**/*.ts\" --fix",
11
+ "test": "vitest run --coverage",
12
+ "test:ci": "vitest run --coverage --poolOptions.threads.singleThread --passWithNoTests",
13
+ "test:watch": "vitest",
14
+ "test-e2e:ci": "echo \"OK\"",
15
+ "typescript": "tsc"
16
+ },
17
+ "devDependencies": {
18
+ "@typescript-eslint/eslint-plugin": "8.23.0",
19
+ "@typescript-eslint/parser": "8.23.0",
20
+ "@vitejs/plugin-react": "4.3.4",
21
+ "@vitest/coverage-v8": "3.0.5",
22
+ "eslint": "8.56.0",
23
+ "eslint-config-prettier": "10.0.1",
24
+ "eslint-plugin-import": "2.31.0",
25
+ "eslint-plugin-prettier": "5.2.3",
26
+ "jsdom": "26.0.0",
27
+ "prettier": "3.4.2",
28
+ "rimraf": "6.0.1",
29
+ "typedoc": "0.27.6",
30
+ "typescript": "5.7.3",
31
+ "vite-tsconfig-paths": "5.1.4",
32
+ "vitest": "3.0.5"
33
+ },
34
+ "packageManager": "yarn@1.22.22"
35
+ }
File without changes
@@ -0,0 +1,45 @@
1
+ import { checkGlobalProperty } from '../check-global-property';
2
+
3
+ /**
4
+ * Mocks
5
+ */
6
+
7
+ const KEY_MOCK = 'A.KEY';
8
+
9
+ /**
10
+ * Tests
11
+ */
12
+
13
+ describe('checkGlobalProperty', () => {
14
+ afterEach(() => {
15
+ delete (globalThis as any)[KEY_MOCK];
16
+ });
17
+
18
+ it('should return true if the global property exists', () => {
19
+ (globalThis as any)[KEY_MOCK] = true;
20
+
21
+ const result = checkGlobalProperty(KEY_MOCK);
22
+
23
+ expect(result).toBeTruthy();
24
+ });
25
+
26
+ it('should return false if the global property does not exist', () => {
27
+ const result = checkGlobalProperty('nonExistentKey');
28
+
29
+ expect(result).toBeFalsy();
30
+ });
31
+
32
+ it('should return true if the global property exists with a falsy value', () => {
33
+ (globalThis as any)[KEY_MOCK] = 0;
34
+
35
+ const result = checkGlobalProperty(KEY_MOCK);
36
+
37
+ expect(result).toBeTruthy();
38
+ });
39
+
40
+ it('should handle cases where the key is an empty string', () => {
41
+ const result = checkGlobalProperty('');
42
+
43
+ expect(result).toBeFalsy();
44
+ });
45
+ });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Verifica si una propiedad global está definida en el objeto `globalThis` de la aplicación host.
3
+ *
4
+ * Esta función comprueba si existe una propiedad con la clave proporcionada en el contexto global (`globalThis`).
5
+ * Si la propiedad está definida, retorna `true`, de lo contrario, retorna `false`.
6
+ *
7
+ * @param {string} key - La clave de la propiedad global que se desea verificar.
8
+ * @returns {boolean} `true` si la propiedad global está definida, `false` en caso contrario.
9
+ *
10
+ * @example
11
+ * // Ejemplo de uso:
12
+ * const isPropertyDefined = checkGlobalProperty('myGlobalVar');
13
+ * if (isPropertyDefined) {
14
+ * console.log('La propiedad global está definida.');
15
+ * } else {
16
+ * console.log('La propiedad global no está definida.');
17
+ * }
18
+ */
19
+ export const checkGlobalProperty = (key: string): boolean => key in globalThis;
@@ -0,0 +1 @@
1
+ export * from './check-global-property';
@@ -0,0 +1 @@
1
+ export * from './check-global-property';
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist"
5
+ },
6
+ "exclude": [
7
+ "node_modules",
8
+ "**/__tests__/**",
9
+ ]
10
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,111 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
17
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
18
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
+
27
+ /* Modules */
28
+ "module": "commonjs", /* Specify what module code is generated. */
29
+ // "rootDir": "./", /* Specify the root folder within your source files. */
30
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
31
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
+ "types": ["vitest/globals"], /* Specify type package names to be included without being referenced in a source file. */
36
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
+ // "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
40
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
41
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
42
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
43
+ // "noUncheckedSideEffectImports": true, /* Check side effect imports. */
44
+ // "resolveJsonModule": true, /* Enable importing .json files. */
45
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
46
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
47
+
48
+ /* JavaScript Support */
49
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
50
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
51
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
52
+
53
+ /* Emit */
54
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
55
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
56
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
57
+ "sourceMap": false, /* Create source map files for emitted JavaScript files. */
58
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
59
+ "noEmit": false, /* Disable emitting files from a compilation. */
60
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
61
+ "outDir": "./dist", /* Specify an output folder for all emitted files. */
62
+ // "removeComments": true, /* Disable emitting comments. */
63
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
64
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
65
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
66
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
67
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
68
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
69
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
70
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
71
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
72
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
73
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
74
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
75
+
76
+ /* Interop Constraints */
77
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
78
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
79
+ // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
80
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
81
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
82
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
83
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
84
+
85
+ /* Type Checking */
86
+ "strict": true, /* Enable all strict type-checking options. */
87
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
88
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
89
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
90
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
91
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
92
+ // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */
93
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
94
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
95
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
96
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
97
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
98
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
99
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
100
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
101
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
102
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
103
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
104
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
105
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
106
+
107
+ /* Completeness */
108
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
109
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
110
+ }
111
+ }
package/typedoc.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://typedoc.org/schema.json",
3
+ "entryPoints": ["src/*"],
4
+ "name": "frontend-utils",
5
+ "includeVersion": false
6
+ }
@@ -0,0 +1,28 @@
1
+ import react from '@vitejs/plugin-react';
2
+ import tsconfigPaths from 'vite-tsconfig-paths';
3
+ import { configDefaults, defineConfig } from 'vitest/config';
4
+ import path from 'path';
5
+
6
+ export default defineConfig({
7
+ plugins: [
8
+ react(),
9
+ tsconfigPaths()
10
+ ],
11
+ test: {
12
+ clearMocks: true,
13
+ coverage: {
14
+ include: ['src'],
15
+ exclude: [
16
+ 'dist',
17
+ 'src/core/__tests__/mocks/**',
18
+ '**/**/index.ts?(x)',
19
+ '**/**/*.test.ts?(x)'
20
+ ],
21
+ reporter: ['text', 'json', 'html'],
22
+ },
23
+ environment: 'jsdom',
24
+ globals: true,
25
+ include: [...configDefaults.include],
26
+ exclude: [...configDefaults.exclude],
27
+ }
28
+ });