@perceptimagery/dita-configurator-staging 0.3.2 → 0.3.2001

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/dist/index.js +65 -44
  2. 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.2";
115
+ const version$1 = "0.3.2001";
116
116
  function modifyLensArr$1(arr, element) {
117
117
  const index2 = arr.findIndex((e) => e["sku"] === element["sku"]);
118
118
  if (index2 !== -1) {
@@ -43398,7 +43398,11 @@ bool bvhIntersectFirstHit(
43398
43398
  );
43399
43399
  }
43400
43400
  const index$2 = "";
43401
- function LaserEngraving({ heading, onChecked, onTextAdded }) {
43401
+ function LaserEngraving({
43402
+ heading,
43403
+ onChecked,
43404
+ onTextAdded
43405
+ }) {
43402
43406
  const [input, setInput] = reactExports.useState("");
43403
43407
  const [isChecked, setIsChecked] = reactExports.useState(false);
43404
43408
  reactExports.useEffect(() => {
@@ -43407,44 +43411,62 @@ bool bvhIntersectFirstHit(
43407
43411
  reactExports.useEffect(() => {
43408
43412
  onTextAdded(input);
43409
43413
  }, [input]);
43410
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sprie-config-engraving-block", style: { marginTop: ".5rem" }, children: [
43411
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: ".8rem" }, children: [
43412
- /* @__PURE__ */ jsxRuntimeExports.jsx(
43413
- "input",
43414
- {
43415
- type: "checkbox",
43416
- className: "sprie-config-engraving-checkbox",
43417
- onChange: (e) => {
43418
- setIsChecked(e.target.checked);
43419
- },
43420
- checked: isChecked
43421
- }
43422
- ),
43423
- /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { style: { fontSize: ".9rem", color: "#4d4d4d", fontWeight: "500" }, children: [
43424
- "Add ",
43425
- "Laser Engraving",
43426
- " ",
43427
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { fontWeight: "400" }, children: "(OPTIONAL)" })
43428
- ] })
43429
- ] }),
43430
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sprie-config-engraving-inputField-block", children: [
43431
- /* @__PURE__ */ jsxRuntimeExports.jsx(
43432
- "input",
43433
- {
43434
- type: "text",
43435
- className: "sprie-config-engraving-inputField",
43436
- placeholder: "ADD CUSTOM TEXT",
43437
- value: input,
43438
- onChange: (e) => setInput(e.target.value),
43439
- maxLength: 15,
43440
- style: { padding: "0.7rem" },
43441
- disabled: !isChecked
43442
- }
43443
- ),
43444
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sprie-config-engraving-inputInfo", children: `${input.length}/15 characters` }),
43445
- /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "#", className: "sprie-config-engraving-link", children: "About Custom Laser Engraving" })
43446
- ] })
43447
- ] });
43414
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
43415
+ "div",
43416
+ {
43417
+ className: "sprie-config-engraving-block",
43418
+ style: { marginTop: ".5rem" },
43419
+ children: [
43420
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: ".8rem" }, children: [
43421
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
43422
+ "input",
43423
+ {
43424
+ type: "checkbox",
43425
+ className: "sprie-config-engraving-checkbox",
43426
+ onChange: (e) => {
43427
+ setIsChecked(e.target.checked);
43428
+ },
43429
+ checked: isChecked
43430
+ }
43431
+ ),
43432
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
43433
+ "p",
43434
+ {
43435
+ style: {
43436
+ fontSize: ".9rem",
43437
+ color: "#4d4d4d",
43438
+ fontWeight: "500",
43439
+ margin: "0"
43440
+ },
43441
+ children: [
43442
+ "Add ",
43443
+ "Laser Engraving",
43444
+ " ",
43445
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { fontWeight: "400" }, children: "(OPTIONAL)" })
43446
+ ]
43447
+ }
43448
+ )
43449
+ ] }),
43450
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sprie-config-engraving-inputField-block", children: [
43451
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
43452
+ "input",
43453
+ {
43454
+ type: "text",
43455
+ className: "sprie-config-engraving-inputField",
43456
+ placeholder: "ADD CUSTOM TEXT",
43457
+ value: input,
43458
+ onChange: (e) => setInput(e.target.value),
43459
+ maxLength: 15,
43460
+ style: { padding: "0.7rem" },
43461
+ disabled: !isChecked
43462
+ }
43463
+ ),
43464
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sprie-config-engraving-inputInfo", children: `${input.length}/15 characters` }),
43465
+ /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "#", className: "sprie-config-engraving-link", children: "About Custom Laser Engraving" })
43466
+ ] })
43467
+ ]
43468
+ }
43469
+ );
43448
43470
  }
43449
43471
  const index$1 = "";
43450
43472
  function StepTracker({
@@ -43685,7 +43707,7 @@ bool bvhIntersectFirstHit(
43685
43707
  const [showAddToCart, setShowAddToCart] = reactExports.useState(false);
43686
43708
  const [viewerHeight, setViewerHeight] = reactExports.useState();
43687
43709
  const mainContainerRef = reactExports.useRef(null);
43688
- const mainHeight = (_a2 = mainContainerRef.current) == null ? void 0 : _a2.clientHeight;
43710
+ (_a2 = mainContainerRef.current) == null ? void 0 : _a2.clientHeight;
43689
43711
  const domInstance = reactExports.useRef();
43690
43712
  domInstance.current = domService;
43691
43713
  const isMobileView = window.innerWidth <= 576;
@@ -43795,11 +43817,10 @@ bool bvhIntersectFirstHit(
43795
43817
  lensList && setSelectedLens(lensList[0]);
43796
43818
  orbitalList && setSelectedOrbital(orbitalList[0]);
43797
43819
  }, [frameList, lensList, orbitalList]);
43798
- console.log(mainHeight);
43799
43820
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { id: "Sprie-config-Main-Container", ref: mainContainerRef, children: [
43800
43821
  /* @__PURE__ */ jsxRuntimeExports.jsxs("header", { id: "Sprie-config-Header", children: [
43801
43822
  /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: ditaLogo, alt: "dita-logo", width: 97, height: 20 }),
43802
- /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "sprie-config-Header-groupName", children: [
43823
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { style: { margin: "0" }, className: "sprie-config-Header-groupName", children: [
43803
43824
  orgName,
43804
43825
  " CUSTOMIZER"
43805
43826
  ] })
@@ -43835,7 +43856,7 @@ bool bvhIntersectFirstHit(
43835
43856
  top: isMobileView || !showAddToCart ? "-3rem" : "-8.5rem"
43836
43857
  },
43837
43858
  children: [
43838
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { marginRight: ".8rem" }, children: "$925.00 USD" }),
43859
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { margin: " 0.8rem 0 0" }, children: "$925.00 USD" }),
43839
43860
  !isMobileView && showAddToCart && /* @__PURE__ */ jsxRuntimeExports.jsx(AddToCartBtn, {}),
43840
43861
  showAddToCart && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { marginRight: ".8rem", fontSize: ".6rem" }, children: "Please Allow 7-10 Days for Customization Process." })
43841
43862
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perceptimagery/dita-configurator-staging",
3
- "version": "0.3.2",
3
+ "version": "0.3.2001",
4
4
  "author": "Rohan Satpute <rohan@perceptimagery.com>",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",