Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
malessani committed May 16, 2023
1 parent 58a9703 commit 199cbaf
Show file tree
Hide file tree
Showing 6 changed files with 2,636 additions and 2,596 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.3.1",
"version": "1.3.2",
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": false,
"npmClient": "pnpm",
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docs",
"private": true,
"version": "1.3.1",
"version": "1.3.2",
"scripts": {
"start": "concurrently -n sass,app -c 'bgMagenta,bgMagenta' 'pnpm build:sass:watch' 'start-storybook -p 6006'",
"build:copy": "cp -r ../drop-in/dist public/",
Expand Down Expand Up @@ -38,7 +38,7 @@
"webpack": "^5.76.2"
},
"dependencies": {
"@commercelayer/drop-in.js": "workspace:^1.3.1",
"@commercelayer/drop-in.js": "workspace:^1.3.2",
"lit-html": "^2.6.1"
}
}
8 changes: 4 additions & 4 deletions packages/docs/stories/getting-started.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { linkTo } from '@storybook/addon-links'

Assuming you already have a Commerce Layer account ([sign up](https://dashboard.commercelayer.io/sign_up) if you don't — it's free!) and your organization properly set up and filled with real or sample data (check our [onboarding documentation](https://docs.commercelayer.io/core/welcome) for more information about that), you can get easily started with Commerce Layer `drop-in.js` in two simple steps:

1. Import the library from the [CDN](https://cdn.jsdelivr.net/npm/@commercelayer/[email protected].1/dist/drop-in/drop-in.esm.js).
1. Import the library from the [CDN](https://cdn.jsdelivr.net/npm/@commercelayer/[email protected].2/dist/drop-in/drop-in.esm.js).
2. Declare a global variable called `commercelayerConfig` and set the following attributes.

| Attribute | Type | Required | Description |
Expand All @@ -22,7 +22,7 @@ Assuming you already have a Commerce Layer account ([sign up](https://dashboard.
The final result should be similar to the code snippet below:

```html dark
<script type="module" src="https://cdn.jsdelivr.net/npm/@commercelayer/[email protected].1/dist/drop-in/drop-in.esm.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@commercelayer/[email protected].2/dist/drop-in/drop-in.esm.js"></script>
<script>
(function() {
Expand All @@ -44,15 +44,15 @@ Assuming you already have a Commerce Layer account ([sign up](https://dashboard.
The drop-in library is shipped unstyled, so that you can apply your own styles. We provide some simple styling. If you're happy with that or you just want to speed up the set up process just add an additional `link` tag to your HTML code as follows:

```html dark
<link href="https://cdn.jsdelivr.net/npm/@commercelayer/[email protected].1/dist/drop-in/drop-in.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/@commercelayer/[email protected].2/dist/drop-in/drop-in.css" rel="stylesheet" />
```

### `minicart.css`

The [**minicart**](?path=/docs/components-cart-cl-cart--minicart) version of the cart is unstyled and hidden by default. Since its behavior is achieved mostly via CSS, you have to write your own to style it. You can start from scratch, or import a minimal set of styles and take it from there. To do that, just add an additional `link` tag to your HTML code as follows:

```html dark
<link href="https://cdn.jsdelivr.net/npm/@commercelayer/[email protected].1/dist/drop-in/minicart.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/@commercelayer/[email protected].2/dist/drop-in/minicart.css" rel="stylesheet" />
```


Expand Down
2 changes: 1 addition & 1 deletion packages/drop-in/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commercelayer/drop-in.js",
"version": "1.3.1",
"version": "1.3.2",
"description": "Transform any plain HTML page into an enterprise-grade static commerce website, with almost no coding required.",
"main": "dist/index.cjs.js",
"module": "dist/index.js",
Expand Down
Loading

0 comments on commit 199cbaf

Please sign in to comment.