@perceptimagery/dita-configurator-staging 0.3.2001 → 0.3.2002
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/dist/index.js +18 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var __publicField = (obj, key, value) => {
|
|
|
112
112
|
host: "https://api.sprie.io"
|
|
113
113
|
};
|
|
114
114
|
const config$1 = Object.freeze(Config$2);
|
|
115
|
-
const version$1 = "0.3.
|
|
115
|
+
const version$1 = "0.3.2002";
|
|
116
116
|
function modifyLensArr$1(arr, element) {
|
|
117
117
|
const index2 = arr.findIndex((e) => e["sku"] === element["sku"]);
|
|
118
118
|
if (index2 !== -1) {
|
|
@@ -43320,7 +43320,9 @@ bool bvhIntersectFirstHit(
|
|
|
43320
43320
|
style: {
|
|
43321
43321
|
border: "0",
|
|
43322
43322
|
cursor: modelLoading ? "default" : "pointer",
|
|
43323
|
-
opacity: (selectedFrame == null ? void 0 : selectedFrame._id) === e._id ? "1" : ".6"
|
|
43323
|
+
opacity: (selectedFrame == null ? void 0 : selectedFrame._id) === e._id ? "1" : ".6",
|
|
43324
|
+
width: isMobileView ? 45 : 60,
|
|
43325
|
+
height: isMobileView ? 45 : 60
|
|
43324
43326
|
},
|
|
43325
43327
|
onClick: () => onChangeFrame(e),
|
|
43326
43328
|
disabled: modelLoading,
|
|
@@ -43329,8 +43331,7 @@ bool bvhIntersectFirstHit(
|
|
|
43329
43331
|
{
|
|
43330
43332
|
src: e.variantImage,
|
|
43331
43333
|
alt: e.name + "image",
|
|
43332
|
-
|
|
43333
|
-
height: 60,
|
|
43334
|
+
className: `sprie-config-image ${isMobileView ? "mobile-view" : ""}`,
|
|
43334
43335
|
style: {
|
|
43335
43336
|
transform: (selectedFrame == null ? void 0 : selectedFrame._id) === e._id ? "scale(1.2,1.2)" : "scale(1,1)"
|
|
43336
43337
|
}
|
|
@@ -43366,7 +43367,9 @@ bool bvhIntersectFirstHit(
|
|
|
43366
43367
|
style: {
|
|
43367
43368
|
border: "0",
|
|
43368
43369
|
cursor: modelLoading ? "default" : "pointer",
|
|
43369
|
-
opacity: (selectedLens == null ? void 0 : selectedLens._id) === e._id ? "1" : ".6"
|
|
43370
|
+
opacity: (selectedLens == null ? void 0 : selectedLens._id) === e._id ? "1" : ".6",
|
|
43371
|
+
width: isMobileView ? 45 : 60,
|
|
43372
|
+
height: isMobileView ? 45 : 60
|
|
43370
43373
|
},
|
|
43371
43374
|
onClick: () => onChangeLens(e),
|
|
43372
43375
|
disabled: modelLoading,
|
|
@@ -43405,12 +43408,14 @@ bool bvhIntersectFirstHit(
|
|
|
43405
43408
|
}) {
|
|
43406
43409
|
const [input, setInput] = reactExports.useState("");
|
|
43407
43410
|
const [isChecked, setIsChecked] = reactExports.useState(false);
|
|
43411
|
+
const [isBlur, setIsBlur] = reactExports.useState(false);
|
|
43408
43412
|
reactExports.useEffect(() => {
|
|
43409
43413
|
onChecked(isChecked);
|
|
43410
43414
|
});
|
|
43411
43415
|
reactExports.useEffect(() => {
|
|
43412
|
-
|
|
43413
|
-
|
|
43416
|
+
if (isBlur)
|
|
43417
|
+
onTextAdded(input);
|
|
43418
|
+
}, [isBlur]);
|
|
43414
43419
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43415
43420
|
"div",
|
|
43416
43421
|
{
|
|
@@ -43458,7 +43463,9 @@ bool bvhIntersectFirstHit(
|
|
|
43458
43463
|
onChange: (e) => setInput(e.target.value),
|
|
43459
43464
|
maxLength: 15,
|
|
43460
43465
|
style: { padding: "0.7rem" },
|
|
43461
|
-
disabled: !isChecked
|
|
43466
|
+
disabled: !isChecked,
|
|
43467
|
+
onBlur: (e) => setIsBlur(true),
|
|
43468
|
+
onFocus: (e) => setIsBlur(false)
|
|
43462
43469
|
}
|
|
43463
43470
|
),
|
|
43464
43471
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sprie-config-engraving-inputInfo", children: `${input.length}/15 characters` }),
|
|
@@ -43654,7 +43661,9 @@ bool bvhIntersectFirstHit(
|
|
|
43654
43661
|
style: {
|
|
43655
43662
|
border: "0",
|
|
43656
43663
|
cursor: modelLoading ? "default" : "pointer",
|
|
43657
|
-
opacity: (selectedOrbital == null ? void 0 : selectedOrbital._id) === e._id ? "1" : ".6"
|
|
43664
|
+
opacity: (selectedOrbital == null ? void 0 : selectedOrbital._id) === e._id ? "1" : ".6",
|
|
43665
|
+
width: isMobileView ? 45 : 60,
|
|
43666
|
+
height: isMobileView ? 45 : 60
|
|
43658
43667
|
},
|
|
43659
43668
|
onClick: () => onChangeOrbital(e),
|
|
43660
43669
|
disabled: modelLoading,
|
|
@@ -43798,7 +43807,6 @@ bool bvhIntersectFirstHit(
|
|
|
43798
43807
|
setSelectedOrbital(requestedOrbital);
|
|
43799
43808
|
};
|
|
43800
43809
|
const onEngravingChecked = (checked) => {
|
|
43801
|
-
console.log(checked);
|
|
43802
43810
|
};
|
|
43803
43811
|
const onEngravingTextAdded = (text) => {
|
|
43804
43812
|
console.log(text);
|