Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dcc176f61a
|
||
|
|
ff07b85241
|
||
|
|
15298ef68f
|
||
|
|
68a0bd8025
|
||
|
|
f76c615286
|
||
|
|
c5a92339ec
|
||
|
|
7a39d520dd
|
||
|
|
e4d9075ebe
|
||
|
|
b8286098ff
|
||
|
|
27a16018f3
|
||
|
|
5c773895cb
|
||
|
|
12c14e8eb5
|
||
|
|
8c7e9aa5e0
|
||
|
|
cdb33bd6f5
|
||
|
|
708eb1fd3c
|
No files matched your search
+1
-1
@@ -4,5 +4,5 @@
|
||||
"quoteProps": "consistent",
|
||||
"sortImports": true,
|
||||
"sortPackageJson": false,
|
||||
"ignorePatterns": [".docker", ".yarn", "html"]
|
||||
"ignorePatterns": [".vscode", ".yarn"]
|
||||
}
|
||||
+1
-27
@@ -61,38 +61,12 @@
|
||||
"unicorn/filename-case": ["warn", { "cases": { "kebabCase": true, "pascalCase": true } }],
|
||||
"unicorn/no-empty-file": "warn",
|
||||
"unicorn/no-nested-ternary": "off",
|
||||
"unicorn/prefer-ternary": "off",
|
||||
"unicorn/no-useless-switch-case": "off",
|
||||
"unicorn/prefer-global-this": "off",
|
||||
"vue/define-props-destructuring": "off",
|
||||
"vue/max-props": "off"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["build-scripts/*.js"],
|
||||
"rules": {
|
||||
"eslint/no-console": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["src/scripts/mocks/**/*.js"],
|
||||
"rules": {
|
||||
"eslint/no-console": "off",
|
||||
"unicorn/prefer-ternary": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["src/scripts/blocks/**/*.js"],
|
||||
"rules": {
|
||||
"unicorn/prefer-top-level-await": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["src/scripts/composables/*.js"],
|
||||
"rules": {
|
||||
"unicorn/filename-case": ["warn", { "cases": { "camelCase": true } }]
|
||||
}
|
||||
}
|
||||
],
|
||||
"ignorePatterns": [".yarn"],
|
||||
"options": {
|
||||
"maxWarnings": 10
|
||||
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"arcanis.vscode-zipfs",
|
||||
"oxc.oxc-vscode"
|
||||
]
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"editor.defaultFormatter": "oxc.oxc-vscode",
|
||||
"editor.formatOnSave": true,
|
||||
"search.exclude": {
|
||||
"**/.yarn": true,
|
||||
"**/.pnp.*": true
|
||||
},
|
||||
"oxc.path.oxfmt": ".yarn/sdks/oxfmt/bin/oxfmt",
|
||||
"oxc.path.oxlint": ".yarn/sdks/oxlint/bin/oxlint"
|
||||
}
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
# This file is automatically generated by @yarnpkg/sdks.
|
||||
# Manual changes might be lost!
|
||||
|
||||
integrations:
|
||||
- vscode
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "oxfmt",
|
||||
"version": "0.55.0-sdk",
|
||||
"version": "0.70.0-sdk",
|
||||
"main": "dist/index.js",
|
||||
"type": "commonjs",
|
||||
"bin": {
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "oxlint",
|
||||
"version": "1.70.0-sdk",
|
||||
"version": "1.85.0-sdk",
|
||||
"main": "dist/index.js",
|
||||
"type": "commonjs",
|
||||
"bin": {
|
||||
|
||||
@@ -21,7 +21,7 @@ yarn upgrade-interactive
|
||||
|
||||
yarn dedupe
|
||||
|
||||
yarn dlx @yarnpkg/sdks base
|
||||
yarn dlx @yarnpkg/sdks
|
||||
|
||||
yarn install
|
||||
```
|
||||
+4
-4
@@ -10,9 +10,9 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"husky": "^9.1.7",
|
||||
"lerna": "^10.0.0",
|
||||
"lint-staged": "^17.3.0",
|
||||
"oxfmt": "^0.63.0",
|
||||
"oxlint": "^1.78.0"
|
||||
"lerna": "^10.0.1",
|
||||
"lint-staged": "^17.5.1",
|
||||
"oxfmt": "^0.70.0",
|
||||
"oxlint": "^1.85.0"
|
||||
}
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
# babel-plugin-nunjucks
|
||||
|
||||
Плагин для [babel-loader](https://github.com/babel/babel-loader), позволяющий использовать шаблонизатор [Nunjucks](https://mozilla.github.io/nunjucks/) внутри JS-файлов.
|
||||
|
||||
## Установка
|
||||
|
||||
```bash
|
||||
yarn add -D @advdominion/babel-plugin-nunjucks
|
||||
```
|
||||
|
||||
## Использование
|
||||
|
||||
Используются [Tagged templates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates) с тегом `njk`:
|
||||
|
||||
```js
|
||||
njk`
|
||||
{% from "./item.njk" import item as item %}
|
||||
|
||||
<div class="items">
|
||||
{% for n in range(0, 10) %}
|
||||
{{item()}}
|
||||
{% endfor %}
|
||||
</div>
|
||||
`;
|
||||
```
|
||||
|
||||
Пример конфигурации Webpack:
|
||||
|
||||
```js
|
||||
[
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: [/mocks\.js$/],
|
||||
use: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
cacheDirectory: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
test: /mocks\.js$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
compact: false,
|
||||
plugins: [
|
||||
[
|
||||
'@advdominion/babel-plugin-nunjucks',
|
||||
{
|
||||
templatesFolder: 'src/templates/',
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
```
|
||||
|
||||
## Опции
|
||||
|
||||
- `templatesFolder` - строка, обязательный параметр. Путь до папки с файлами шаблонов
|
||||
- `globals` - массив, необязательный параметр. Глобальные переменные для Nunjucks (например, `[{name: "message", value: "Hello, world!"}]`)
|
||||
|
||||
**Важно:** Параметр `cacheDirectory` в опциях babel-loader должен быть отключён.
|
||||
@@ -1,25 +0,0 @@
|
||||
import nunjucks from 'nunjucks';
|
||||
|
||||
const babelPluginNunjucks = ({ types: t }) => {
|
||||
return {
|
||||
pre(state) {
|
||||
const options = state.opts.plugins[0].options;
|
||||
this.njkenv = new nunjucks.Environment(new nunjucks.FileSystemLoader(options.templatesFolder));
|
||||
if (options.globals) {
|
||||
for (const { name, value } of options.globals) {
|
||||
this.njkenv.addGlobal(name, value);
|
||||
}
|
||||
}
|
||||
},
|
||||
visitor: {
|
||||
TaggedTemplateExpression(path) {
|
||||
if (path.get('tag').isIdentifier({ name: 'njk' })) {
|
||||
const render = this.njkenv.renderString(path.node.quasi.quasis[0].value.raw);
|
||||
path.replaceWith(t.stringLiteral(render));
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export default babelPluginNunjucks;
|
||||
@@ -0,0 +1,47 @@
|
||||
# @advdominion/browserslist-to-targets
|
||||
|
||||
Преобразует конфиг [browserslist](https://github.com/browserslist/browserslist) в массив target-строк, совместимый с [esbuild](https://esbuild.github.io) и [Oxc](https://oxc.rs).
|
||||
|
||||
## Зачем
|
||||
|
||||
Оба инструмента (esbuild и Oxc) понимают ограниченный набор целевых браузеров, который отличается от browserslist. Пакет приводит результат `browserslist()` к короткому esbuild-формату: `["chrome109", "ios18.5"]`, а всё, что esbuild/Oxc не поддерживает (`and_chr`, `kaios`, `samsung` и т.д.) — отбрасывает.
|
||||
|
||||
## Установка
|
||||
|
||||
```bash
|
||||
yarn add -D @advdominion/browserslist-to-targets
|
||||
```
|
||||
|
||||
## Использование
|
||||
|
||||
```js
|
||||
import browserslist from 'browserslist';
|
||||
import { browserslistToTargets } from '@advdominion/browserslist-to-targets';
|
||||
|
||||
const targets = browserslistToTargets(browserslist());
|
||||
// ["chrome109", "edge149", "firefox140", "ios18.5", "opera127", "safari26.5"]
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `browserslistToTargets(browsers): string[]`
|
||||
|
||||
- `browsers` — массив строк от `browserslist()`, например `["chrome 151", "ios_saf 26.6"]`.
|
||||
- Возвращает массив target-строк без пробела: `["chrome151", "ios26.5"]`.
|
||||
|
||||
## Правила преобразования
|
||||
|
||||
| browserslist | esbuild/Oxc | Примечание |
|
||||
| ------------------------------------------------- | --------------- | ------------------------------------------ |
|
||||
| `chrome 151` | `chrome151` | версия становится «приклеенной» к имени |
|
||||
| `ios_saf 26.6` | `ios26.5` | `ios_saf → ios`, остаётся самая старая |
|
||||
| `ios_saf 25-26.5` | `ios25` | `ios_saf → ios`, диапазон → нижняя граница |
|
||||
| `android 151` | `chrome151` | `android → chrome` |
|
||||
| `ios 26.0` | `ios26` | убирает завершающий `.0` |
|
||||
| `and_chr`, `kaios`, `samsung`, `op_mob`, `and_ff` | — отбрасывается | нет в esbuild/Oxc |
|
||||
|
||||
Для каждого браузера остаётся самая старая версия — трансформации покрывают самую консервативную цель.
|
||||
|
||||
## Лицензия
|
||||
|
||||
MIT
|
||||
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* Браузеры, поддерживаемые esbuild/Oxc.
|
||||
*
|
||||
* Зачем: browserslist как входной конфиг должен быть приведён к целевому
|
||||
* формату, который понимает минификатор/трансформер. У esbuild и Oxc
|
||||
* список целевых браузеров жёстко ограничен и отличается от browserslist.
|
||||
* Поэтому мы транслируем браузеры из browserslist в короткий esbuild-формат,
|
||||
* а всё, чего в нём нет — отбрасываем.
|
||||
*/
|
||||
const SUPPORTED_TARGETS = new Set(['es', 'chrome', 'edge', 'firefox', 'ios', 'node', 'safari', 'opera', 'ie']);
|
||||
|
||||
/**
|
||||
* Соответствие идентификаторов браузеров browserslist тем, что знает esbuild.
|
||||
*
|
||||
* Browserslist различает `ios_saf` (Safari на iOS) и `android` (Chrome на
|
||||
* Android), тогда как esbuild знает общее `ios` и `chrome`.
|
||||
*/
|
||||
const REPLACES = {
|
||||
ios_saf: 'ios',
|
||||
android: 'chrome',
|
||||
};
|
||||
|
||||
/**
|
||||
* Преобразует результат `browserslist()` в массив target-строк для esbuild/Oxc.
|
||||
*
|
||||
* Вход — массив записей вида `"chrome 109"`, `"ios_saf 18.5-18.7"`.
|
||||
* Выход — массив вида `["chrome109", "ios18.5"]`.
|
||||
*
|
||||
* Шаги:
|
||||
* 1. Режем запись на имя и версию.
|
||||
* 2. Подменяем идентификаторы (`ios_saf → ios`, `android → chrome`).
|
||||
* 3. Диапазоны версий сводим к нижней границе (`18.5-18.7 → 18.5`).
|
||||
* 4. Приводим `18.0` к `18` (убираем хвостовой `.0`).
|
||||
* 5. Отбрасываем версии, не проходящие regex (ломают esbuild), и браузеры,
|
||||
* которых нет в `SUPPORTED_TARGETS` (`and_chr`, `kaios`, `samsung` и т.д.).
|
||||
* 6. Для каждого браузера оставляем самую старую версию — esbuild применяет
|
||||
* трансформации, покрывающие самую консервативную цель.
|
||||
* 7. Собираем целевые строки без пробела: `chrome109`.
|
||||
*
|
||||
* @param {string[]} browsers - массив строк браузеров от `browserslist()`.
|
||||
* @returns {string[]} массив target-строк совместимый с esbuild/Oxc.
|
||||
*/
|
||||
export const browserslistToTargets = (browsers) => {
|
||||
const result = new Map();
|
||||
|
||||
for (const browser of browsers) {
|
||||
// Шаг 1: ['chrome', '109'].
|
||||
let [name, version] = browser.split(' ');
|
||||
// Шаг 2: подмена идентификаторов.
|
||||
name = REPLACES[name] ?? name;
|
||||
// Шаг 3: диапазон → нижняя граница.
|
||||
version = version.includes('-') ? version.slice(0, version.indexOf('-')) : version;
|
||||
// Шаг 4: `18.0` → `18`, но `18.5` не должно трогаться.
|
||||
version = version.endsWith('.0') ? version.slice(0, -2) : version;
|
||||
|
||||
// Шаг 5: валидная версия + поддерживаемый браузер.
|
||||
if (/^\d+(\.\d+)*$/.test(version) && SUPPORTED_TARGETS.has(name)) {
|
||||
// Шаг 6: самая старая версия (последняя в списке) перезатирает предыдущую.
|
||||
result.set(name, version);
|
||||
}
|
||||
}
|
||||
|
||||
// Шаг 7: собираем без пробела.
|
||||
return [...result].map(([name, version]) => `${name}${version}`);
|
||||
};
|
||||
+2
-6
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@advdominion/babel-plugin-nunjucks",
|
||||
"version": "4.0.0",
|
||||
"name": "@advdominion/browserslist-to-targets",
|
||||
"version": "1.0.1",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
@@ -10,9 +10,5 @@
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^8.0.0",
|
||||
"nunjucks": "^3.0.0"
|
||||
}
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
# lightningcss-loader
|
||||
|
||||
[Lightning CSS](https://lightningcss.dev) loader for [Webpack](https://webpack.js.org)
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { transform } from 'lightningcss';
|
||||
|
||||
return {
|
||||
...,
|
||||
rules: [
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: [
|
||||
{
|
||||
loader: '@advdominion/lightningcss-loader',
|
||||
options: {
|
||||
implementation: transform,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
### Passing options to Lightning CSS
|
||||
|
||||
```js
|
||||
import { transform } from 'lightningcss';
|
||||
|
||||
return {
|
||||
...,
|
||||
rules: [
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: [
|
||||
{
|
||||
loader: '@advdominion/lightningcss-loader',
|
||||
options: {
|
||||
implementation: transform,
|
||||
drafts: {
|
||||
customMedia: true,
|
||||
},
|
||||
minify: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
@@ -1,22 +0,0 @@
|
||||
const lightningcssLoader = function (source, sourceMap) {
|
||||
const { implementation, ...options } = this.getOptions();
|
||||
const callback = this.async();
|
||||
|
||||
if (typeof implementation !== 'function') {
|
||||
throw new TypeError(
|
||||
`[lightningcss-loader]: The "implementation" option is required and must provide "transform" function of the LightningCSS`,
|
||||
);
|
||||
}
|
||||
|
||||
const { code, map } = implementation({
|
||||
filename: this.resourcePath,
|
||||
code: Buffer.from(source),
|
||||
sourceMap: this.sourceMap,
|
||||
inputSourceMap: this.sourceMap && sourceMap ? JSON.stringify(sourceMap) : undefined,
|
||||
...options,
|
||||
});
|
||||
|
||||
callback(undefined, code.toString(), map && JSON.parse(map.toString()));
|
||||
};
|
||||
|
||||
export default lightningcssLoader;
|
||||
@@ -0,0 +1,71 @@
|
||||
# @advdominion/sass-importer
|
||||
|
||||
Кастомный импортёр для [sass-embedded](https://github.com/sass/dart-sass-embedded), который берёт резолв `@use`/`@forward`-импортов на себя и читает файлы через `node:fs`.
|
||||
|
||||
## Зачем
|
||||
|
||||
В проектах на **Yarn PnP** пакеты лежат не в `node_modules`, а внутри `.zip` по виртуальным путям:
|
||||
|
||||
```
|
||||
.yarn/__virtual__/@example-example-virtual-.../cache/@example-example-....zip/node_modules/@example/example/...
|
||||
```
|
||||
|
||||
`.zip`-путь может открыть только код, читающий файлы через `node:fs` (в нём есть PnP-хуки). А `sass-embedded` читает файлы своим отдельным кодом, `node:fs` не использует, поэтому импорты внутри пакетов не резолвятся. Этот импортёр обходит проблему: он сам превращает импорт в существующий файл (`canonicalize`) и отдаёт его содержимое через `readFileSync` (`load`).
|
||||
|
||||
Работает и в `node-modules`-проектах — там `require` без PnP-хуков, но тот же резолв остаётся корректным.
|
||||
|
||||
## Установка
|
||||
|
||||
```bash
|
||||
yarn add -D @advdominion/sass-importer
|
||||
```
|
||||
|
||||
## Использование
|
||||
|
||||
```js
|
||||
import { createRequire } from 'node:module';
|
||||
import { createImporter } from '@advdominion/sass-importer';
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const importer = createImporter(require);
|
||||
|
||||
const { css } = compiler.compileString(source, {
|
||||
importers: [importer],
|
||||
loadPaths: ['src/styles'],
|
||||
});
|
||||
```
|
||||
|
||||
Импортёр принимает `require` из `createRequire(import.meta.url)`: в PnP он несёт PnP-хуки, в `node-modules` — обычный `require`. Это позволяет резолвить и пакеты, и их внутренние относительные импорты одинаково надёжно.
|
||||
|
||||
## API
|
||||
|
||||
### `createImporter(require): Importer`
|
||||
|
||||
- `require` — функция резолва (обычно `createRequire(import.meta.url)`), используется для ветки `pkg:`.
|
||||
- Возвращает объект из двух колбэков для `sass-embedded`: `canonicalize` и `load`.
|
||||
|
||||
`canonicalize(url, ctx)` превращает импорт в канонический `file://` URL или возвращает `null` («я не знаю такой файл» — тогда Sass перебирает следующие импортёры/`loadPaths`).
|
||||
|
||||
`load(canonicalUrl)` отдаёт содержимое файла и его синтаксис (`syntax: 'scss'`). Если файла нет — бросает `Error: Stylesheet not found: <путь>`.
|
||||
|
||||
## Правила резолва
|
||||
|
||||
| Приоритет | Вариант | Пример |
|
||||
| --------- | ------------------ | --------------------------------------- |
|
||||
| 1 | Точное совпадение | `@use 'variables'` → `variables` (файл) |
|
||||
| 2 | Файл с расширением | `@use 'variables'` → `variables.scss` |
|
||||
| 3 | Каталог с `_index` | `@use './lib'` → `./lib/_index.scss` |
|
||||
| 4 | Каталог с `index` | `@use './lib'` → `./lib/index.scss` |
|
||||
|
||||
Для каталогов берутся `_index` и `index` как с `.scss`, так и с `.css`. Порядок проверок соответствует порядку перебора Sass, поэтому первая найденная запись — приоритетная.
|
||||
|
||||
## Виды импортов
|
||||
|
||||
- `pkg:@scope/pkg/path/to/file` → `require.resolve` + резолв кандидата.
|
||||
- `file:///abs/path` → кандидат по файловому пути.
|
||||
- относительные (`../../variables`) → склейка с каталогом содержащего файла (берётся из `ctx.containingUrl`), затем резолв кандидата.
|
||||
- абсолютные (`/...`) и незнакомые схемы (`http:`, `data:`) → отдаёт `null`, резолв остаётся на Sass.
|
||||
|
||||
## Лицензия
|
||||
|
||||
MIT
|
||||
@@ -0,0 +1,150 @@
|
||||
import { existsSync, readFileSync, statSync } from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
const isFile = (filePath) => existsSync(filePath) && statSync(filePath).isFile();
|
||||
const toFileUrl = (filePath) => new URL(`file://${encodeURI(path.normalize(filePath))}`);
|
||||
const EXTENSIONS = ['.scss', '.css'];
|
||||
|
||||
/*
|
||||
resolveCandidate(lookupPath) — по пути импорта находит существующий SCSS-файл
|
||||
и возвращает его file:// URL.
|
||||
|
||||
Мы сами эмулируем правила резолва Sass, потому что (см. комментарий над importer) взяли резолв на себя,
|
||||
а не отдали его Sass. Sass при обычной работе умеет подбирать: файл без расширения, файл с расширением,
|
||||
_index.scss внутри папки, index.scss внутри папки. Всё это воспроизводим здесь. Порядок проверок
|
||||
соответствует порядку, в котором Sass перебирает варианты, поэтому первая найденная запись — приоритетная.
|
||||
|
||||
Возвращает null, если ни один вариант не существует: для импортёра это сигнал «я не знаю такой файл»,
|
||||
и Sass переберёт другие импортеры/loadPaths.
|
||||
*/
|
||||
const resolveCandidate = (lookupPath) => {
|
||||
/* 1. Точное совпадение: переданный путь уже указывает на существующий файл. */
|
||||
if (isFile(lookupPath)) {
|
||||
return toFileUrl(lookupPath);
|
||||
}
|
||||
/* 2. «Файл с расширением»: path + .scss/.css. Покрывает @use 'variables' -> variables.scss. */
|
||||
for (const ext of EXTENSIONS) {
|
||||
if (isFile(lookupPath + ext)) {
|
||||
return toFileUrl(lookupPath + ext);
|
||||
}
|
||||
}
|
||||
/* 3. «Директория с partial»: <lookupPath>/_index.scss и т.п. — то, что Sass подставляет при импорте папки/фичи. */
|
||||
for (const ext of EXTENSIONS) {
|
||||
const candidate = path.join(lookupPath, `_index${ext}`);
|
||||
if (isFile(candidate)) {
|
||||
return toFileUrl(candidate);
|
||||
}
|
||||
}
|
||||
/* 4. «Директория с index»: <lookupPath>/index.scss — обычный fallback, если _index нет. */
|
||||
for (const ext of EXTENSIONS) {
|
||||
const candidate = path.join(lookupPath, `index${ext}`);
|
||||
if (isFile(candidate)) {
|
||||
return toFileUrl(candidate);
|
||||
}
|
||||
}
|
||||
return null; // oxlint-disable-line unicorn/no-null
|
||||
};
|
||||
|
||||
/*
|
||||
Импортер для sass-embedded.
|
||||
|
||||
Проект собирается через Yarn PnP, поэтому пакеты лежат не в node_modules,
|
||||
а внутри .zip по виртуальным путям:
|
||||
.yarn/__virtual__/@example-example-virtual-.../cache/@example-example-....zip/node_modules/@example/example/...
|
||||
.zip-путь может открыть только код, читающий файлы через node:fs (в нём есть PnP-хуки).
|
||||
А sass-embedded читает файлы своим отдельным кодом, node:fs не использует, поэтому мы
|
||||
резолв импортов берём на себя через readFileSync. `require` передаётся извне: в PnP это
|
||||
createRequire(import.meta.url) с PnP-хуками, в node-modules — обычный require.
|
||||
|
||||
Сюда попадают импорты трёх видов: пути с префиксом pkg:, file:// и относительные
|
||||
(в том числе вложенные @use '../../variables' внутри пакета). Все они проходят через
|
||||
resolveCandidate, а содержимое читается через readFileSync, поэтому и пакеты, и их внутренние
|
||||
относительные импорты открываются одинаково надёжно.
|
||||
*/
|
||||
export const createImporter = (require) => ({
|
||||
/*
|
||||
canonicalize(url, ctx) — Sass спрашивает «во что превратить этот импорт, чтобы я мог его прочитать?».
|
||||
На вход приходит строка url (в оригинальном виде из @use/@forward) и контекст ctx с containingUrl —
|
||||
файлом, из которого сделан импорт. Возвращаем канонический file:// URL или null («не знаю»).
|
||||
*/
|
||||
canonicalize(url, ctx) {
|
||||
/*
|
||||
Ветка 1: импорт пакета вида «pkg:@scope/pkg/path/to/file».
|
||||
url.slice(4) убирает префикс «pkg:», остаётся «@example/example/...». require.resolve превращает
|
||||
это имя в абсолютный путь внутри пакета (благодаря PnP-хукам). Затем resolveCandidate
|
||||
подбирает реальный SCSS-файл и возвращает file:// URL.
|
||||
*/
|
||||
if (url.startsWith('pkg:')) {
|
||||
try {
|
||||
return resolveCandidate(require.resolve(url.slice(4)));
|
||||
} catch {
|
||||
/*
|
||||
Пакет не резолвится (нет в зависимостях) — отдаём null, пусть Sass пробует дальше.
|
||||
*/
|
||||
return null; // oxlint-disable-line unicorn/no-null
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Ветка 2: Sass уже сам превратил что-то в file:// и спрашивает нас «подтверди/уточни путь».
|
||||
Извлекаем файловый путь через .pathname (декодируем процент-эскейпы) и подбираем кандидата.
|
||||
*/
|
||||
if (url.startsWith('file://')) {
|
||||
return resolveCandidate(decodeURI(new URL(url).pathname));
|
||||
}
|
||||
|
||||
/*
|
||||
Ветка 3: абсолютный путь («/...») или URI с незнакомой схемой («http:», «data:» и т.п.).
|
||||
Здесь мы в резолве не участвуем — отдаём null и позволяем Sass/loadPaths обработать самим.
|
||||
*/
|
||||
if (url.includes(':') || url.startsWith('/')) {
|
||||
return null; // oxlint-disable-line unicorn/no-null
|
||||
}
|
||||
|
||||
/*
|
||||
Ветка 4: относительный импорт («../../variables», «../link»).
|
||||
Это именно тот случай, который ломает сборку в PnP: путь ведёт внутрь .zip.
|
||||
Чтобы его открыть, нужен базовый файл, из которого сделан импорт, — его даёт ctx.containingUrl.
|
||||
Склеиваем относительный путь с каталогом содержащего файла через path.resolve и резолвим через
|
||||
resolveCandidate.
|
||||
*/
|
||||
const containingUrl = ctx?.containingUrl;
|
||||
if (containingUrl) {
|
||||
const abs = path.resolve(path.dirname(decodeURI(containingUrl.pathname)), url);
|
||||
return resolveCandidate(abs);
|
||||
}
|
||||
|
||||
/*
|
||||
Если контекста нет (чего в норме не бывает) — «не знаю», идём к следующему импортеру/loadPaths.
|
||||
*/
|
||||
return null; // oxlint-disable-line unicorn/no-null
|
||||
},
|
||||
|
||||
/*
|
||||
load(canonicalUrl) — Sass просит содержимое файла по каноническому URL, который мы вернули в canonicalize.
|
||||
Возвращаем текст файла и его синтаксис, чтобы Sass не гадал.
|
||||
*/
|
||||
load(canonicalUrl) {
|
||||
/*
|
||||
file:// URL извлекаем как путь: .pathname уже декодирован, но для надёжности декодируем явно.
|
||||
*/
|
||||
const filePath = decodeURI(canonicalUrl.pathname);
|
||||
if (!isFile(filePath)) {
|
||||
/*
|
||||
Файла нет или это каталог — кидаем понятную ошибку с путём, чтобы в логе было видно, чего не хватает.
|
||||
*/
|
||||
throw new Error(`Stylesheet not found: ${filePath}`);
|
||||
}
|
||||
return {
|
||||
/*
|
||||
readFileSync — синхронно читаем. Для PnP важен именно node:fs (см. док над importer):
|
||||
только читаемый через него файл открывается внутри .zip.
|
||||
*/
|
||||
contents: readFileSync(filePath, 'utf8'),
|
||||
/*
|
||||
Говорим Sass, что это SCSS-файл (иначе он пытается угадать по расширению, что для .zip-пути ненадёжно).
|
||||
*/
|
||||
syntax: 'scss',
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@advdominion/lightningcss-loader",
|
||||
"version": "1.0.2",
|
||||
"name": "@advdominion/sass-importer",
|
||||
"version": "1.0.1",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable unicorn/no-null */
|
||||
|
||||
export default {
|
||||
extends: ['stylelint-config-standard-scss'],
|
||||
extends: ['stylelint-config-recommended-scss'],
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.vue'],
|
||||
@@ -13,6 +13,7 @@ export default {
|
||||
'block-no-empty': null,
|
||||
'no-invalid-double-slash-comments': null,
|
||||
'no-invalid-position-declaration': [true, { ignoreAtRules: ['media'] }],
|
||||
'length-zero-no-unit': true,
|
||||
'property-disallowed-list': [
|
||||
['animation', 'background', 'border', 'flex', 'font', 'grid', 'margin', 'padding', 'transition'],
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@advdominion/stylelint-config",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
|
||||
@@ -1,3 +1,22 @@
|
||||
## v7.1.1
|
||||
|
||||
- Позиция при прокрутке обновляется без принудительного reflow: все измерения геометрии выполняются до записи стилей
|
||||
- Массив middleware собирается один раз и переиспользуется между кадрами (сбрасывается при смене `offset`, `shiftPadding`, `arrow`)
|
||||
- Классы и стили, зависящие от стороны размещения, применяются только при её смене
|
||||
- `@floating-ui/dom` подгружается одним динамическим импортом вместо двух
|
||||
- В пример базовых стилей добавлен `will-change: transform` — выносит подсказку на отдельный слой и убирает рывки при прокрутке
|
||||
|
||||
## v7.1.0
|
||||
|
||||
- Опция `arrow` теперь принимает объект: `active`, `centered`, `padding` (булево значение по-прежнему поддерживается)
|
||||
- Добавлено поле `arrow.centered` — фиксирует стрелку по центру всплывающей подсказки, чтобы она не смещалась при прокрутке
|
||||
- Автоматически рассчитываем `padding` стрелки, чтобы её повёрнутые углы не выходили за границы всплывающей подсказки
|
||||
- `arrow` теперь корректно применяется через `updateOptions` — и до первого показа, и с уже показанной подсказкой (включение/выключение стрелки на лету)
|
||||
- Исправлено: `updateOptions({ interactive })` больше не снимает обработчик скрытия по клику вне подсказки (раньше он попадал в общий список слушателей, который очищался при обновлении `interactive`)
|
||||
- Устранены гонки при вызове `show`/`hide` подряд: устаревшие асинхронные операции отменяются
|
||||
- `autoUpdate` теперь следит за тем же опорным элементом, что и позиционирование, поэтому при `virtualReference` подсказка продолжает обновляться при прокрутке
|
||||
- `onCreate` вызывается в самом конце инициализации — раньше внутри него ещё не были доступны `show()`/`hide()`, теперь их можно вызывать прямо в `onCreate`
|
||||
|
||||
## v7.0.1
|
||||
|
||||
- Исправление работы анимации
|
||||
@@ -9,12 +28,12 @@
|
||||
|
||||
## v6.0.0
|
||||
|
||||
- Корректная работа сообытий mouseenter/mouseleave на тач-устройствах
|
||||
- Предовтращаем лишние показы всплывающей подсказки
|
||||
- Корректная работа с событиями mouseenter/mouseleave на тач-устройствах
|
||||
- Предотвращаем лишние показы всплывающей подсказки
|
||||
|
||||
## v5.0.0
|
||||
|
||||
- Регистрируем сообытия mouseenter/mouseleave на тач-устройствах
|
||||
- Регистрируем события mouseenter/mouseleave на тач-устройствах
|
||||
|
||||
## v4.1.1
|
||||
|
||||
@@ -22,7 +41,7 @@
|
||||
|
||||
## v4.1.0
|
||||
|
||||
- Отключаем события mouseenter/mouseleave для toch-устройств
|
||||
- Отключаем события mouseenter/mouseleave для touch-устройств
|
||||
|
||||
## v4.0.0
|
||||
|
||||
@@ -47,11 +66,11 @@
|
||||
## v2.0.0
|
||||
|
||||
- К `_tooltip.$tooltip` добавлено свойство `_reference` для доступа к элементу, на котором был вызван `createTooltip`
|
||||
- Для функций `show/hide` добавлен параметр `immediately` для мнгновенного открытия/закрытия всплывающей подсказки (`_tooltip.hide({ immediately: true })`)
|
||||
- Для функций `show/hide` добавлен параметр `immediately` для мгновенного открытия/закрытия всплывающей подсказки (`_tooltip.hide({ immediately: true })`)
|
||||
- Добавлена опция `shiftPadding` для добавления отступов от краёв области видимости по осям x/y
|
||||
- Добавлена опция `animation` для кастомизации анимации при открытии/закрытии всплывающей подсказки (для этого всё внутри `.tooltip` было обёрнуто в `.tooltip__root` и анимация применяется именно к этому блоку)
|
||||
- Опция `_tooltip._options` переименована в `_tooltip.options`
|
||||
- Оптимизция кода, исправление ошибок
|
||||
- Оптимизация кода, исправление ошибок
|
||||
- Доработки по README.md
|
||||
- Доработки по .npmignore
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ createTooltip(document.querySelector('button'), 'Подсказка', {
|
||||
[{ opacity: 1 }, { opacity: 0 }],
|
||||
],
|
||||
appendTo: document.body,
|
||||
arrow: true,
|
||||
arrow: { active: true, centered: false, padding: undefined },
|
||||
delay: [0, 0],
|
||||
duration: [0, 0],
|
||||
easing: ['linear', 'linear'],
|
||||
@@ -62,6 +62,26 @@ createTooltip(document.querySelector('button'), 'Подсказка', {
|
||||
- `'all'` — всплывающая подсказка скрывается при клике по любому элементу на странице (**включая** саму всплывающую подсказку).
|
||||
- `'toggle'` — всплывающая подсказка скрывается только при клике по элементу, который её вызывает.
|
||||
|
||||
#### arrow
|
||||
|
||||
Настройка отображения и позиционирования стрелки. Поддерживает булево значение (`true`/`false`) для обратной совместимости либо объект:
|
||||
|
||||
- `active` (`true`) — показывать ли стрелку. Эквивалент `arrow: true`/`arrow: false`.
|
||||
- `centered` (`false`) — фиксировать стрелку по центру всплывающей подсказки, вместо того чтобы следовать за центром элемента, который её вызывает. Полезно, когда подсказка прижата к краю области видимости и стрелка смещается при прокрутке.
|
||||
- `padding` (`undefined`) — отступ стрелки от краёв всплывающей подсказки. По умолчанию рассчитывается автоматически исходя из размера стрелки, чтобы её повёрнутые под 45° углы не выходили за границы подсказки.
|
||||
|
||||
```js
|
||||
createTooltip(document.querySelector('button'), 'Подсказка', {
|
||||
arrow: { active: true, centered: true },
|
||||
});
|
||||
```
|
||||
|
||||
Так же настраивается через data-атрибут:
|
||||
|
||||
```html
|
||||
<button type="button" data-tooltip-arrow='{"centered":true}'>Кнопка</button>
|
||||
```
|
||||
|
||||
##### virtualReference
|
||||
|
||||
Настройка используется для кастомного позиционирования, ожидает объект с методом `getBoundingClientRect`.
|
||||
@@ -150,6 +170,7 @@ $b: '.tooltip';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: max-content;
|
||||
will-change: transform;
|
||||
z-index: 200;
|
||||
|
||||
@media (min-width: 900px) {
|
||||
|
||||
+250
-124
@@ -1,20 +1,34 @@
|
||||
const roundByDPR = (value) => {
|
||||
const dpr = window.devicePixelRatio || 1;
|
||||
return Math.round(value * dpr) / dpr;
|
||||
},
|
||||
attributeToOption = (attribute) => {
|
||||
attribute = attribute.replace('tooltip', '');
|
||||
return attribute.charAt(0).toLowerCase() + attribute.slice(1);
|
||||
};
|
||||
|
||||
const attributeToOption = (attribute) => {
|
||||
const option = attribute.replace('tooltip', '');
|
||||
return option.charAt(0).toLowerCase() + option.slice(1);
|
||||
};
|
||||
|
||||
/*
|
||||
Приводит опцию arrow к единому виду { active, centered, padding }.
|
||||
Поддерживает булево значение для обратной совместимости: arrow: true/false
|
||||
*/
|
||||
const normalizeArrow = (arrow) => {
|
||||
const defaults = { active: Boolean(arrow), centered: false, padding: undefined };
|
||||
return typeof arrow === 'object' && arrow !== null ? { ...defaults, active: true, ...arrow } : defaults;
|
||||
};
|
||||
|
||||
// Слушатель visibilitychange один на всю страницу
|
||||
let visibilityListenerRegistered = false;
|
||||
|
||||
/*
|
||||
Подсказки, оставшиеся открытыми при уходе со страницы, скрываются,
|
||||
а их отложенный показ отменяется
|
||||
*/
|
||||
const handleVisibilityChange = () => {
|
||||
if (document.hidden) {
|
||||
// Скрываем все активные всплывающие подсказки
|
||||
for (const $tooltip of document.querySelectorAll('.tooltip')) {
|
||||
const ref = $tooltip._reference;
|
||||
if (ref?._tooltip) {
|
||||
// Очищаем таймеры появления при скрытии страницы
|
||||
clearTimeout(ref._tooltip._showTimeout);
|
||||
if (ref._tooltip.isVisible) {
|
||||
ref._tooltip.hide({ immediately: true });
|
||||
@@ -22,8 +36,9 @@ const handleVisibilityChange = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
templates = {
|
||||
};
|
||||
|
||||
const templates = {
|
||||
arrow: () => `
|
||||
<div class="tooltip__arrow" style="pointer-events: none; position: absolute; transform: rotate(45deg);"></div>
|
||||
`,
|
||||
@@ -32,8 +47,9 @@ const handleVisibilityChange = () => {
|
||||
`,
|
||||
};
|
||||
|
||||
export const createTooltip = ($el, content, options) => {
|
||||
options = {
|
||||
export const createTooltip = ($el, initialContent, initialOptions) => {
|
||||
let content = initialContent;
|
||||
const options = {
|
||||
animation: [
|
||||
[{ opacity: 0 }, { opacity: 1 }],
|
||||
[{ opacity: 1 }, { opacity: 0 }],
|
||||
@@ -52,7 +68,7 @@ export const createTooltip = ($el, content, options) => {
|
||||
trigger: 'mouseenter click',
|
||||
virtualReference: undefined,
|
||||
zIndex: '',
|
||||
...options,
|
||||
...initialOptions,
|
||||
};
|
||||
|
||||
for (const [key, value] of Object.entries($el.dataset)) {
|
||||
@@ -65,9 +81,82 @@ export const createTooltip = ($el, content, options) => {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Нормализуем arrow после применения data-атрибутов,
|
||||
чтобы поддержать и объект, и булево значение
|
||||
*/
|
||||
options.arrow = normalizeArrow(options.arrow);
|
||||
|
||||
let rafId;
|
||||
const listeners = [];
|
||||
|
||||
const registerListeners = () => {
|
||||
for (const trigger of options.trigger.split(' ')) {
|
||||
switch (trigger) {
|
||||
case 'mouseenter': {
|
||||
$el.addEventListener('pointerenter', $el._tooltip.mouseEnterListener);
|
||||
listeners.push({ el: $el, event: 'pointerenter', listener: $el._tooltip.mouseEnterListener });
|
||||
|
||||
$el.addEventListener('pointerleave', $el._tooltip.mouseLeaveListener);
|
||||
listeners.push({ el: $el, event: 'pointerleave', listener: $el._tooltip.mouseLeaveListener });
|
||||
break;
|
||||
}
|
||||
case 'click': {
|
||||
$el.addEventListener('click', $el._tooltip.clickListener);
|
||||
listeners.push({ el: $el, event: 'click', listener: $el._tooltip.clickListener });
|
||||
|
||||
if (!options.interactive) {
|
||||
$el.addEventListener('pointerleave', $el._tooltip.mouseLeaveListener);
|
||||
listeners.push({ el: $el, event: 'pointerleave', listener: $el._tooltip.mouseLeaveListener });
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'focus': {
|
||||
$el.addEventListener('focus', $el._tooltip.focusListener);
|
||||
listeners.push({ el: $el, event: 'focus', listener: $el._tooltip.focusListener });
|
||||
break;
|
||||
}
|
||||
case 'blur': {
|
||||
$el.addEventListener('blur', $el._tooltip.blurListener);
|
||||
listeners.push({ el: $el, event: 'blur', listener: $el._tooltip.blurListener });
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Проигрывает анимацию появления (0) или скрытия (1) на корне подсказки
|
||||
const animateRoot = async (index, immediately) => {
|
||||
try {
|
||||
const animation = $el._tooltip.$tooltip.querySelector('.tooltip__root').animate(options.animation[index], {
|
||||
duration: immediately ? 0 : options.duration[index],
|
||||
easing: options.easing[index],
|
||||
});
|
||||
$el._tooltip._currentAnimation = animation;
|
||||
await animation.finished;
|
||||
} catch {} // eslint-disable-line no-empty
|
||||
};
|
||||
|
||||
// Добавляет стрелку, если она включена и ещё не создана
|
||||
const mountArrow = () => {
|
||||
if (options.arrow.active && !$el._tooltip.$arrow && $el._tooltip.$tooltip) {
|
||||
$el._tooltip.$tooltip.querySelector('.tooltip__root').insertAdjacentHTML('afterbegin', templates.arrow());
|
||||
$el._tooltip.$arrow = $el._tooltip.$tooltip.querySelector('.tooltip__arrow');
|
||||
// Со стрелкой набор middleware другой
|
||||
$el._tooltip._middleware = undefined;
|
||||
}
|
||||
};
|
||||
|
||||
// Удаляет стрелку из разметки
|
||||
const unmountArrow = () => {
|
||||
$el._tooltip.$arrow?.remove();
|
||||
$el._tooltip.$arrow = undefined;
|
||||
$el._tooltip._middleware = undefined;
|
||||
};
|
||||
|
||||
$el._tooltip = {
|
||||
options,
|
||||
isVisible: false,
|
||||
@@ -75,11 +164,24 @@ export const createTooltip = ($el, content, options) => {
|
||||
$container: undefined,
|
||||
$arrow: undefined,
|
||||
$interactive: undefined,
|
||||
// Кэши позиционирования
|
||||
_side: undefined,
|
||||
_middleware: undefined,
|
||||
_showTimeout: undefined,
|
||||
_hideTimeout: undefined,
|
||||
_currentAnimation: undefined,
|
||||
autoUpdateCleanup: () => {},
|
||||
updatePosition: async () => {},
|
||||
// Счётчик поколений show/hide: отменяет устаревшие асинхронные операции
|
||||
_generation: 0,
|
||||
/*
|
||||
Заглушки до первого show(): настоящие функции создаются в show().
|
||||
Нужны, чтобы вызовы из updateOptions/destroy не падали с ошибкой
|
||||
*/
|
||||
autoUpdateCleanup: () => {
|
||||
// Переопределяется в show() после первого показа
|
||||
},
|
||||
updatePosition: () => {
|
||||
// Переопределяется в show() после первого показа
|
||||
},
|
||||
|
||||
setContent(updatedContent) {
|
||||
if (updatedContent !== undefined) {
|
||||
@@ -100,17 +202,33 @@ export const createTooltip = ($el, content, options) => {
|
||||
options[name] = value;
|
||||
}
|
||||
|
||||
if (updatedOptions.arrow !== undefined && $el._tooltip.$tooltip) {
|
||||
if (options.arrow) {
|
||||
if (!$el._tooltip.$arrow) {
|
||||
$el._tooltip.$tooltip
|
||||
.querySelector('.tooltip__root')
|
||||
.insertAdjacentHTML('afterbegin', templates.arrow());
|
||||
$el._tooltip.$arrow = $el._tooltip.$tooltip.querySelector('.tooltip__arrow');
|
||||
if (
|
||||
updatedOptions.offset !== undefined ||
|
||||
updatedOptions.shiftPadding !== undefined ||
|
||||
updatedOptions.arrow !== undefined
|
||||
) {
|
||||
$el._tooltip._middleware = undefined;
|
||||
}
|
||||
if (
|
||||
updatedOptions.placement !== undefined ||
|
||||
updatedOptions.offset !== undefined ||
|
||||
updatedOptions.interactive !== undefined
|
||||
) {
|
||||
$el._tooltip._side = undefined;
|
||||
}
|
||||
|
||||
if (updatedOptions.arrow !== undefined) {
|
||||
/*
|
||||
Опция могла прийти булевым значением — приводим к единому виду.
|
||||
Нормализуем всегда, даже если подсказка ещё не создана
|
||||
*/
|
||||
options.arrow = normalizeArrow(options.arrow);
|
||||
if ($el._tooltip.$tooltip) {
|
||||
if (options.arrow.active) {
|
||||
mountArrow();
|
||||
} else {
|
||||
$el._tooltip.$arrow?.remove();
|
||||
$el._tooltip.$arrow = undefined;
|
||||
unmountArrow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,17 +255,13 @@ export const createTooltip = ($el, content, options) => {
|
||||
}
|
||||
|
||||
if (updatedOptions.theme !== undefined && $el._tooltip.$tooltip) {
|
||||
const classIndex = [...$el._tooltip.$tooltip.classList].findIndex((className) =>
|
||||
const themeClass = [...$el._tooltip.$tooltip.classList].find((className) =>
|
||||
className.startsWith('tooltip_theme_'),
|
||||
);
|
||||
if (classIndex === -1) {
|
||||
$el._tooltip.$tooltip.classList.add(`tooltip_theme_${options.theme}`);
|
||||
} else {
|
||||
$el._tooltip.$tooltip.classList.replace(
|
||||
$el._tooltip.$tooltip.classList[classIndex],
|
||||
`tooltip_theme_${options.theme}`,
|
||||
);
|
||||
if (themeClass) {
|
||||
$el._tooltip.$tooltip.classList.remove(themeClass);
|
||||
}
|
||||
$el._tooltip.$tooltip.classList.add(`tooltip_theme_${options.theme}`);
|
||||
}
|
||||
|
||||
if (updatedOptions.zIndex !== undefined && $el._tooltip.$tooltip) {
|
||||
@@ -171,7 +285,7 @@ export const createTooltip = ($el, content, options) => {
|
||||
|
||||
$el._tooltip.$tooltip?.remove();
|
||||
|
||||
// Вызываем autoUpdateCleanup только если всплывающая подсказка была видна (иначе вызывать её не имеет смысла)
|
||||
// autoUpdateCleanup нужен только для показанной подсказки
|
||||
if ($el._tooltip.isVisible) {
|
||||
$el._tooltip.autoUpdateCleanup();
|
||||
}
|
||||
@@ -187,16 +301,20 @@ export const createTooltip = ($el, content, options) => {
|
||||
},
|
||||
};
|
||||
|
||||
if (options.onCreate) {
|
||||
options.onCreate($el._tooltip);
|
||||
}
|
||||
|
||||
$el._tooltip.show = async ({ immediately } = {}) => {
|
||||
clearTimeout($el._tooltip._hideTimeout);
|
||||
clearTimeout($el._tooltip._showTimeout);
|
||||
|
||||
$el._tooltip._generation += 1;
|
||||
const generation = $el._tooltip._generation;
|
||||
|
||||
const { computePosition, autoUpdate, offset, flip, shift, arrow } = await import('@floating-ui/dom');
|
||||
|
||||
if (generation !== $el._tooltip._generation) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$el._tooltip.$tooltip) {
|
||||
const { computePosition, offset, flip, shift, arrow } = await import('@floating-ui/dom');
|
||||
|
||||
$el._tooltip.$tooltip = document.createElement('div');
|
||||
$el._tooltip.$tooltip._reference = $el;
|
||||
$el._tooltip.$tooltip.classList.add('tooltip', `tooltip_theme_${options.theme}`);
|
||||
@@ -205,26 +323,19 @@ export const createTooltip = ($el, content, options) => {
|
||||
$el._tooltip.$tooltip.innerHTML = `
|
||||
<div class="tooltip__root">
|
||||
${options.interactive ? templates.interactiveHelper() : ''}
|
||||
${options.arrow ? templates.arrow() : ''}
|
||||
<div class="tooltip__container"></div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
$el._tooltip.$container = $el._tooltip.$tooltip.querySelector('.tooltip__container');
|
||||
$el._tooltip.$arrow = $el._tooltip.$tooltip.querySelector('.tooltip__arrow');
|
||||
$el._tooltip.$interactive = $el._tooltip.$tooltip.querySelector('.tooltip__interactive-helper');
|
||||
|
||||
$el._tooltip.setContent();
|
||||
mountArrow();
|
||||
|
||||
$el._tooltip.updatePosition = () => {
|
||||
cancelAnimationFrame(rafId);
|
||||
rafId = requestAnimationFrame(async () => {
|
||||
const { x, y, placement, middlewareData } = await computePosition(
|
||||
options.virtualReference ?? $el,
|
||||
$el._tooltip.$tooltip,
|
||||
{
|
||||
placement: options.placement,
|
||||
middleware: [
|
||||
const buildMiddleware = () => {
|
||||
const arrowSize = $el._tooltip.$arrow?.offsetWidth ?? 0;
|
||||
return [
|
||||
offset({ mainAxis: options.offset[1], crossAxis: options.offset[0] }),
|
||||
flip(),
|
||||
shift({
|
||||
@@ -235,8 +346,37 @@ export const createTooltip = ($el, content, options) => {
|
||||
left: options.shiftPadding[0],
|
||||
},
|
||||
}),
|
||||
arrow({ element: $el._tooltip.$arrow }),
|
||||
],
|
||||
arrow({
|
||||
element: $el._tooltip.$arrow,
|
||||
/*
|
||||
Отступ стрелки от краёв подсказки. По умолчанию считаем из размера стрелки:
|
||||
квадрат со стороной size, повёрнутый на 45°, выступает за свою рамку
|
||||
на (√2 − 1) / 2 · size — это не даёт его углам вылезать за границы.
|
||||
Можно задать вручную через arrow.padding
|
||||
*/
|
||||
padding: options.arrow.padding ?? Math.ceil(((Math.SQRT2 - 1) / 2) * arrowSize),
|
||||
}),
|
||||
];
|
||||
};
|
||||
|
||||
$el._tooltip.updatePosition = () => {
|
||||
cancelAnimationFrame(rafId);
|
||||
rafId = requestAnimationFrame(async () => {
|
||||
/*
|
||||
Все чтения геометрии делаем до первой записи стилей, иначе браузер
|
||||
вынужден делать принудительный reflow на каждом кадре прокрутки
|
||||
*/
|
||||
const tooltipWidth = $el._tooltip.$tooltip.offsetWidth;
|
||||
const tooltipHeight = $el._tooltip.$tooltip.offsetHeight;
|
||||
const arrowWidth = $el._tooltip.$arrow?.offsetWidth ?? 0;
|
||||
const arrowHeight = $el._tooltip.$arrow?.offsetHeight ?? 0;
|
||||
|
||||
const { x, y, placement, middlewareData } = await computePosition(
|
||||
options.virtualReference ?? $el,
|
||||
$el._tooltip.$tooltip,
|
||||
{
|
||||
placement: options.placement,
|
||||
middleware: ($el._tooltip._middleware ??= buildMiddleware()),
|
||||
},
|
||||
);
|
||||
|
||||
@@ -244,8 +384,12 @@ export const createTooltip = ($el, content, options) => {
|
||||
transform: `translate(${roundByDPR(x)}px, ${roundByDPR(y)}px)`,
|
||||
});
|
||||
|
||||
const side = placement.split('-')[0],
|
||||
staticSide = { top: 'bottom', right: 'left', bottom: 'top', left: 'right' }[side];
|
||||
const side = placement.split('-')[0];
|
||||
const staticSide = { top: 'bottom', right: 'left', bottom: 'top', left: 'right' }[side];
|
||||
|
||||
// Стили стороны применяем только при её смене
|
||||
if (side !== $el._tooltip._side) {
|
||||
$el._tooltip._side = side;
|
||||
|
||||
$el._tooltip.$tooltip.classList.remove(
|
||||
'tooltip_side_top',
|
||||
@@ -262,13 +406,30 @@ export const createTooltip = ($el, content, options) => {
|
||||
[staticSide]: `-${options.offset[1]}px`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if ($el._tooltip.$arrow && middlewareData.arrow) {
|
||||
const { x, y } = middlewareData.arrow;
|
||||
Object.assign($el._tooltip.$arrow.style, {
|
||||
const { $arrow } = $el._tooltip;
|
||||
let { x, y } = middlewareData.arrow;
|
||||
|
||||
/*
|
||||
centered: фиксируем стрелку по центру подсказки, чтобы она не смещалась
|
||||
вслед за опорным элементом при прокрутке (например, когда подсказка
|
||||
прижата к краю экрана). Ось центрирования зависит от стороны:
|
||||
для left/right — вертикаль, для top/bottom — горизонталь
|
||||
*/
|
||||
if (options.arrow.centered) {
|
||||
if (side === 'left' || side === 'right') {
|
||||
y = (tooltipHeight - arrowHeight) / 2;
|
||||
} else {
|
||||
x = (tooltipWidth - arrowWidth) / 2;
|
||||
}
|
||||
}
|
||||
|
||||
Object.assign($arrow.style, {
|
||||
left: x === undefined ? '' : `${x}px`,
|
||||
top: y === undefined ? '' : `${y}px`,
|
||||
[staticSide]: `-${$el._tooltip.$arrow.offsetWidth / 2}px`,
|
||||
[staticSide]: `-${arrowWidth / 2}px`,
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -279,14 +440,16 @@ export const createTooltip = ($el, content, options) => {
|
||||
}
|
||||
}
|
||||
|
||||
const { autoUpdate } = await import('@floating-ui/dom');
|
||||
|
||||
$el._tooltip._showTimeout = setTimeout(
|
||||
async () => {
|
||||
const isMouseEnterTrigger = options.trigger.includes('mouseenter'),
|
||||
isHovering = $el.matches(':hover');
|
||||
if (generation !== $el._tooltip._generation) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Проверяем $el._tooltip на сущестование и актуальность показа всплывающей подсказки
|
||||
const isMouseEnterTrigger = options.trigger.includes('mouseenter');
|
||||
const isHovering = $el.matches(':hover');
|
||||
|
||||
// За время задержки состояние могло измениться
|
||||
if (
|
||||
!$el._tooltip ||
|
||||
$el._tooltip.isVisible ||
|
||||
@@ -298,31 +461,25 @@ export const createTooltip = ($el, content, options) => {
|
||||
|
||||
(options.appendTo === 'parent' ? $el.parentElement : options.appendTo).append($el._tooltip.$tooltip);
|
||||
$el._tooltip.isVisible = true;
|
||||
$el._tooltip.autoUpdateCleanup = autoUpdate($el, $el._tooltip.$tooltip, $el._tooltip.updatePosition);
|
||||
$el._tooltip.autoUpdateCleanup = autoUpdate(
|
||||
options.virtualReference ?? $el,
|
||||
$el._tooltip.$tooltip,
|
||||
$el._tooltip.updatePosition,
|
||||
);
|
||||
|
||||
if (options.hideOnClick && (options.trigger.includes('click') || options.trigger.includes('manual'))) {
|
||||
document.body.addEventListener('click', $el._tooltip.hideOnClickListener);
|
||||
listeners.push({
|
||||
el: document.body,
|
||||
event: 'click',
|
||||
listener: $el._tooltip.hideOnClickListener,
|
||||
});
|
||||
}
|
||||
|
||||
if (options.onShow) {
|
||||
options.onShow($el._tooltip);
|
||||
}
|
||||
|
||||
try {
|
||||
const animation = $el._tooltip.$tooltip
|
||||
.querySelector('.tooltip__root')
|
||||
.animate(options.animation[0], {
|
||||
duration: immediately ? 0 : options.duration[0],
|
||||
easing: options.easing[0],
|
||||
});
|
||||
$el._tooltip._currentAnimation = animation;
|
||||
await animation.finished;
|
||||
} catch {} // eslint-disable-line no-empty
|
||||
await animateRoot(0, immediately);
|
||||
|
||||
if (generation !== $el._tooltip._generation) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (options.onShown) {
|
||||
options.onShown($el._tooltip);
|
||||
@@ -334,9 +491,17 @@ export const createTooltip = ($el, content, options) => {
|
||||
|
||||
$el._tooltip.hide = ({ immediately } = {}) => {
|
||||
clearTimeout($el._tooltip._showTimeout);
|
||||
|
||||
$el._tooltip._generation += 1;
|
||||
const generation = $el._tooltip._generation;
|
||||
|
||||
$el._tooltip._hideTimeout = setTimeout(
|
||||
async () => {
|
||||
// Проверяем $el._tooltip на сущестование
|
||||
if (generation !== $el._tooltip._generation) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Подсказку могли удалить или скрыть за время задержки
|
||||
if (!$el._tooltip || !$el._tooltip.isVisible) {
|
||||
return;
|
||||
}
|
||||
@@ -347,19 +512,10 @@ export const createTooltip = ($el, content, options) => {
|
||||
|
||||
document.body.removeEventListener('click', $el._tooltip.hideOnClickListener);
|
||||
|
||||
try {
|
||||
const animation = $el._tooltip.$tooltip
|
||||
.querySelector('.tooltip__root')
|
||||
.animate(options.animation[1], {
|
||||
duration: immediately ? 0 : options.duration[1],
|
||||
easing: options.easing[1],
|
||||
});
|
||||
$el._tooltip._currentAnimation = animation;
|
||||
await animation.finished;
|
||||
} catch {} // eslint-disable-line no-empty
|
||||
await animateRoot(1, immediately);
|
||||
|
||||
// Ещё одна проверка на сущестование $el._tooltip после await
|
||||
if (!$el._tooltip) {
|
||||
// Пока шла анимация, подсказку могли скрыть повторно или удалить
|
||||
if (generation !== $el._tooltip._generation || !$el._tooltip) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -446,45 +602,15 @@ export const createTooltip = ($el, content, options) => {
|
||||
$el._tooltip.hide();
|
||||
};
|
||||
|
||||
const registerListeners = () => {
|
||||
for (const trigger of options.trigger.split(' ')) {
|
||||
switch (trigger) {
|
||||
case 'mouseenter': {
|
||||
$el.addEventListener('pointerenter', $el._tooltip.mouseEnterListener);
|
||||
listeners.push({ el: $el, event: 'pointerenter', listener: $el._tooltip.mouseEnterListener });
|
||||
|
||||
$el.addEventListener('pointerleave', $el._tooltip.mouseLeaveListener);
|
||||
listeners.push({ el: $el, event: 'pointerleave', listener: $el._tooltip.mouseLeaveListener });
|
||||
break;
|
||||
}
|
||||
case 'click': {
|
||||
$el.addEventListener('click', $el._tooltip.clickListener);
|
||||
listeners.push({ el: $el, event: 'click', listener: $el._tooltip.clickListener });
|
||||
|
||||
if (!options.interactive) {
|
||||
$el.addEventListener('pointerleave', $el._tooltip.mouseLeaveListener);
|
||||
listeners.push({ el: $el, event: 'pointerleave', listener: $el._tooltip.mouseLeaveListener });
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'focus': {
|
||||
$el.addEventListener('focus', $el._tooltip.focusListener);
|
||||
listeners.push({ el: $el, event: 'focus', listener: $el._tooltip.focusListener });
|
||||
break;
|
||||
}
|
||||
case 'blur': {
|
||||
$el.addEventListener('blur', $el._tooltip.blurListener);
|
||||
listeners.push({ el: $el, event: 'blur', listener: $el._tooltip.blurListener });
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
registerListeners();
|
||||
|
||||
if (!visibilityListenerRegistered) {
|
||||
document.addEventListener('visibilitychange', handleVisibilityChange);
|
||||
visibilityListenerRegistered = true;
|
||||
}
|
||||
|
||||
// Вызываем onCreate в конце, когда все методы и слушатели уже инициализированы
|
||||
if (options.onCreate) {
|
||||
options.onCreate($el._tooltip);
|
||||
}
|
||||
};
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@advdominion/tooltip",
|
||||
"version": "7.0.2",
|
||||
"version": "7.1.1",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
|
||||
@@ -5,12 +5,9 @@ __metadata:
|
||||
version: 10
|
||||
cacheKey: 10c0
|
||||
|
||||
"@advdominion/babel-plugin-nunjucks@workspace:packages/babel-plugin-nunjucks":
|
||||
"@advdominion/browserslist-to-targets@workspace:packages/browserslist-to-targets":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@advdominion/babel-plugin-nunjucks@workspace:packages/babel-plugin-nunjucks"
|
||||
peerDependencies:
|
||||
"@babel/core": ^8.0.0
|
||||
nunjucks: ^3.0.0
|
||||
resolution: "@advdominion/browserslist-to-targets@workspace:packages/browserslist-to-targets"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -36,18 +33,18 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@advdominion/lightningcss-loader@workspace:packages/lightningcss-loader":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@advdominion/lightningcss-loader@workspace:packages/lightningcss-loader"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@advdominion/pluralize@workspace:packages/pluralize":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@advdominion/pluralize@workspace:packages/pluralize"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@advdominion/sass-importer@workspace:packages/sass-importer":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@advdominion/sass-importer@workspace:packages/sass-importer"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@advdominion/scroll-to@workspace:packages/scroll-to":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@advdominion/scroll-to@workspace:packages/scroll-to"
|
||||
@@ -141,17 +138,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/css-calc@npm:^3.1.1":
|
||||
version: 3.1.1
|
||||
resolution: "@csstools/css-calc@npm:3.1.1"
|
||||
peerDependencies:
|
||||
"@csstools/css-parser-algorithms": ^4.0.0
|
||||
"@csstools/css-tokenizer": ^4.0.0
|
||||
checksum: 10c0/6efcc016d988edf66e54c7bad03e352d61752cbd1b56c7557fd013868aab23505052ded8f912cd4034e216943ea1e04c957d81012489e3eddc14a57b386510ef
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/css-calc@npm:^3.2.1":
|
||||
"@csstools/css-calc@npm:^3.1.1, @csstools/css-calc@npm:^3.2.1":
|
||||
version: 3.3.0
|
||||
resolution: "@csstools/css-calc@npm:3.3.0"
|
||||
peerDependencies:
|
||||
@@ -170,14 +157,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/css-syntax-patches-for-csstree@npm:^1.0.26":
|
||||
version: 1.0.27
|
||||
resolution: "@csstools/css-syntax-patches-for-csstree@npm:1.0.27"
|
||||
checksum: 10c0/ef3f2a639109758c0f3c04520465800ca4c830174bd6f7979795083877c82ace51ab8353857b06a818cb6c0de6d4dc88f84a86fc3b021be47f11a0f1c4b74e7e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@csstools/css-syntax-patches-for-csstree@npm:^1.1.4":
|
||||
"@csstools/css-syntax-patches-for-csstree@npm:^1.0.26, @csstools/css-syntax-patches-for-csstree@npm:^1.1.4":
|
||||
version: 1.1.12
|
||||
resolution: "@csstools/css-syntax-patches-for-csstree@npm:1.1.12"
|
||||
peerDependencies:
|
||||
@@ -527,22 +507,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@isaacs/balanced-match@npm:^4.0.1":
|
||||
version: 4.0.1
|
||||
resolution: "@isaacs/balanced-match@npm:4.0.1"
|
||||
checksum: 10c0/7da011805b259ec5c955f01cee903da72ad97c5e6f01ca96197267d3f33103d5b2f8a1af192140f3aa64526c593c8d098ae366c2b11f7f17645d12387c2fd420
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@isaacs/brace-expansion@npm:^5.0.0":
|
||||
version: 5.0.0
|
||||
resolution: "@isaacs/brace-expansion@npm:5.0.0"
|
||||
dependencies:
|
||||
"@isaacs/balanced-match": "npm:^4.0.1"
|
||||
checksum: 10c0/b4d4812f4be53afc2c5b6c545001ff7a4659af68d4484804e9d514e183d20269bb81def8682c01a22b17c4d6aed14292c8494f7d2ac664e547101c1a905aa977
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@isaacs/cliui@npm:^8.0.2":
|
||||
version: 8.0.2
|
||||
resolution: "@isaacs/cliui@npm:8.0.2"
|
||||
@@ -1123,268 +1087,268 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-android-arm-eabi@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-android-arm-eabi@npm:0.63.0"
|
||||
"@oxfmt/binding-android-arm-eabi@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-android-arm-eabi@npm:0.70.0"
|
||||
conditions: os=android & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-android-arm64@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-android-arm64@npm:0.63.0"
|
||||
"@oxfmt/binding-android-arm64@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-android-arm64@npm:0.70.0"
|
||||
conditions: os=android & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-darwin-arm64@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-darwin-arm64@npm:0.63.0"
|
||||
"@oxfmt/binding-darwin-arm64@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-darwin-arm64@npm:0.70.0"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-darwin-x64@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-darwin-x64@npm:0.63.0"
|
||||
"@oxfmt/binding-darwin-x64@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-darwin-x64@npm:0.70.0"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-freebsd-x64@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-freebsd-x64@npm:0.63.0"
|
||||
"@oxfmt/binding-freebsd-x64@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-freebsd-x64@npm:0.70.0"
|
||||
conditions: os=freebsd & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-arm-gnueabihf@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-arm-gnueabihf@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-arm-gnueabihf@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-arm-gnueabihf@npm:0.70.0"
|
||||
conditions: os=linux & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-arm-musleabihf@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-arm-musleabihf@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-arm-musleabihf@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-arm-musleabihf@npm:0.70.0"
|
||||
conditions: os=linux & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-arm64-gnu@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-arm64-gnu@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-arm64-gnu@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-arm64-gnu@npm:0.70.0"
|
||||
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-arm64-musl@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-arm64-musl@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-arm64-musl@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-arm64-musl@npm:0.70.0"
|
||||
conditions: os=linux & cpu=arm64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-ppc64-gnu@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-ppc64-gnu@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-ppc64-gnu@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-ppc64-gnu@npm:0.70.0"
|
||||
conditions: os=linux & cpu=ppc64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-riscv64-gnu@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-riscv64-gnu@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-riscv64-gnu@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-riscv64-gnu@npm:0.70.0"
|
||||
conditions: os=linux & cpu=riscv64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-riscv64-musl@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-riscv64-musl@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-riscv64-musl@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-riscv64-musl@npm:0.70.0"
|
||||
conditions: os=linux & cpu=riscv64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-s390x-gnu@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-s390x-gnu@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-s390x-gnu@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-s390x-gnu@npm:0.70.0"
|
||||
conditions: os=linux & cpu=s390x & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-x64-gnu@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-x64-gnu@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-x64-gnu@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-x64-gnu@npm:0.70.0"
|
||||
conditions: os=linux & cpu=x64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-linux-x64-musl@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-linux-x64-musl@npm:0.63.0"
|
||||
"@oxfmt/binding-linux-x64-musl@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-linux-x64-musl@npm:0.70.0"
|
||||
conditions: os=linux & cpu=x64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-openharmony-arm64@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-openharmony-arm64@npm:0.63.0"
|
||||
"@oxfmt/binding-openharmony-arm64@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-openharmony-arm64@npm:0.70.0"
|
||||
conditions: os=openharmony & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-win32-arm64-msvc@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-win32-arm64-msvc@npm:0.63.0"
|
||||
"@oxfmt/binding-win32-arm64-msvc@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-win32-arm64-msvc@npm:0.70.0"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-win32-ia32-msvc@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-win32-ia32-msvc@npm:0.63.0"
|
||||
"@oxfmt/binding-win32-ia32-msvc@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-win32-ia32-msvc@npm:0.70.0"
|
||||
conditions: os=win32 & cpu=ia32
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxfmt/binding-win32-x64-msvc@npm:0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "@oxfmt/binding-win32-x64-msvc@npm:0.63.0"
|
||||
"@oxfmt/binding-win32-x64-msvc@npm:0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "@oxfmt/binding-win32-x64-msvc@npm:0.70.0"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-android-arm-eabi@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-android-arm-eabi@npm:1.78.0"
|
||||
"@oxlint/binding-android-arm-eabi@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-android-arm-eabi@npm:1.85.0"
|
||||
conditions: os=android & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-android-arm64@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-android-arm64@npm:1.78.0"
|
||||
"@oxlint/binding-android-arm64@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-android-arm64@npm:1.85.0"
|
||||
conditions: os=android & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-darwin-arm64@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-darwin-arm64@npm:1.78.0"
|
||||
"@oxlint/binding-darwin-arm64@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-darwin-arm64@npm:1.85.0"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-darwin-x64@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-darwin-x64@npm:1.78.0"
|
||||
"@oxlint/binding-darwin-x64@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-darwin-x64@npm:1.85.0"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-freebsd-x64@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-freebsd-x64@npm:1.78.0"
|
||||
"@oxlint/binding-freebsd-x64@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-freebsd-x64@npm:1.85.0"
|
||||
conditions: os=freebsd & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-arm-gnueabihf@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-arm-gnueabihf@npm:1.78.0"
|
||||
"@oxlint/binding-linux-arm-gnueabihf@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-arm-gnueabihf@npm:1.85.0"
|
||||
conditions: os=linux & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-arm-musleabihf@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-arm-musleabihf@npm:1.78.0"
|
||||
"@oxlint/binding-linux-arm-musleabihf@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-arm-musleabihf@npm:1.85.0"
|
||||
conditions: os=linux & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-arm64-gnu@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-arm64-gnu@npm:1.78.0"
|
||||
"@oxlint/binding-linux-arm64-gnu@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-arm64-gnu@npm:1.85.0"
|
||||
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-arm64-musl@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-arm64-musl@npm:1.78.0"
|
||||
"@oxlint/binding-linux-arm64-musl@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-arm64-musl@npm:1.85.0"
|
||||
conditions: os=linux & cpu=arm64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-ppc64-gnu@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-ppc64-gnu@npm:1.78.0"
|
||||
"@oxlint/binding-linux-ppc64-gnu@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-ppc64-gnu@npm:1.85.0"
|
||||
conditions: os=linux & cpu=ppc64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-riscv64-gnu@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-riscv64-gnu@npm:1.78.0"
|
||||
"@oxlint/binding-linux-riscv64-gnu@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-riscv64-gnu@npm:1.85.0"
|
||||
conditions: os=linux & cpu=riscv64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-riscv64-musl@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-riscv64-musl@npm:1.78.0"
|
||||
"@oxlint/binding-linux-riscv64-musl@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-riscv64-musl@npm:1.85.0"
|
||||
conditions: os=linux & cpu=riscv64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-s390x-gnu@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-s390x-gnu@npm:1.78.0"
|
||||
"@oxlint/binding-linux-s390x-gnu@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-s390x-gnu@npm:1.85.0"
|
||||
conditions: os=linux & cpu=s390x & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-x64-gnu@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-x64-gnu@npm:1.78.0"
|
||||
"@oxlint/binding-linux-x64-gnu@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-x64-gnu@npm:1.85.0"
|
||||
conditions: os=linux & cpu=x64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-linux-x64-musl@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-linux-x64-musl@npm:1.78.0"
|
||||
"@oxlint/binding-linux-x64-musl@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-linux-x64-musl@npm:1.85.0"
|
||||
conditions: os=linux & cpu=x64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-openharmony-arm64@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-openharmony-arm64@npm:1.78.0"
|
||||
"@oxlint/binding-openharmony-arm64@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-openharmony-arm64@npm:1.85.0"
|
||||
conditions: os=openharmony & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-win32-arm64-msvc@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-win32-arm64-msvc@npm:1.78.0"
|
||||
"@oxlint/binding-win32-arm64-msvc@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-win32-arm64-msvc@npm:1.85.0"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-win32-ia32-msvc@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-win32-ia32-msvc@npm:1.78.0"
|
||||
"@oxlint/binding-win32-ia32-msvc@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-win32-ia32-msvc@npm:1.85.0"
|
||||
conditions: os=win32 & cpu=ia32
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/binding-win32-x64-msvc@npm:1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "@oxlint/binding-win32-x64-msvc@npm:1.78.0"
|
||||
"@oxlint/binding-win32-x64-msvc@npm:1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "@oxlint/binding-win32-x64-msvc@npm:1.85.0"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
@@ -2057,19 +2021,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"conventional-commits-parser@npm:7.1.0":
|
||||
version: 7.1.0
|
||||
resolution: "conventional-commits-parser@npm:7.1.0"
|
||||
dependencies:
|
||||
"@simple-libs/stream-utils": "npm:^2.0.0"
|
||||
argue-cli: "npm:^3.1.0"
|
||||
bin:
|
||||
conventional-commits-parser: ./dist/cli/index.js
|
||||
checksum: 10c0/7056dbe22c844561675dc08b9a3062da07d56e93fa4360fa1cb72dc5df5811b165cc5b2a317a6e05803cc3399ddcb641d701ed456443cffb36c407b2a17d1f97
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"conventional-commits-parser@npm:^7.1.0":
|
||||
"conventional-commits-parser@npm:7.1.2, conventional-commits-parser@npm:^7.1.0":
|
||||
version: 7.1.2
|
||||
resolution: "conventional-commits-parser@npm:7.1.2"
|
||||
dependencies:
|
||||
@@ -2131,17 +2083,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"css-tree@npm:^3.1.0":
|
||||
version: 3.1.0
|
||||
resolution: "css-tree@npm:3.1.0"
|
||||
dependencies:
|
||||
mdn-data: "npm:2.12.2"
|
||||
source-map-js: "npm:^1.0.1"
|
||||
checksum: 10c0/b5715852c2f397c715ca00d56ec53fc83ea596295ae112eb1ba6a1bda3b31086380e596b1d8c4b980fe6da09e7d0fc99c64d5bb7313030dd0fba9c1415f30979
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"css-tree@npm:^3.2.1":
|
||||
"css-tree@npm:^3.1.0, css-tree@npm:^3.2.1":
|
||||
version: 3.2.1
|
||||
resolution: "css-tree@npm:3.2.1"
|
||||
dependencies:
|
||||
@@ -2935,7 +2877,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"hasown@npm:2.0.4, hasown@npm:^2.0.4":
|
||||
"hasown@npm:2.0.4, hasown@npm:^2.0.2, hasown@npm:^2.0.4":
|
||||
version: 2.0.4
|
||||
resolution: "hasown@npm:2.0.4"
|
||||
dependencies:
|
||||
@@ -2944,15 +2886,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"hasown@npm:^2.0.2":
|
||||
version: 2.0.2
|
||||
resolution: "hasown@npm:2.0.2"
|
||||
dependencies:
|
||||
function-bind: "npm:^1.1.2"
|
||||
checksum: 10c0/3769d434703b8ac66b209a4cca0737519925bbdb61dd887f93a16372b14694c63ff4e797686d87c90f08168e81082248b9b028bad60d4da9e0d1148766f56eb9
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"hookified@npm:^1.14.0, hookified@npm:^1.15.0":
|
||||
version: 1.15.1
|
||||
resolution: "hookified@npm:1.15.1"
|
||||
@@ -3360,7 +3293,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"js-yaml@npm:4.3.0":
|
||||
"js-yaml@npm:4.3.0, js-yaml@npm:^4.1.0":
|
||||
version: 4.3.0
|
||||
resolution: "js-yaml@npm:4.3.0"
|
||||
dependencies:
|
||||
@@ -3371,17 +3304,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"js-yaml@npm:^4.1.0":
|
||||
version: 4.1.1
|
||||
resolution: "js-yaml@npm:4.1.1"
|
||||
dependencies:
|
||||
argparse: "npm:^2.0.1"
|
||||
bin:
|
||||
js-yaml: bin/js-yaml.js
|
||||
checksum: 10c0/561c7d7088c40a9bb53cc75becbfb1df6ae49b34b5e6e5a81744b14ae8667ec564ad2527709d1a6e7d5e5fa6d483aa0f373a50ad98d42fde368ec4a190d4fae7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"json-parse-even-better-errors@npm:^2.3.0":
|
||||
version: 2.3.1
|
||||
resolution: "json-parse-even-better-errors@npm:2.3.1"
|
||||
@@ -3490,9 +3412,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lerna@npm:^10.0.0":
|
||||
version: 10.0.0
|
||||
resolution: "lerna@npm:10.0.0"
|
||||
"lerna@npm:^10.0.1":
|
||||
version: 10.0.1
|
||||
resolution: "lerna@npm:10.0.1"
|
||||
dependencies:
|
||||
"@npmcli/arborist": "npm:9.1.6"
|
||||
"@npmcli/package-json": "npm:7.0.2"
|
||||
@@ -3506,7 +3428,7 @@ __metadata:
|
||||
conventional-changelog: "npm:8.1.0"
|
||||
conventional-changelog-angular: "npm:9.2.1"
|
||||
conventional-commits-filter: "npm:6.0.1"
|
||||
conventional-commits-parser: "npm:7.1.0"
|
||||
conventional-commits-parser: "npm:7.1.2"
|
||||
conventional-recommended-bump: "npm:12.1.0"
|
||||
cosmiconfig: "npm:9.0.0"
|
||||
dedent: "npm:1.5.3"
|
||||
@@ -3537,7 +3459,7 @@ __metadata:
|
||||
signal-exit: "npm:3.0.7"
|
||||
ssri: "npm:12.0.0"
|
||||
string-width: "npm:^4.2.3"
|
||||
tar: "npm:7.5.20"
|
||||
tar: "npm:7.5.22"
|
||||
tinyglobby: "npm:0.2.12"
|
||||
validate-npm-package-license: "npm:3.0.4"
|
||||
validate-npm-package-name: "npm:6.0.2"
|
||||
@@ -3545,7 +3467,7 @@ __metadata:
|
||||
yargs: "npm:17.7.2"
|
||||
bin:
|
||||
lerna: dist/cli.js
|
||||
checksum: 10c0/49e09f922df4eda5860cde0035873e6393960e828f81aabf14fe94538760ece86908233d1d0a85f0570c70140949dca8c89989c3093ef6c8f05b10e1eaf4dec4
|
||||
checksum: 10c0/f5c162eef98ebe98c830ff0b60424ac8ce49b8451c03411f1cc79039c924e337f6330d468c43b8208b3b5d34acda4ea7850211728beaa33a39a3c430fbd62bf2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3589,20 +3511,20 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lint-staged@npm:^17.3.0":
|
||||
version: 17.3.0
|
||||
resolution: "lint-staged@npm:17.3.0"
|
||||
"lint-staged@npm:^17.5.1":
|
||||
version: 17.5.1
|
||||
resolution: "lint-staged@npm:17.5.1"
|
||||
dependencies:
|
||||
picomatch: "npm:^4.0.5"
|
||||
picomatch: "npm:^4.0.7"
|
||||
string-argv: "npm:^0.3.2"
|
||||
tinyexec: "npm:^1.2.4"
|
||||
tinyexec: "npm:^1.3.1"
|
||||
yaml: "npm:^2.9.0"
|
||||
dependenciesMeta:
|
||||
yaml:
|
||||
optional: true
|
||||
bin:
|
||||
lint-staged: bin/lint-staged.js
|
||||
checksum: 10c0/48703bf88fd834a5575b4f7fc77aadc7be21017ca66db4255b8962515f7b3df523ec23a1f198fb89eddc838268f2472a613723a7b058ad9260367a1698ce76e1
|
||||
checksum: 10c0/8063dab2c1d44b126432bd08a74ed98fcd90976dc5ed94172c3e70f2466b1268aa98c4b646f810c22e9b56923be7772f549f70e5b985d59b4bd0c68e36fe6524
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3710,13 +3632,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"mdn-data@npm:2.12.2":
|
||||
version: 2.12.2
|
||||
resolution: "mdn-data@npm:2.12.2"
|
||||
checksum: 10c0/b22443b71d70f72ccc3c6ba1608035431a8fc18c3c8fc53523f06d20e05c2ac10f9b53092759a2ca85cf02f0d37036f310b581ce03e7b99ac74d388ef8152ade
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"mdn-data@npm:2.27.1":
|
||||
version: 2.27.1
|
||||
resolution: "mdn-data@npm:2.27.1"
|
||||
@@ -3778,7 +3693,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"minimatch@npm:10.2.5":
|
||||
"minimatch@npm:10.2.5, minimatch@npm:^10.0.3, minimatch@npm:^10.1.1":
|
||||
version: 10.2.5
|
||||
resolution: "minimatch@npm:10.2.5"
|
||||
dependencies:
|
||||
@@ -3796,15 +3711,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"minimatch@npm:^10.0.3, minimatch@npm:^10.1.1":
|
||||
version: 10.1.1
|
||||
resolution: "minimatch@npm:10.1.1"
|
||||
dependencies:
|
||||
"@isaacs/brace-expansion": "npm:^5.0.0"
|
||||
checksum: 10c0/c85d44821c71973d636091fddbfbffe62370f5ee3caf0241c5b60c18cd289e916200acb2361b7e987558cd06896d153e25d505db9fc1e43e6b4b6752e2702902
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"minimist@npm:1.2.8, minimist@npm:^1.2.5, minimist@npm:^1.2.6":
|
||||
version: 1.2.8
|
||||
resolution: "minimist@npm:1.2.8"
|
||||
@@ -3917,15 +3823,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"nanoid@npm:^3.3.11":
|
||||
version: 3.3.11
|
||||
resolution: "nanoid@npm:3.3.11"
|
||||
bin:
|
||||
nanoid: bin/nanoid.cjs
|
||||
checksum: 10c0/40e7f70b3d15f725ca072dfc4f74e81fcf1fbb02e491cf58ac0c79093adc9b0a73b152bcde57df4b79cd097e13023d7504acb38404a4da7bc1cd8e887b82fe0b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"nanoid@npm:^3.3.17":
|
||||
version: 3.3.18
|
||||
resolution: "nanoid@npm:3.3.18"
|
||||
@@ -4376,30 +4273,30 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"oxfmt@npm:^0.63.0":
|
||||
version: 0.63.0
|
||||
resolution: "oxfmt@npm:0.63.0"
|
||||
"oxfmt@npm:^0.70.0":
|
||||
version: 0.70.0
|
||||
resolution: "oxfmt@npm:0.70.0"
|
||||
dependencies:
|
||||
"@oxfmt/binding-android-arm-eabi": "npm:0.63.0"
|
||||
"@oxfmt/binding-android-arm64": "npm:0.63.0"
|
||||
"@oxfmt/binding-darwin-arm64": "npm:0.63.0"
|
||||
"@oxfmt/binding-darwin-x64": "npm:0.63.0"
|
||||
"@oxfmt/binding-freebsd-x64": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-arm-gnueabihf": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-arm-musleabihf": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-arm64-gnu": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-arm64-musl": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-ppc64-gnu": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-riscv64-gnu": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-riscv64-musl": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-s390x-gnu": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-x64-gnu": "npm:0.63.0"
|
||||
"@oxfmt/binding-linux-x64-musl": "npm:0.63.0"
|
||||
"@oxfmt/binding-openharmony-arm64": "npm:0.63.0"
|
||||
"@oxfmt/binding-win32-arm64-msvc": "npm:0.63.0"
|
||||
"@oxfmt/binding-win32-ia32-msvc": "npm:0.63.0"
|
||||
"@oxfmt/binding-win32-x64-msvc": "npm:0.63.0"
|
||||
tinypool: "npm:2.1.0"
|
||||
"@oxfmt/binding-android-arm-eabi": "npm:0.70.0"
|
||||
"@oxfmt/binding-android-arm64": "npm:0.70.0"
|
||||
"@oxfmt/binding-darwin-arm64": "npm:0.70.0"
|
||||
"@oxfmt/binding-darwin-x64": "npm:0.70.0"
|
||||
"@oxfmt/binding-freebsd-x64": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-arm-gnueabihf": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-arm-musleabihf": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-arm64-gnu": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-arm64-musl": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-ppc64-gnu": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-riscv64-gnu": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-riscv64-musl": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-s390x-gnu": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-x64-gnu": "npm:0.70.0"
|
||||
"@oxfmt/binding-linux-x64-musl": "npm:0.70.0"
|
||||
"@oxfmt/binding-openharmony-arm64": "npm:0.70.0"
|
||||
"@oxfmt/binding-win32-arm64-msvc": "npm:0.70.0"
|
||||
"@oxfmt/binding-win32-ia32-msvc": "npm:0.70.0"
|
||||
"@oxfmt/binding-win32-x64-msvc": "npm:0.70.0"
|
||||
tinypool: "npm:2.1.2"
|
||||
peerDependencies:
|
||||
svelte: ^5.0.0
|
||||
vite-plus: "*"
|
||||
@@ -4449,33 +4346,33 @@ __metadata:
|
||||
optional: true
|
||||
bin:
|
||||
oxfmt: bin/oxfmt
|
||||
checksum: 10c0/8599015a2b5e4d7e35d9f2c26f2e232eb46e77f5e5d2446e7c809ca36e39f9aab832474e58e212f047d28d9661b3d996446280466944f78bac68d0a6efc172fe
|
||||
checksum: 10c0/9641cb661ed50183daacd90ecae767972f6c1cc8725b44d4f093014a9104cdc05659575ba94178b830fbe1ea53238bc0f81e70e132b4bcaaca2cbd4bb8ebbd42
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"oxlint@npm:^1.78.0":
|
||||
version: 1.78.0
|
||||
resolution: "oxlint@npm:1.78.0"
|
||||
"oxlint@npm:^1.85.0":
|
||||
version: 1.85.0
|
||||
resolution: "oxlint@npm:1.85.0"
|
||||
dependencies:
|
||||
"@oxlint/binding-android-arm-eabi": "npm:1.78.0"
|
||||
"@oxlint/binding-android-arm64": "npm:1.78.0"
|
||||
"@oxlint/binding-darwin-arm64": "npm:1.78.0"
|
||||
"@oxlint/binding-darwin-x64": "npm:1.78.0"
|
||||
"@oxlint/binding-freebsd-x64": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-arm-gnueabihf": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-arm-musleabihf": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-arm64-gnu": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-arm64-musl": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-ppc64-gnu": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-riscv64-gnu": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-riscv64-musl": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-s390x-gnu": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-x64-gnu": "npm:1.78.0"
|
||||
"@oxlint/binding-linux-x64-musl": "npm:1.78.0"
|
||||
"@oxlint/binding-openharmony-arm64": "npm:1.78.0"
|
||||
"@oxlint/binding-win32-arm64-msvc": "npm:1.78.0"
|
||||
"@oxlint/binding-win32-ia32-msvc": "npm:1.78.0"
|
||||
"@oxlint/binding-win32-x64-msvc": "npm:1.78.0"
|
||||
"@oxlint/binding-android-arm-eabi": "npm:1.85.0"
|
||||
"@oxlint/binding-android-arm64": "npm:1.85.0"
|
||||
"@oxlint/binding-darwin-arm64": "npm:1.85.0"
|
||||
"@oxlint/binding-darwin-x64": "npm:1.85.0"
|
||||
"@oxlint/binding-freebsd-x64": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-arm-gnueabihf": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-arm-musleabihf": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-arm64-gnu": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-arm64-musl": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-ppc64-gnu": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-riscv64-gnu": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-riscv64-musl": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-s390x-gnu": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-x64-gnu": "npm:1.85.0"
|
||||
"@oxlint/binding-linux-x64-musl": "npm:1.85.0"
|
||||
"@oxlint/binding-openharmony-arm64": "npm:1.85.0"
|
||||
"@oxlint/binding-win32-arm64-msvc": "npm:1.85.0"
|
||||
"@oxlint/binding-win32-ia32-msvc": "npm:1.85.0"
|
||||
"@oxlint/binding-win32-x64-msvc": "npm:1.85.0"
|
||||
peerDependencies:
|
||||
oxlint-tsgolint: ">=7.0.2001"
|
||||
vite-plus: "*"
|
||||
@@ -4525,7 +4422,7 @@ __metadata:
|
||||
optional: true
|
||||
bin:
|
||||
oxlint: bin/oxlint
|
||||
checksum: 10c0/f9f1f9c6dfd7794ec9ef38ead5850bf2e9714249401fed1cfd2f1df76993b43de62b710521329f02f4e376cf015528c1eb9dc06f8a9f5688658166abca210ad9
|
||||
checksum: 10c0/8ed3d50ddd19a3beea4b0ceed69596c7587036ec830c8bd2d71cd6317d6bebaaf2d6b9b1783c3806e6187a310e37dbe42347cfd103f4bbff83cf5f99ba1d35b5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4745,17 +4642,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"picomatch@npm:^4.0.2, picomatch@npm:^4.0.3":
|
||||
version: 4.0.4
|
||||
resolution: "picomatch@npm:4.0.4"
|
||||
checksum: 10c0/e2c6023372cc7b5764719a5ffb9da0f8e781212fa7ca4bd0562db929df8e117460f00dff3cb7509dacfc06b86de924b247f504d0ce1806a37fac4633081466b0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"picomatch@npm:^4.0.5":
|
||||
version: 4.0.5
|
||||
resolution: "picomatch@npm:4.0.5"
|
||||
checksum: 10c0/947bc6b6e1ff1e6c5aaf95b107a0839d12802f4f7b867663f67d47accba939ca1cb582cf99dfc30438efa1c4648ac5990967e783e8929c36b03e8440704ef1bd
|
||||
"picomatch@npm:^4.0.2, picomatch@npm:^4.0.3, picomatch@npm:^4.0.7":
|
||||
version: 4.0.7
|
||||
resolution: "picomatch@npm:4.0.7"
|
||||
checksum: 10c0/beb6ae02c43ae44e84883b90830196d9046b1726ead292adcf7f57945e0bb0d992d68563d87e03b484b6f3c9a5c6defda7523477f047d7f0e663f126cc01787f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4839,7 +4729,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"postcss@npm:^8.5.26, postcss@npm:^8.5.8":
|
||||
"postcss@npm:^8.5.26, postcss@npm:^8.5.6, postcss@npm:^8.5.8":
|
||||
version: 8.5.26
|
||||
resolution: "postcss@npm:8.5.26"
|
||||
dependencies:
|
||||
@@ -4850,17 +4740,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"postcss@npm:^8.5.6":
|
||||
version: 8.5.6
|
||||
resolution: "postcss@npm:8.5.6"
|
||||
dependencies:
|
||||
nanoid: "npm:^3.3.11"
|
||||
picocolors: "npm:^1.1.1"
|
||||
source-map-js: "npm:^1.2.1"
|
||||
checksum: 10c0/5127cc7c91ed7a133a1b7318012d8bfa112da9ef092dddf369ae699a1f10ebbd89b1b9f25f3228795b84585c72aabd5ced5fc11f2ba467eedf7b081a66fad024
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"proc-log@npm:^5.0.0":
|
||||
version: 5.0.0
|
||||
resolution: "proc-log@npm:5.0.0"
|
||||
@@ -5052,10 +4931,10 @@ __metadata:
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
husky: "npm:^9.1.7"
|
||||
lerna: "npm:^10.0.0"
|
||||
lint-staged: "npm:^17.3.0"
|
||||
oxfmt: "npm:^0.63.0"
|
||||
oxlint: "npm:^1.78.0"
|
||||
lerna: "npm:^10.0.1"
|
||||
lint-staged: "npm:^17.5.1"
|
||||
oxfmt: "npm:^0.70.0"
|
||||
oxlint: "npm:^1.85.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -5130,16 +5009,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"semver@npm:^7.1.1, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3, semver@npm:^7.6.3, semver@npm:^7.7.2":
|
||||
version: 7.7.3
|
||||
resolution: "semver@npm:7.7.3"
|
||||
bin:
|
||||
semver: bin/semver.js
|
||||
checksum: 10c0/4afe5c986567db82f44c8c6faef8fe9df2a9b1d98098fc1721f57c696c4c21cebd572f297fc21002f81889492345b8470473bc6f4aff5fb032a6ea59ea2bc45e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"semver@npm:^7.5.2, semver@npm:^7.8.5":
|
||||
"semver@npm:^7.1.1, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.6.3, semver@npm:^7.7.2, semver@npm:^7.8.5":
|
||||
version: 7.8.5
|
||||
resolution: "semver@npm:7.8.5"
|
||||
bin:
|
||||
@@ -5245,7 +5115,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"source-map-js@npm:^1.0.1, source-map-js@npm:^1.2.1":
|
||||
"source-map-js@npm:^1.2.1":
|
||||
version: 1.2.1
|
||||
resolution: "source-map-js@npm:1.2.1"
|
||||
checksum: 10c0/7bda1fc4c197e3c6ff17de1b8b2c20e60af81b63a52cb32ec5a5d67a20a7d42651e2cb34ebe93833c5a2a084377e17455854fee3e21e7925c64a51b6a52b0faf
|
||||
@@ -5565,36 +5435,23 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"tar@npm:7.5.20":
|
||||
version: 7.5.20
|
||||
resolution: "tar@npm:7.5.20"
|
||||
"tar@npm:7.5.22, tar@npm:^7.4.3, tar@npm:^7.5.2":
|
||||
version: 7.5.22
|
||||
resolution: "tar@npm:7.5.22"
|
||||
dependencies:
|
||||
"@isaacs/fs-minipass": "npm:^4.0.0"
|
||||
chownr: "npm:^3.0.0"
|
||||
minipass: "npm:^7.1.2"
|
||||
minizlib: "npm:^3.1.0"
|
||||
yallist: "npm:^5.0.0"
|
||||
checksum: 10c0/4df4335c6d958b76adf1eaced55889dec3ca1c51f450658a074af80694bb0d9c154a8e93fdf4da617372d1575b121295379993961bbe4cd4b0867c0e5689846a
|
||||
checksum: 10c0/1311f6be85a8157ac4c9147bae43e13923d2a1aae15e4aa1bd5239e4e03d2cf53cfe103dde7f35832fbb4c938b042856bc8e9a0afd29abd05e2d1608788c4fea
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"tar@npm:^7.4.3, tar@npm:^7.5.2":
|
||||
version: 7.5.11
|
||||
resolution: "tar@npm:7.5.11"
|
||||
dependencies:
|
||||
"@isaacs/fs-minipass": "npm:^4.0.0"
|
||||
chownr: "npm:^3.0.0"
|
||||
minipass: "npm:^7.1.2"
|
||||
minizlib: "npm:^3.1.0"
|
||||
yallist: "npm:^5.0.0"
|
||||
checksum: 10c0/b6bb420550ef50ef23356018155e956cd83282c97b6128d8d5cfe5740c57582d806a244b2ef0bf686a74ce526babe8b8b9061527623e935e850008d86d838929
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"tinyexec@npm:^1.2.4":
|
||||
version: 1.2.4
|
||||
resolution: "tinyexec@npm:1.2.4"
|
||||
checksum: 10c0/153b8db6b080194b558ff145b9cffc36b80a6e07babd644dcfbe49c807eee668c876049d28bdee90b96304476f883352f2dad91b3f86bc23832532f4363e66ff
|
||||
"tinyexec@npm:^1.3.1":
|
||||
version: 1.3.1
|
||||
resolution: "tinyexec@npm:1.3.1"
|
||||
checksum: 10c0/c590369cb3fa73cc18a3998caec8a00f9712d91309c881be3ac52b160fb2f80c7b1fbf3591858ab6abab47ad55385b0c86ec19982e32441a01f55298dab9ccd2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -5618,10 +5475,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"tinypool@npm:2.1.0":
|
||||
version: 2.1.0
|
||||
resolution: "tinypool@npm:2.1.0"
|
||||
checksum: 10c0/9fb1c760558c6264e0f4cfde96a63b12450b43f1730fbe6274aa24ddbdf488745c08924d0dea7a1303b47d555416a6415f2113898c69b6ecf731e75ac95238a5
|
||||
"tinypool@npm:2.1.2":
|
||||
version: 2.1.2
|
||||
resolution: "tinypool@npm:2.1.2"
|
||||
checksum: 10c0/4d8c0cf2d9710eff4aa9cb4318fecaac09d847f1d7dce3eb314d36bea35ed23f754315592a3c00c1d0aa21d9eb4a1f69e84c69feb8517b4cd769e1e0a7ee308e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in new issue
Block a user