
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@prestashopcorp/accounts-components
Advanced tools
We recommend using the Web component by loading the library through CDN to receive the latest components updates
To load a hosted library, copy and paste the HTML snippet for that library (shown below) in your web page.
# To load latest minor version 5
<script src="https://unpkg.com/@prestashopcorp/accounts-components@0" defer></script>
# To load latest version
<script src="https://unpkg.com/@prestashopcorp/accounts-components" defer></script>
To use the @prestashopcorp/accounts-components, you need a prestashop-accounts html tag, when it's in the page you can then call the init function of psaccountsVue
<prestashop-accounts></prestashop-accounts>
<script>
window.psaccountsVue.init();
</script>
If you want to use the component in VueJS you will need to load VueJS through cdn too
<div id="app"></div>
<script src="https://unpkg.com/@prestashopcorp/accounts-components@5/psaccountsVue.umd.js" defer></script>
<script type="module">
import { createApp } from "https://unpkg.com/vue@3.2.26/dist/vue.esm-browser.js";
const App = {
data() {
return {
name: "John",
};
},
template: `<div>
<h1>Hello {{ name }}</h1>
<prestashop-accounts></prestashop-accounts>
</div>`,
mounted() {
window.psaccountsVue.init();
},
};
createApp(App).mount("#app");
</script>
First you need to install the package using your package manager
# chose your favorite package manager
# NPM
$ npm install @prestashopcorp/accounts-components --save
# Yarn
$ yarn add @prestashopcorp/accounts-components
# pnpm
$ pnpm install @prestashopcorp/accounts-components
Then you need to choose a way to integrate your component
<template>
<div>
<prestashop-accounts></prestashop-accounts>
</div>
</template>
<script>
import PsAccounts from "@prestashopcorp/accounts-components"
PsAccounts.init();
// OR if you want to use a custom name for the tag
import { PsAccountsWebComponent } from "@prestashopcorp/accounts-components"
customElements.define('your-tag-name', PsAccountsWebComponent)
</script>
<template>
<div>
<PsAccounts />
</div>
</template>
<script setup>
import { PsAccounts } from "@prestashopcorp/accounts-components";
</script>
Compatible version of @prestashopcorp/accounts-components with PsAccounts
Ps Accounts Module | Vue Components minimum version | Vue components maximum version |
---|---|---|
5.0 | 2.0.0 | 2.0.4 |
5.0.2 | 2.0.0 | 2.0.4 |
5.0.3 | 2.0.0 | 2.0.4 |
>=5.1.0 | 3.0.0 | 3.0.4 |
FAQs
## Usage
We found that @prestashopcorp/accounts-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.