@perceptimagery/dita-configurator-staging 0.1.4003 → 0.1.5000
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 +3 -5
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
# Dita-configurator
|
|
1
|
+
# Dita-configurator
|
|
2
2
|
|
|
3
|
-
| An embeddable package for
|
|
3
|
+
| An embeddable package for Dita's 3D configurator
|
|
4
4
|
|
|
5
|
-
## Documentation
|
|
6
|
-
|
|
7
|
-
<https://docs.sprie.io/docs/?/>
|
|
8
5
|
|
|
9
6
|
## Usage
|
|
10
7
|
|
|
11
8
|
Prod: `https://cdn.jsdelivr.net/npm/@perceptimagery/dita-configurator@latest`
|
|
9
|
+
|
|
12
10
|
Dev : `https://cdn.jsdelivr.net/npm/@perceptimagery/dita-configurator-staging@latest`
|
|
13
11
|
|
|
14
12
|
```HTML
|
package/dist/index.js
CHANGED
|
@@ -111,7 +111,7 @@ var __publicField = (obj, key, value) => {
|
|
|
111
111
|
host: "https://api.sprie.io"
|
|
112
112
|
};
|
|
113
113
|
const config = Object.freeze(Config$1);
|
|
114
|
-
const version = "0.1.
|
|
114
|
+
const version = "0.1.5000";
|
|
115
115
|
class APIServiceFactory {
|
|
116
116
|
constructor(fetcher) {
|
|
117
117
|
__publicField(this, "isAuthenticated");
|
|
@@ -40793,7 +40793,7 @@ var __publicField = (obj, key, value) => {
|
|
|
40793
40793
|
) }),
|
|
40794
40794
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "lens-details", children: [
|
|
40795
40795
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "lensName", children: selectedLens && selectedLens.name }),
|
|
40796
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "lensColor", children: selectedLens && selectedLens.
|
|
40796
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "lensColor", children: selectedLens && selectedLens.metadata[0].value })
|
|
40797
40797
|
] })
|
|
40798
40798
|
] }),
|
|
40799
40799
|
!isMobileView && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -40949,9 +40949,11 @@ var __publicField = (obj, key, value) => {
|
|
|
40949
40949
|
id: "Checkout-button",
|
|
40950
40950
|
onClick: () => {
|
|
40951
40951
|
if (selectedFrame && selectedLens) {
|
|
40952
|
+
const baseCurve = selectedFrame.metadata.find((item) => item.key == "baseCurve");
|
|
40953
|
+
const lensSkuWithBase = baseCurve ? selectedLens.sku + "-" + baseCurve.value : selectedLens.sku;
|
|
40952
40954
|
const eventData = {
|
|
40953
40955
|
frameSku: selectedFrame.sku,
|
|
40954
|
-
lensSku:
|
|
40956
|
+
lensSku: lensSkuWithBase
|
|
40955
40957
|
};
|
|
40956
40958
|
customEvent.emitEvent("onAddToCart", eventData);
|
|
40957
40959
|
}
|