Обновлены зависимости

This commit is contained in:
Valentin Silyutin
2025-11-12 20:15:49 +04:00
parent 19990b507e
commit 4e863ab1c1
15 changed files with 1078 additions and 957 deletions

View File

@@ -1,6 +1,7 @@
.vscode
.yarn .yarn
.editorconfig .editorconfig
.pnp.cjs .pnp.cjs
.pnp.loader.mjs .pnp.loader.mjs
.prettierrc
.yarnrc.yml .yarnrc.yml
prettier.config.js

View File

@@ -1,6 +0,0 @@
{
"printWidth": 120,
"tabWidth": 4,
"singleQuote": true,
"bracketSpacing": false
}

6
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode"
]
}

7
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs"
}

942
.yarn/releases/yarn-4.11.0.cjs vendored Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

5
.yarn/sdks/integrations.yml vendored Normal file
View File

@@ -0,0 +1,5 @@
# This file is automatically generated by @yarnpkg/sdks.
# Manual changes might be lost!
integrations:
- vscode

32
.yarn/sdks/prettier/bin/prettier.cjs vendored Executable file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin/prettier.cjs
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;
// Defer to the real prettier/bin/prettier.cjs your application uses
module.exports = wrapWithUserWrapper(absRequire(`prettier/bin/prettier.cjs`));

32
.yarn/sdks/prettier/index.cjs vendored Normal file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier
require(absPnpApiPath).setup();
if (isPnpLoaderEnabled && register) {
register(pathToFileURL(absPnpLoaderPath));
}
}
}
const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;
// Defer to the real prettier your application uses
module.exports = wrapWithUserWrapper(absRequire(`prettier`));

7
.yarn/sdks/prettier/package.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"name": "prettier",
"version": "3.6.2-sdk",
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
}

View File

@@ -2,4 +2,4 @@ compressionLevel: mixed
enableGlobalCache: false enableGlobalCache: false
yarnPath: .yarn/releases/yarn-4.6.0.cjs yarnPath: .yarn/releases/yarn-4.11.0.cjs

View File

@@ -216,7 +216,11 @@ const init = async (items = [], options = {}, index = 0) => {
return ` return `
<div class="advdominion-lg__item advdominion-lg__item_video swiper-slide"> <div class="advdominion-lg__item advdominion-lg__item_video swiper-slide">
<div class="advdominion-lg__video-wrapper"> <div class="advdominion-lg__video-wrapper">
<iframe class="advdominion-lg__video advdominion-lg__video_vk" src="https://vkvideo.ru/video_ext.php?oid=${videoId[1]}&id=${videoId[2]}&hd=4&js_api=1" allow="autoplay; encrypted-media; fullscreen; picture-in-picture; screen-wake-lock;"></iframe> <iframe
class="advdominion-lg__video advdominion-lg__video_vk"
src="https://vkvideo.ru/video_ext.php?oid=${videoId[1]}&id=${videoId[2]}&hd=4&js_api=1"
allow="autoplay; encrypted-media; fullscreen; picture-in-picture; screen-wake-lock;">
</iframe>
</div> </div>
${caption ? `<div class="advdominion-lg__caption">${caption}</div>` : ''} ${caption ? `<div class="advdominion-lg__caption">${caption}</div>` : ''}
</div> </div>
@@ -239,7 +243,11 @@ const init = async (items = [], options = {}, index = 0) => {
return ` return `
<div class="advdominion-lg__item advdominion-lg__item_video swiper-slide"> <div class="advdominion-lg__item advdominion-lg__item_video swiper-slide">
<div class="advdominion-lg__video-wrapper"> <div class="advdominion-lg__video-wrapper">
<iframe class="advdominion-lg__video advdominion-lg__video_rt" src="https://rutube.ru/play/embed/${videoId[1]}" allow="autoplay; encrypted-media; fullscreen; picture-in-picture; screen-wake-lock;"></iframe> <iframe
class="advdominion-lg__video advdominion-lg__video_rt"
src="https://rutube.ru/play/embed/${videoId[1]}"
allow="autoplay; encrypted-media; fullscreen; picture-in-picture; screen-wake-lock;">
</iframe>
</div> </div>
${caption ? `<div class="advdominion-lg__caption">${caption}</div>` : ''} ${caption ? `<div class="advdominion-lg__caption">${caption}</div>` : ''}
</div> </div>
@@ -342,11 +350,14 @@ const init = async (items = [], options = {}, index = 0) => {
const swiper = new Swiper( const swiper = new Swiper(
gallery.querySelector('.advdominion-lg__container'), gallery.querySelector('.advdominion-lg__container'),
Object.assign({ Object.assign(
{
modules: [...new Set([Navigation, Pagination, ...(options.swiper?.modules || [])])], modules: [...new Set([Navigation, Pagination, ...(options.swiper?.modules || [])])],
init: false, init: false,
initialSlide: index initialSlide: index,
}, options.swiper), },
options.swiper,
),
); );
swiper.on('init', function () { swiper.on('init', function () {

View File

@@ -2,7 +2,7 @@
"name": "@advdominion/lightbox-gallery", "name": "@advdominion/lightbox-gallery",
"version": "3.2.0", "version": "3.2.0",
"type": "module", "type": "module",
"packageManager": "yarn@4.6.0", "packageManager": "yarn@4.11.0",
"main": "index.js", "main": "index.js",
"repository": { "repository": {
"type": "git", "type": "git",
@@ -13,6 +13,9 @@
"@advdominion/get-scrollbar-width": "^2.0.0" "@advdominion/get-scrollbar-width": "^2.0.0"
}, },
"peerDependencies": { "peerDependencies": {
"swiper": "^11.0.0" "swiper": "^12.0.0"
},
"devDependencies": {
"prettier": "^3.6.2"
} }
} }

5
prettier.config.js Normal file
View File

@@ -0,0 +1,5 @@
export default {
printWidth: 120,
tabWidth: 4,
singleQuote: true,
};

View File

@@ -17,7 +17,17 @@ __metadata:
resolution: "@advdominion/lightbox-gallery@workspace:." resolution: "@advdominion/lightbox-gallery@workspace:."
dependencies: dependencies:
"@advdominion/get-scrollbar-width": "npm:^2.0.0" "@advdominion/get-scrollbar-width": "npm:^2.0.0"
prettier: "npm:^3.6.2"
peerDependencies: peerDependencies:
swiper: ^11.0.0 swiper: ^11.0.0
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"prettier@npm:^3.6.2":
version: 3.6.2
resolution: "prettier@npm:3.6.2"
bin:
prettier: bin/prettier.cjs
checksum: 10/1213691706bcef1371d16ef72773c8111106c3533b660b1cc8ec158bd109cdf1462804125f87f981f23c4a3dba053b6efafda30ab0114cc5b4a725606bb9ff26
languageName: node
linkType: hard