@ticmas/frontend-utils 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.js +38 -0
- package/.gitlab-ci.yml +4 -0
- package/.prettierrc.json +7 -0
- package/.yarn/releases/yarn-classic.cjs +148049 -0
- package/.yarn-cache/@ampproject-remapping-2.3.0.tgz +0 -0
- package/.yarn-cache/@asamuzakjp-css-color-2.8.3.tgz +0 -0
- package/.yarn-cache/@babel-code-frame-7.26.2.tgz +0 -0
- package/.yarn-cache/@babel-compat-data-7.26.5.tgz +0 -0
- package/.yarn-cache/@babel-core-7.26.7.tgz +0 -0
- package/.yarn-cache/@babel-generator-7.26.5.tgz +0 -0
- package/.yarn-cache/@babel-helper-compilation-targets-7.26.5.tgz +0 -0
- package/.yarn-cache/@babel-helper-module-imports-7.25.9.tgz +0 -0
- package/.yarn-cache/@babel-helper-module-transforms-7.26.0.tgz +0 -0
- package/.yarn-cache/@babel-helper-plugin-utils-7.26.5.tgz +0 -0
- package/.yarn-cache/@babel-helper-string-parser-7.25.9.tgz +0 -0
- package/.yarn-cache/@babel-helper-validator-identifier-7.25.9.tgz +0 -0
- package/.yarn-cache/@babel-helper-validator-option-7.25.9.tgz +0 -0
- package/.yarn-cache/@babel-helpers-7.26.7.tgz +0 -0
- package/.yarn-cache/@babel-parser-7.26.7.tgz +0 -0
- package/.yarn-cache/@babel-plugin-transform-react-jsx-self-7.25.9.tgz +0 -0
- package/.yarn-cache/@babel-plugin-transform-react-jsx-source-7.25.9.tgz +0 -0
- package/.yarn-cache/@babel-template-7.25.9.tgz +0 -0
- package/.yarn-cache/@babel-traverse-7.26.7.tgz +0 -0
- package/.yarn-cache/@babel-types-7.26.7.tgz +0 -0
- package/.yarn-cache/@bcoe-v8-coverage-1.0.2.tgz +0 -0
- package/.yarn-cache/@csstools-color-helpers-5.0.1.tgz +0 -0
- package/.yarn-cache/@csstools-css-calc-2.1.1.tgz +0 -0
- package/.yarn-cache/@csstools-css-color-parser-3.0.7.tgz +0 -0
- package/.yarn-cache/@csstools-css-parser-algorithms-3.0.4.tgz +0 -0
- package/.yarn-cache/@csstools-css-tokenizer-3.0.3.tgz +0 -0
- package/.yarn-cache/@esbuild-aix-ppc64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-android-arm-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-android-arm64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-android-x64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-darwin-arm64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-darwin-x64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-freebsd-arm64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-freebsd-x64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-arm-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-arm64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-ia32-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-loong64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-mips64el-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-ppc64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-riscv64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-s390x-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-linux-x64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-netbsd-arm64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-netbsd-x64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-openbsd-arm64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-openbsd-x64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-sunos-x64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-win32-arm64-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-win32-ia32-0.24.2.tgz +0 -0
- package/.yarn-cache/@esbuild-win32-x64-0.24.2.tgz +0 -0
- package/.yarn-cache/@eslint-community-eslint-utils-4.4.1.tgz +0 -0
- package/.yarn-cache/@eslint-community-regexpp-4.12.1.tgz +0 -0
- package/.yarn-cache/@eslint-eslintrc-2.1.4.tgz +0 -0
- package/.yarn-cache/@eslint-js-8.56.0.tgz +0 -0
- package/.yarn-cache/@gerrit0-mini-shiki-1.27.2.tgz +0 -0
- package/.yarn-cache/@humanwhocodes-config-array-0.11.14.tgz +0 -0
- package/.yarn-cache/@humanwhocodes-module-importer-1.0.1.tgz +0 -0
- package/.yarn-cache/@humanwhocodes-object-schema-2.0.3.tgz +0 -0
- package/.yarn-cache/@isaacs-cliui-8.0.2.tgz +0 -0
- package/.yarn-cache/@istanbuljs-schema-0.1.3.tgz +0 -0
- package/.yarn-cache/@jridgewell-gen-mapping-0.3.8.tgz +0 -0
- package/.yarn-cache/@jridgewell-resolve-uri-3.1.2.tgz +0 -0
- package/.yarn-cache/@jridgewell-set-array-1.2.1.tgz +0 -0
- package/.yarn-cache/@jridgewell-sourcemap-codec-1.5.0.tgz +0 -0
- package/.yarn-cache/@jridgewell-trace-mapping-0.3.25.tgz +0 -0
- package/.yarn-cache/@nodelib-fs.scandir-2.1.5.tgz +0 -0
- package/.yarn-cache/@nodelib-fs.stat-2.0.5.tgz +0 -0
- package/.yarn-cache/@nodelib-fs.walk-1.2.8.tgz +0 -0
- package/.yarn-cache/@pkgjs-parseargs-0.11.0.tgz +0 -0
- package/.yarn-cache/@pkgr-core-0.1.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-android-arm-eabi-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-android-arm64-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-darwin-arm64-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-darwin-x64-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-freebsd-arm64-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-freebsd-x64-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-arm-gnueabihf-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-arm-musleabihf-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-arm64-gnu-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-arm64-musl-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-loongarch64-gnu-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-powerpc64le-gnu-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-riscv64-gnu-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-s390x-gnu-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-x64-gnu-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-linux-x64-musl-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-win32-arm64-msvc-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-win32-ia32-msvc-4.34.1.tgz +0 -0
- package/.yarn-cache/@rollup-rollup-win32-x64-msvc-4.34.1.tgz +0 -0
- package/.yarn-cache/@rtsao-scc-1.1.0.tgz +0 -0
- package/.yarn-cache/@shikijs-engine-oniguruma-1.29.2.tgz +0 -0
- package/.yarn-cache/@shikijs-types-1.29.2.tgz +0 -0
- package/.yarn-cache/@shikijs-vscode-textmate-10.0.1.tgz +0 -0
- package/.yarn-cache/@types-babel__core-7.20.5.tgz +0 -0
- package/.yarn-cache/@types-babel__generator-7.6.8.tgz +0 -0
- package/.yarn-cache/@types-babel__template-7.4.4.tgz +0 -0
- package/.yarn-cache/@types-babel__traverse-7.20.6.tgz +0 -0
- package/.yarn-cache/@types-estree-1.0.6.tgz +0 -0
- package/.yarn-cache/@types-hast-3.0.4.tgz +0 -0
- package/.yarn-cache/@types-json5-0.0.29.tgz +0 -0
- package/.yarn-cache/@types-unist-3.0.3.tgz +0 -0
- package/.yarn-cache/@typescript-eslint-eslint-plugin-8.23.0.tgz +0 -0
- package/.yarn-cache/@typescript-eslint-parser-8.23.0.tgz +0 -0
- package/.yarn-cache/@typescript-eslint-scope-manager-8.23.0.tgz +0 -0
- package/.yarn-cache/@typescript-eslint-type-utils-8.23.0.tgz +0 -0
- package/.yarn-cache/@typescript-eslint-types-8.23.0.tgz +0 -0
- package/.yarn-cache/@typescript-eslint-typescript-estree-8.23.0.tgz +0 -0
- package/.yarn-cache/@typescript-eslint-utils-8.23.0.tgz +0 -0
- package/.yarn-cache/@typescript-eslint-visitor-keys-8.23.0.tgz +0 -0
- package/.yarn-cache/@ungap-structured-clone-1.3.0.tgz +0 -0
- package/.yarn-cache/@vitejs-plugin-react-4.3.4.tgz +0 -0
- package/.yarn-cache/@vitest-coverage-v8-3.0.5.tgz +0 -0
- package/.yarn-cache/@vitest-expect-3.0.5.tgz +0 -0
- package/.yarn-cache/@vitest-mocker-3.0.5.tgz +0 -0
- package/.yarn-cache/@vitest-pretty-format-3.0.5.tgz +0 -0
- package/.yarn-cache/@vitest-runner-3.0.5.tgz +0 -0
- package/.yarn-cache/@vitest-snapshot-3.0.5.tgz +0 -0
- package/.yarn-cache/@vitest-spy-3.0.5.tgz +0 -0
- package/.yarn-cache/@vitest-utils-3.0.5.tgz +0 -0
- package/.yarn-cache/acorn-8.14.0.tgz +0 -0
- package/.yarn-cache/acorn-jsx-5.3.2.tgz +0 -0
- package/.yarn-cache/agent-base-7.1.3.tgz +0 -0
- package/.yarn-cache/ajv-6.12.6.tgz +0 -0
- package/.yarn-cache/ansi-regex-5.0.1.tgz +0 -0
- package/.yarn-cache/ansi-regex-6.1.0.tgz +0 -0
- package/.yarn-cache/ansi-styles-4.3.0.tgz +0 -0
- package/.yarn-cache/ansi-styles-6.2.1.tgz +0 -0
- package/.yarn-cache/argparse-2.0.1.tgz +0 -0
- package/.yarn-cache/array-buffer-byte-length-1.0.2.tgz +0 -0
- package/.yarn-cache/array-includes-3.1.8.tgz +0 -0
- package/.yarn-cache/array.prototype.findlastindex-1.2.5.tgz +0 -0
- package/.yarn-cache/array.prototype.flat-1.3.3.tgz +0 -0
- package/.yarn-cache/array.prototype.flatmap-1.3.3.tgz +0 -0
- package/.yarn-cache/arraybuffer.prototype.slice-1.0.4.tgz +0 -0
- package/.yarn-cache/assertion-error-2.0.1.tgz +0 -0
- package/.yarn-cache/async-function-1.0.0.tgz +0 -0
- package/.yarn-cache/asynckit-0.4.0.tgz +0 -0
- package/.yarn-cache/available-typed-arrays-1.0.7.tgz +0 -0
- package/.yarn-cache/balanced-match-1.0.2.tgz +0 -0
- package/.yarn-cache/brace-expansion-1.1.11.tgz +0 -0
- package/.yarn-cache/brace-expansion-2.0.1.tgz +0 -0
- package/.yarn-cache/braces-3.0.3.tgz +0 -0
- package/.yarn-cache/browserslist-4.24.4.tgz +0 -0
- package/.yarn-cache/cac-6.7.14.tgz +0 -0
- package/.yarn-cache/call-bind-1.0.8.tgz +0 -0
- package/.yarn-cache/call-bind-apply-helpers-1.0.1.tgz +0 -0
- package/.yarn-cache/call-bound-1.0.3.tgz +0 -0
- package/.yarn-cache/callsites-3.1.0.tgz +0 -0
- package/.yarn-cache/caniuse-lite-1.0.30001696.tgz +0 -0
- package/.yarn-cache/chai-5.1.2.tgz +0 -0
- package/.yarn-cache/chalk-4.1.2.tgz +0 -0
- package/.yarn-cache/check-error-2.1.1.tgz +0 -0
- package/.yarn-cache/color-convert-2.0.1.tgz +0 -0
- package/.yarn-cache/color-name-1.1.4.tgz +0 -0
- package/.yarn-cache/combined-stream-1.0.8.tgz +0 -0
- package/.yarn-cache/concat-map-0.0.1.tgz +0 -0
- package/.yarn-cache/convert-source-map-2.0.0.tgz +0 -0
- package/.yarn-cache/cross-spawn-7.0.6.tgz +0 -0
- package/.yarn-cache/cssstyle-4.2.1.tgz +0 -0
- package/.yarn-cache/data-urls-5.0.0.tgz +0 -0
- package/.yarn-cache/data-view-buffer-1.0.2.tgz +0 -0
- package/.yarn-cache/data-view-byte-length-1.0.2.tgz +0 -0
- package/.yarn-cache/data-view-byte-offset-1.0.1.tgz +0 -0
- package/.yarn-cache/debug-3.2.7.tgz +0 -0
- package/.yarn-cache/debug-4.4.0.tgz +0 -0
- package/.yarn-cache/decimal.js-10.5.0.tgz +0 -0
- package/.yarn-cache/deep-eql-5.0.2.tgz +0 -0
- package/.yarn-cache/deep-is-0.1.4.tgz +0 -0
- package/.yarn-cache/define-data-property-1.1.4.tgz +0 -0
- package/.yarn-cache/define-properties-1.2.1.tgz +0 -0
- package/.yarn-cache/delayed-stream-1.0.0.tgz +0 -0
- package/.yarn-cache/doctrine-2.1.0.tgz +0 -0
- package/.yarn-cache/doctrine-3.0.0.tgz +0 -0
- package/.yarn-cache/dunder-proto-1.0.1.tgz +0 -0
- package/.yarn-cache/eastasianwidth-0.2.0.tgz +0 -0
- package/.yarn-cache/electron-to-chromium-1.5.90.tgz +0 -0
- package/.yarn-cache/emoji-regex-8.0.0.tgz +0 -0
- package/.yarn-cache/emoji-regex-9.2.2.tgz +0 -0
- package/.yarn-cache/entities-4.5.0.tgz +0 -0
- package/.yarn-cache/es-abstract-1.23.9.tgz +0 -0
- package/.yarn-cache/es-define-property-1.0.1.tgz +0 -0
- package/.yarn-cache/es-errors-1.3.0.tgz +0 -0
- package/.yarn-cache/es-module-lexer-1.6.0.tgz +0 -0
- package/.yarn-cache/es-object-atoms-1.1.1.tgz +0 -0
- package/.yarn-cache/es-set-tostringtag-2.1.0.tgz +0 -0
- package/.yarn-cache/es-shim-unscopables-1.0.2.tgz +0 -0
- package/.yarn-cache/es-to-primitive-1.3.0.tgz +0 -0
- package/.yarn-cache/esbuild-0.24.2.tgz +0 -0
- package/.yarn-cache/escalade-3.2.0.tgz +0 -0
- package/.yarn-cache/escape-string-regexp-4.0.0.tgz +0 -0
- package/.yarn-cache/eslint-8.56.0.tgz +0 -0
- package/.yarn-cache/eslint-config-prettier-10.0.1.tgz +0 -0
- package/.yarn-cache/eslint-import-resolver-node-0.3.9.tgz +0 -0
- package/.yarn-cache/eslint-module-utils-2.12.0.tgz +0 -0
- package/.yarn-cache/eslint-plugin-import-2.31.0.tgz +0 -0
- package/.yarn-cache/eslint-plugin-prettier-5.2.3.tgz +0 -0
- package/.yarn-cache/eslint-scope-7.2.2.tgz +0 -0
- package/.yarn-cache/eslint-visitor-keys-3.4.3.tgz +0 -0
- package/.yarn-cache/eslint-visitor-keys-4.2.0.tgz +0 -0
- package/.yarn-cache/espree-9.6.1.tgz +0 -0
- package/.yarn-cache/esquery-1.6.0.tgz +0 -0
- package/.yarn-cache/esrecurse-4.3.0.tgz +0 -0
- package/.yarn-cache/estraverse-5.3.0.tgz +0 -0
- package/.yarn-cache/estree-walker-3.0.3.tgz +0 -0
- package/.yarn-cache/esutils-2.0.3.tgz +0 -0
- package/.yarn-cache/expect-type-1.1.0.tgz +0 -0
- package/.yarn-cache/fast-deep-equal-3.1.3.tgz +0 -0
- package/.yarn-cache/fast-diff-1.3.0.tgz +0 -0
- package/.yarn-cache/fast-glob-3.3.3.tgz +0 -0
- package/.yarn-cache/fast-json-stable-stringify-2.1.0.tgz +0 -0
- package/.yarn-cache/fast-levenshtein-2.0.6.tgz +0 -0
- package/.yarn-cache/fastq-1.19.0.tgz +0 -0
- package/.yarn-cache/file-entry-cache-6.0.1.tgz +0 -0
- package/.yarn-cache/fill-range-7.1.1.tgz +0 -0
- package/.yarn-cache/find-up-5.0.0.tgz +0 -0
- package/.yarn-cache/flat-cache-3.2.0.tgz +0 -0
- package/.yarn-cache/flatted-3.3.2.tgz +0 -0
- package/.yarn-cache/for-each-0.3.4.tgz +0 -0
- package/.yarn-cache/foreground-child-3.3.0.tgz +0 -0
- package/.yarn-cache/form-data-4.0.1.tgz +0 -0
- package/.yarn-cache/fs.realpath-1.0.0.tgz +0 -0
- package/.yarn-cache/fsevents-2.3.3.tgz +0 -0
- package/.yarn-cache/function-bind-1.1.2.tgz +0 -0
- package/.yarn-cache/function.prototype.name-1.1.8.tgz +0 -0
- package/.yarn-cache/functions-have-names-1.2.3.tgz +0 -0
- package/.yarn-cache/gensync-1.0.0-beta.2.tgz +0 -0
- package/.yarn-cache/get-intrinsic-1.2.7.tgz +0 -0
- package/.yarn-cache/get-proto-1.0.1.tgz +0 -0
- package/.yarn-cache/get-symbol-description-1.1.0.tgz +0 -0
- package/.yarn-cache/glob-10.4.5.tgz +0 -0
- package/.yarn-cache/glob-11.0.1.tgz +0 -0
- package/.yarn-cache/glob-7.2.3.tgz +0 -0
- package/.yarn-cache/glob-parent-5.1.2.tgz +0 -0
- package/.yarn-cache/glob-parent-6.0.2.tgz +0 -0
- package/.yarn-cache/globals-11.12.0.tgz +0 -0
- package/.yarn-cache/globals-13.24.0.tgz +0 -0
- package/.yarn-cache/globalthis-1.0.4.tgz +0 -0
- package/.yarn-cache/globrex-0.1.2.tgz +0 -0
- package/.yarn-cache/gopd-1.2.0.tgz +0 -0
- package/.yarn-cache/graphemer-1.4.0.tgz +0 -0
- package/.yarn-cache/has-bigints-1.1.0.tgz +0 -0
- package/.yarn-cache/has-flag-4.0.0.tgz +0 -0
- package/.yarn-cache/has-property-descriptors-1.0.2.tgz +0 -0
- package/.yarn-cache/has-proto-1.2.0.tgz +0 -0
- package/.yarn-cache/has-symbols-1.1.0.tgz +0 -0
- package/.yarn-cache/has-tostringtag-1.0.2.tgz +0 -0
- package/.yarn-cache/hasown-2.0.2.tgz +0 -0
- package/.yarn-cache/html-encoding-sniffer-4.0.0.tgz +0 -0
- package/.yarn-cache/html-escaper-2.0.2.tgz +0 -0
- package/.yarn-cache/http-proxy-agent-7.0.2.tgz +0 -0
- package/.yarn-cache/https-proxy-agent-7.0.6.tgz +0 -0
- package/.yarn-cache/iconv-lite-0.6.3.tgz +0 -0
- package/.yarn-cache/ignore-5.3.2.tgz +0 -0
- package/.yarn-cache/import-fresh-3.3.1.tgz +0 -0
- package/.yarn-cache/imurmurhash-0.1.4.tgz +0 -0
- package/.yarn-cache/inflight-1.0.6.tgz +0 -0
- package/.yarn-cache/inherits-2.0.4.tgz +0 -0
- package/.yarn-cache/internal-slot-1.1.0.tgz +0 -0
- package/.yarn-cache/is-array-buffer-3.0.5.tgz +0 -0
- package/.yarn-cache/is-async-function-2.1.1.tgz +0 -0
- package/.yarn-cache/is-bigint-1.1.0.tgz +0 -0
- package/.yarn-cache/is-boolean-object-1.2.1.tgz +0 -0
- package/.yarn-cache/is-callable-1.2.7.tgz +0 -0
- package/.yarn-cache/is-core-module-2.16.1.tgz +0 -0
- package/.yarn-cache/is-data-view-1.0.2.tgz +0 -0
- package/.yarn-cache/is-date-object-1.1.0.tgz +0 -0
- package/.yarn-cache/is-extglob-2.1.1.tgz +0 -0
- package/.yarn-cache/is-finalizationregistry-1.1.1.tgz +0 -0
- package/.yarn-cache/is-fullwidth-code-point-3.0.0.tgz +0 -0
- package/.yarn-cache/is-generator-function-1.1.0.tgz +0 -0
- package/.yarn-cache/is-glob-4.0.3.tgz +0 -0
- package/.yarn-cache/is-map-2.0.3.tgz +0 -0
- package/.yarn-cache/is-number-7.0.0.tgz +0 -0
- package/.yarn-cache/is-number-object-1.1.1.tgz +0 -0
- package/.yarn-cache/is-path-inside-3.0.3.tgz +0 -0
- package/.yarn-cache/is-potential-custom-element-name-1.0.1.tgz +0 -0
- package/.yarn-cache/is-regex-1.2.1.tgz +0 -0
- package/.yarn-cache/is-set-2.0.3.tgz +0 -0
- package/.yarn-cache/is-shared-array-buffer-1.0.4.tgz +0 -0
- package/.yarn-cache/is-string-1.1.1.tgz +0 -0
- package/.yarn-cache/is-symbol-1.1.1.tgz +0 -0
- package/.yarn-cache/is-typed-array-1.1.15.tgz +0 -0
- package/.yarn-cache/is-weakmap-2.0.2.tgz +0 -0
- package/.yarn-cache/is-weakref-1.1.0.tgz +0 -0
- package/.yarn-cache/is-weakset-2.0.4.tgz +0 -0
- package/.yarn-cache/isarray-2.0.5.tgz +0 -0
- package/.yarn-cache/isexe-2.0.0.tgz +0 -0
- package/.yarn-cache/istanbul-lib-coverage-3.2.2.tgz +0 -0
- package/.yarn-cache/istanbul-lib-report-3.0.1.tgz +0 -0
- package/.yarn-cache/istanbul-lib-source-maps-5.0.6.tgz +0 -0
- package/.yarn-cache/istanbul-reports-3.1.7.tgz +0 -0
- package/.yarn-cache/jackspeak-3.4.3.tgz +0 -0
- package/.yarn-cache/jackspeak-4.0.2.tgz +0 -0
- package/.yarn-cache/js-tokens-4.0.0.tgz +0 -0
- package/.yarn-cache/js-yaml-4.1.0.tgz +0 -0
- package/.yarn-cache/jsdom-26.0.0.tgz +0 -0
- package/.yarn-cache/jsesc-3.1.0.tgz +0 -0
- package/.yarn-cache/json-buffer-3.0.1.tgz +0 -0
- package/.yarn-cache/json-schema-traverse-0.4.1.tgz +0 -0
- package/.yarn-cache/json-stable-stringify-without-jsonify-1.0.1.tgz +0 -0
- package/.yarn-cache/json5-1.0.2.tgz +0 -0
- package/.yarn-cache/json5-2.2.3.tgz +0 -0
- package/.yarn-cache/keyv-4.5.4.tgz +0 -0
- package/.yarn-cache/levn-0.4.1.tgz +0 -0
- package/.yarn-cache/linkify-it-5.0.0.tgz +0 -0
- package/.yarn-cache/locate-path-6.0.0.tgz +0 -0
- package/.yarn-cache/lodash.merge-4.6.2.tgz +0 -0
- package/.yarn-cache/loupe-3.1.3.tgz +0 -0
- package/.yarn-cache/lru-cache-10.4.3.tgz +0 -0
- package/.yarn-cache/lru-cache-11.0.2.tgz +0 -0
- package/.yarn-cache/lru-cache-5.1.1.tgz +0 -0
- package/.yarn-cache/lunr-2.3.9.tgz +0 -0
- package/.yarn-cache/magic-string-0.30.17.tgz +0 -0
- package/.yarn-cache/magicast-0.3.5.tgz +0 -0
- package/.yarn-cache/make-dir-4.0.0.tgz +0 -0
- package/.yarn-cache/markdown-it-14.1.0.tgz +0 -0
- package/.yarn-cache/math-intrinsics-1.1.0.tgz +0 -0
- package/.yarn-cache/mdurl-2.0.0.tgz +0 -0
- package/.yarn-cache/merge2-1.4.1.tgz +0 -0
- package/.yarn-cache/micromatch-4.0.8.tgz +0 -0
- package/.yarn-cache/mime-db-1.52.0.tgz +0 -0
- package/.yarn-cache/mime-types-2.1.35.tgz +0 -0
- package/.yarn-cache/minimatch-10.0.1.tgz +0 -0
- package/.yarn-cache/minimatch-3.1.2.tgz +0 -0
- package/.yarn-cache/minimatch-9.0.5.tgz +0 -0
- package/.yarn-cache/minimist-1.2.8.tgz +0 -0
- package/.yarn-cache/minipass-7.1.2.tgz +0 -0
- package/.yarn-cache/ms-2.1.3.tgz +0 -0
- package/.yarn-cache/nanoid-3.3.8.tgz +0 -0
- package/.yarn-cache/natural-compare-1.4.0.tgz +0 -0
- package/.yarn-cache/node-releases-2.0.19.tgz +0 -0
- package/.yarn-cache/nwsapi-2.2.16.tgz +0 -0
- package/.yarn-cache/object-inspect-1.13.3.tgz +0 -0
- package/.yarn-cache/object-keys-1.1.1.tgz +0 -0
- package/.yarn-cache/object.assign-4.1.7.tgz +0 -0
- package/.yarn-cache/object.fromentries-2.0.8.tgz +0 -0
- package/.yarn-cache/object.groupby-1.0.3.tgz +0 -0
- package/.yarn-cache/object.values-1.2.1.tgz +0 -0
- package/.yarn-cache/once-1.4.0.tgz +0 -0
- package/.yarn-cache/optionator-0.9.4.tgz +0 -0
- package/.yarn-cache/own-keys-1.0.1.tgz +0 -0
- package/.yarn-cache/p-limit-3.1.0.tgz +0 -0
- package/.yarn-cache/p-locate-5.0.0.tgz +0 -0
- package/.yarn-cache/parent-module-1.0.1.tgz +0 -0
- package/.yarn-cache/parse5-7.2.1.tgz +0 -0
- package/.yarn-cache/path-exists-4.0.0.tgz +0 -0
- package/.yarn-cache/path-is-absolute-1.0.1.tgz +0 -0
- package/.yarn-cache/path-key-3.1.1.tgz +0 -0
- package/.yarn-cache/path-parse-1.0.7.tgz +0 -0
- package/.yarn-cache/path-scurry-1.11.1.tgz +0 -0
- package/.yarn-cache/path-scurry-2.0.0.tgz +0 -0
- package/.yarn-cache/pathe-2.0.2.tgz +0 -0
- package/.yarn-cache/pathval-2.0.0.tgz +0 -0
- package/.yarn-cache/picocolors-1.1.1.tgz +0 -0
- package/.yarn-cache/picomatch-2.3.1.tgz +0 -0
- package/.yarn-cache/possible-typed-array-names-1.0.0.tgz +0 -0
- package/.yarn-cache/postcss-8.5.1.tgz +0 -0
- package/.yarn-cache/prelude-ls-1.2.1.tgz +0 -0
- package/.yarn-cache/prettier-3.4.2.tgz +0 -0
- package/.yarn-cache/prettier-linter-helpers-1.0.0.tgz +0 -0
- package/.yarn-cache/punycode-2.3.1.tgz +0 -0
- package/.yarn-cache/punycode.js-2.3.1.tgz +0 -0
- package/.yarn-cache/queue-microtask-1.2.3.tgz +0 -0
- package/.yarn-cache/react-refresh-0.14.2.tgz +0 -0
- package/.yarn-cache/reflect.getprototypeof-1.0.10.tgz +0 -0
- package/.yarn-cache/regexp.prototype.flags-1.5.4.tgz +0 -0
- package/.yarn-cache/resolve-1.22.10.tgz +0 -0
- package/.yarn-cache/resolve-from-4.0.0.tgz +0 -0
- package/.yarn-cache/reusify-1.0.4.tgz +0 -0
- package/.yarn-cache/rimraf-3.0.2.tgz +0 -0
- package/.yarn-cache/rimraf-6.0.1.tgz +0 -0
- package/.yarn-cache/rollup-4.34.1.tgz +0 -0
- package/.yarn-cache/rrweb-cssom-0.8.0.tgz +0 -0
- package/.yarn-cache/run-parallel-1.2.0.tgz +0 -0
- package/.yarn-cache/safe-array-concat-1.1.3.tgz +0 -0
- package/.yarn-cache/safe-push-apply-1.0.0.tgz +0 -0
- package/.yarn-cache/safe-regex-test-1.1.0.tgz +0 -0
- package/.yarn-cache/safer-buffer-2.1.2.tgz +0 -0
- package/.yarn-cache/saxes-6.0.0.tgz +0 -0
- package/.yarn-cache/semver-6.3.1.tgz +0 -0
- package/.yarn-cache/semver-7.7.0.tgz +0 -0
- package/.yarn-cache/set-function-length-1.2.2.tgz +0 -0
- package/.yarn-cache/set-function-name-2.0.2.tgz +0 -0
- package/.yarn-cache/set-proto-1.0.0.tgz +0 -0
- package/.yarn-cache/shebang-command-2.0.0.tgz +0 -0
- package/.yarn-cache/shebang-regex-3.0.0.tgz +0 -0
- package/.yarn-cache/side-channel-1.1.0.tgz +0 -0
- package/.yarn-cache/side-channel-list-1.0.0.tgz +0 -0
- package/.yarn-cache/side-channel-map-1.0.1.tgz +0 -0
- package/.yarn-cache/side-channel-weakmap-1.0.2.tgz +0 -0
- package/.yarn-cache/siginfo-2.0.0.tgz +0 -0
- package/.yarn-cache/signal-exit-4.1.0.tgz +0 -0
- package/.yarn-cache/source-map-js-1.2.1.tgz +0 -0
- package/.yarn-cache/stackback-0.0.2.tgz +0 -0
- package/.yarn-cache/std-env-3.8.0.tgz +0 -0
- package/.yarn-cache/string-width-4.2.3.tgz +0 -0
- package/.yarn-cache/string-width-5.1.2.tgz +0 -0
- package/.yarn-cache/string.prototype.trim-1.2.10.tgz +0 -0
- package/.yarn-cache/string.prototype.trimend-1.0.9.tgz +0 -0
- package/.yarn-cache/string.prototype.trimstart-1.0.8.tgz +0 -0
- package/.yarn-cache/strip-ansi-6.0.1.tgz +0 -0
- package/.yarn-cache/strip-ansi-7.1.0.tgz +0 -0
- package/.yarn-cache/strip-bom-3.0.0.tgz +0 -0
- package/.yarn-cache/strip-json-comments-3.1.1.tgz +0 -0
- package/.yarn-cache/supports-color-7.2.0.tgz +0 -0
- package/.yarn-cache/supports-preserve-symlinks-flag-1.0.0.tgz +0 -0
- package/.yarn-cache/symbol-tree-3.2.4.tgz +0 -0
- package/.yarn-cache/synckit-0.9.2.tgz +0 -0
- package/.yarn-cache/test-exclude-7.0.1.tgz +0 -0
- package/.yarn-cache/text-table-0.2.0.tgz +0 -0
- package/.yarn-cache/tinybench-2.9.0.tgz +0 -0
- package/.yarn-cache/tinyexec-0.3.2.tgz +0 -0
- package/.yarn-cache/tinypool-1.0.2.tgz +0 -0
- package/.yarn-cache/tinyrainbow-2.0.0.tgz +0 -0
- package/.yarn-cache/tinyspy-3.0.2.tgz +0 -0
- package/.yarn-cache/tldts-6.1.76.tgz +0 -0
- package/.yarn-cache/tldts-core-6.1.76.tgz +0 -0
- package/.yarn-cache/to-regex-range-5.0.1.tgz +0 -0
- package/.yarn-cache/tough-cookie-5.1.0.tgz +0 -0
- package/.yarn-cache/tr46-5.0.0.tgz +0 -0
- package/.yarn-cache/ts-api-utils-2.0.1.tgz +0 -0
- package/.yarn-cache/tsconfck-3.1.4.tgz +0 -0
- package/.yarn-cache/tsconfig-paths-3.15.0.tgz +0 -0
- package/.yarn-cache/tslib-2.8.1.tgz +0 -0
- package/.yarn-cache/type-check-0.4.0.tgz +0 -0
- package/.yarn-cache/type-fest-0.20.2.tgz +0 -0
- package/.yarn-cache/typed-array-buffer-1.0.3.tgz +0 -0
- package/.yarn-cache/typed-array-byte-length-1.0.3.tgz +0 -0
- package/.yarn-cache/typed-array-byte-offset-1.0.4.tgz +0 -0
- package/.yarn-cache/typed-array-length-1.0.7.tgz +0 -0
- package/.yarn-cache/typedoc-0.27.6.tgz +0 -0
- package/.yarn-cache/typescript-5.7.3.tgz +0 -0
- package/.yarn-cache/uc.micro-2.1.0.tgz +0 -0
- package/.yarn-cache/unbox-primitive-1.1.0.tgz +0 -0
- package/.yarn-cache/update-browserslist-db-1.1.2.tgz +0 -0
- package/.yarn-cache/uri-js-4.4.1.tgz +0 -0
- package/.yarn-cache/vite-6.0.11.tgz +0 -0
- package/.yarn-cache/vite-node-3.0.5.tgz +0 -0
- package/.yarn-cache/vite-tsconfig-paths-5.1.4.tgz +0 -0
- package/.yarn-cache/vitest-3.0.5.tgz +0 -0
- package/.yarn-cache/w3c-xmlserializer-5.0.0.tgz +0 -0
- package/.yarn-cache/webidl-conversions-7.0.0.tgz +0 -0
- package/.yarn-cache/whatwg-encoding-3.1.1.tgz +0 -0
- package/.yarn-cache/whatwg-mimetype-4.0.0.tgz +0 -0
- package/.yarn-cache/whatwg-url-14.1.0.tgz +0 -0
- package/.yarn-cache/which-2.0.2.tgz +0 -0
- package/.yarn-cache/which-boxed-primitive-1.1.1.tgz +0 -0
- package/.yarn-cache/which-builtin-type-1.2.1.tgz +0 -0
- package/.yarn-cache/which-collection-1.0.2.tgz +0 -0
- package/.yarn-cache/which-typed-array-1.1.18.tgz +0 -0
- package/.yarn-cache/why-is-node-running-2.3.0.tgz +0 -0
- package/.yarn-cache/word-wrap-1.2.5.tgz +0 -0
- package/.yarn-cache/wrap-ansi-7.0.0.tgz +0 -0
- package/.yarn-cache/wrap-ansi-8.1.0.tgz +0 -0
- package/.yarn-cache/wrappy-1.0.2.tgz +0 -0
- package/.yarn-cache/ws-8.18.0.tgz +0 -0
- package/.yarn-cache/xml-name-validator-5.0.0.tgz +0 -0
- package/.yarn-cache/xmlchars-2.2.0.tgz +0 -0
- package/.yarn-cache/yallist-3.1.1.tgz +0 -0
- package/.yarn-cache/yaml-2.7.0.tgz +0 -0
- package/.yarn-cache/yocto-queue-0.1.0.tgz +0 -0
- package/.yarnrc +2 -0
- package/.yarnrc.yml +2 -0
- package/README.md +53 -0
- package/package.json +35 -0
- package/src/logger/index.ts +0 -0
- package/src/microfrontends/check-global-property/__tests__/check-global-property.test.ts +45 -0
- package/src/microfrontends/check-global-property/check-global-property.ts +19 -0
- package/src/microfrontends/check-global-property/index.ts +1 -0
- package/src/microfrontends/index.ts +1 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +111 -0
- package/typedoc.json +6 -0
- package/vitest.config.mjs +28 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/.yarnrc
ADDED
package/.yarnrc.yml
ADDED
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';
|
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,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
|
+
});
|