Security News
Node.js Takes Steps Towards Removing Corepack
Node.js is taking steps towards removing Corepack from its distribution, aiming for changes in the next major release.
@shopware-pwa/helpers-next
Advanced tools
Shopware helpers for accessing API data
Readme
Welcome to @shopware-pwa/helpers-next
package.
For getting started documentation visit https://frontends.shopware.com/
Documentation specific for this package: helpers
The helpersCssClasses
variable, defined in the cms/layoutClasses.ts
helper file, comprises an array of class names utilized within the CMS.
To enhance type support, a union type HelpersCssClasses
is defined, which encompasses all class names present in the helpersCssClasses
array.
const visibilityMap: Record<CmsVisibility, HelpersCssClasses> = {
mobile: "max-md:hidden",
tablet: "md:max-lg:hidden",
desktop: "lg:hidden",
};
These classes can be integrated into a custom template, thereby ensuring consistency across different packages. For example as a safelist
classes in unocss configuration file
import { helpersCssClasses } from "@shopware-pwa/helpers-next";
export default defineConfig({
safelist: helpersCssClasses,
});
Full changelog for stable version is available here
1566f7a
Thanks @patzick! - Read more about new major release: https://github.com/shopware/frontends/discussions/965#857 864616f
Thanks @mdanilowicz! - Add isMaintenanceMode to check if backend is available
#508 a92941e
Thanks @mdanilowicz! - Add accessGranted
property for the getMedia helper
#477 487d991
Thanks @mdanilowicz! - Remove "@shopware-pwa/types" dependency and replace it with generic types
#582 97b5949
Thanks @mdanilowicz! - Export css classes as a separate file
6b54268
Thanks @BrocksiNet! - added buildUrlPrefix
, which perviously was internal helper of the @shopware/cms-base
packageFAQs
Shopware helpers for accessing API data
The npm package @shopware-pwa/helpers-next receives a total of 0 weekly downloads. As such, @shopware-pwa/helpers-next popularity was classified as not popular.
We found that @shopware-pwa/helpers-next demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Node.js is taking steps towards removing Corepack from its distribution, aiming for changes in the next major release.
Security News
OpenSSF has released a guide to help package repositories adopt Trusted Publishers, which enhances security by using short-lived identity tokens for authentication, reducing the risks associated with long-lived secrets.
Employee Spotlight
Philipp Burckhardt recounts his journey from childhood computer fascinations, to building an e-learning platform at Carnegie Mellon University, and on to his current role at Socket.