
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@mindful-web/marko-web-photoswipe
Advanced tools
Include @mindful-web/marko-web-photoswipe
as a project/website dependency.
Include the Browser plugin.
// your-site/browser/index.js
import PhotoSwipe from '@mindful-web/marko-web-photoswipe/browser';
PhotoSwipe(Browser);
export default Browser;
// your-site/server/styles/index.scss
@import "@mindful-web/marko-web-photoswipe/scss/main";
$pswp__root-z-index: $theme-site-header-z-index + 1 !default;
@import "@mindful-web/marko-web-photoswipe/scss/main";
You must specify a body gallery ID as well as an image selector.
<default-theme-page-contents attrs={ "data-gallery-id": content.id }>
<marko-web-page-image width=720 obj=content.primaryImage />
<marko-web-content-body obj=content />
</default-theme-page-contents>
import { getAsArray } from "@mindful-web/object-path";
$ const images = resolved.getEdgeNodesFor("images");
<marko-web-photoswipe-images images=images>
<@props thumbnail-click-selectors=`[data-gallery-id="${id}"] [data-image-id]` />
</marko-web-photoswipe-images>
const gql = require('graphql-tag');
module.exports = gql`
fragment ContentPageFragment on Content {
id
name
images(input:{ pagination: { limit: 100 }, sort: { order: values } }) {
edges {
node {
id
src
alt
displayName
caption
credit
}
}
}
}
`;
FAQs
## Installation
The npm package @mindful-web/marko-web-photoswipe receives a total of 207 weekly downloads. As such, @mindful-web/marko-web-photoswipe popularity was classified as not popular.
We found that @mindful-web/marko-web-photoswipe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.