Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@shopware-pwa/helpers-next
Advanced tools
Shopware helpers for accessing API data
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
#871 1566f7a
Thanks @patzick! - Read more about new major release: https://github.com/shopware/frontends/discussions/965
#1056 c729e70
Thanks @patzick! - Removed deprecations from the package:
getProductThumbnailUrl
is removed. Use getSmallestThumbnailUrl
instead._debounce
is removed._parseUrlQuery
is removed.#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 1,167 weekly downloads. As such, @shopware-pwa/helpers-next popularity was classified as 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 2 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.