shopar-plugin 0.0.4 → 0.0.5-alpha.1
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.
- package/README.md +4 -4
- package/dist/env/default.hdr +0 -0
- package/dist/shopar-deepar.js +1 -1
- package/dist/shopar-plugin.d.ts +1 -1
- package/dist/shopar-plugin.esm.js +1 -1
- package/dist/shopar-plugin.js +1 -1
- package/dist/shopar-true-scale.js +1 -1
- package/package.json +2 -2
- package/dist/env/studio5.hdr +0 -0
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Powered and developed by DeepAR.
|
|
|
21
21
|
|
|
22
22
|
Create an account in the [ShopAR Dashboard](https://dashboard.shopar.ai).
|
|
23
23
|
|
|
24
|
-
Add some models to your account. Make sure the models'
|
|
24
|
+
Add some models to your account. Make sure the models' plugin SKUs match the product IDs on your website.
|
|
25
25
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
@@ -32,7 +32,7 @@ There are two distinct ways of integrating the plugin: via Script tag and via NP
|
|
|
32
32
|
Add the following script to your HTML.
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
|
-
<script src="https://cdn.jsdelivr.net/npm/shopar-plugin@
|
|
35
|
+
<script src="https://cdn.jsdelivr.net/npm/shopar-plugin@{{VERSION}}/dist/shopar-plugin.js"></script>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
It is possible to use a different CDN instead of [jsDelivr](https://www.jsdelivr.com/) (e.g. [cdnjs](https://cdnjs.com/), [unpkg](https://www.unpkg.com/)), or even a relative path if the plugin is distributed as a static asset to your app. Just make sure to set the `baseUrl` parameter accordingly (see [setup options](#shoparpluginsetupoptions) for more details).
|
|
@@ -62,7 +62,7 @@ Paste the following snippet in your HTML.
|
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
- Replace `API_KEY` with your API key. You can find it in the [ShopAR Dashboard](https://dashboard.shopar.ai).
|
|
65
|
-
- Replace `PRODUCT_ID` with the ID of the product. Make sure it matches the
|
|
65
|
+
- Replace `PRODUCT_ID` with the ID of the product. Make sure it matches the plugin SKU of the model in the [ShopAR Dashboard](https://dashboard.shopar.ai).
|
|
66
66
|
- Replace `TARGET_ELEMENT` with the HTML element you wish to embed the plugin's UI into.
|
|
67
67
|
|
|
68
68
|
To change the look-and-feel of the plugin's UI, modify the following CSS classes:
|
|
@@ -117,7 +117,7 @@ Options used for the plugin setup:
|
|
|
117
117
|
- `baseUrl` (optional)
|
|
118
118
|
- Type: `string`
|
|
119
119
|
- If provided, defines where the additional ShopAR plugin files are fetched from.
|
|
120
|
-
- Default value: `https://cdn.jsdelivr.net/npm/shopar-plugin@
|
|
120
|
+
- Default value: `https://cdn.jsdelivr.net/npm/shopar-plugin@{{VERSION}}/dist`
|
|
121
121
|
|
|
122
122
|
## License
|
|
123
123
|
|
|
Binary file
|