Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Mar 8, 2023
1 parent 4f239e2 commit 23e291e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 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.1.0",
"version": "1.2.0",
"$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.1.0",
"version": "1.2.0",
"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.75.0"
},
"dependencies": {
"@commercelayer/drop-in.js": "workspace:^1.1.0",
"@commercelayer/drop-in.js": "workspace:^1.2.0",
"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/drop-in.js@1.1.0/dist/drop-in/drop-in.esm.js).
1. Import the library from the [CDN](https://cdn.jsdelivr.net/npm/@commercelayer/drop-in.js@1.2.0/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/drop-in.js@1.1.0/dist/drop-in/drop-in.esm.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@commercelayer/drop-in.js@1.2.0/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/drop-in.js@1.1.0/dist/drop-in/drop-in.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/@commercelayer/drop-in.js@1.2.0/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/drop-in.js@1.1.0/dist/drop-in/minicart.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/@commercelayer/drop-in.js@1.2.0/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.1.0",
"version": "1.2.0",
"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
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion replace-jsdelivr.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This script will replace all "version number" occurrences from jsDelivr urls so that it will point to the latest version.
* This script runs on "version lifecycle" - https://github.com/lerna/lerna/blob/main/commands/version/README.md#lifecycle-scripts
*
* @example https://cdn.jsdelivr.net/npm/@commercelayer/drop-in.js@1.1.0/dist/drop-in/drop-in.esm.js
* @example https://cdn.jsdelivr.net/npm/@commercelayer/drop-in.js@1.2.0/dist/drop-in/drop-in.esm.js
*/

const { sync } = require('replace-in-file')
Expand Down

0 comments on commit 23e291e

Please sign in to comment.