@artaio/arta-browser 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,3 +7,26 @@ Our Estimates widget allows you to display non-bookable shipping estimates to yo
7
7
  - Works across devices - mobile friendly layout works well across a wide variety of view ports.
8
8
  - Insurance & White Glove Services - estimates will reflect Insurance and white glove services if requested.
9
9
  - Global - get cost estimates for shipping across the globe.
10
+
11
+ ## Installation
12
+
13
+ ### With `<script>` tag
14
+
15
+ Copy and paste the following snippet before the closing `</body>` HTML tag wherever you want the Estimates widget available for your users (typically on your product pages):
16
+
17
+ ```
18
+ <script src="https://cdn.jsdelivr.net/npm/@artaio/arta-browser@latest/dist/bundle.js"></script>
19
+ ```
20
+ And once the above script is loaded the `Arta` object should be available.
21
+ ### With `npm`
22
+
23
+ In your project run
24
+ ```
25
+ npm install @artaio/arta-browser
26
+ ```
27
+
28
+ And you can then import `Arta` object for example:
29
+
30
+ ```js
31
+ import Arta from '@artaio/arta-browser';
32
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artaio/arta-browser",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "",
5
5
  "source": "lib/index.ts",
6
6
  "main": "./dist/index.js",