@crystaldesign/content-box 26.8.0-beta.2 → 26.8.0-beta.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/content-box",
3
- "version": "26.8.0-beta.2",
3
+ "version": "26.8.0-beta.20",
4
4
  "license": "MIT",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -26,5 +26,5 @@
26
26
  },
27
27
  "module": "build/esm/index.js",
28
28
  "types": "./build/types/content-box/src/index.d.ts",
29
- "gitHead": "3ecd4ba05904150342206bf02153d9949e8bfab8"
29
+ "gitHead": "7c7563ae8147f6cef058d613a9245db455f4d080"
30
30
  }
@@ -1,2 +0,0 @@
1
- /*! For license information please see 588.content-box.umd.min.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkCrystaldesignContentBox=self.webpackChunkCrystaldesignContentBox||[]).push([[588],{8588:(n,e,i)=>{i.r(e),i.d(e,{default:()=>I});var t=i(4988),a=i(7363),o=i(8683),r=i(3379),s=i.n(r),l=i(7795),d=i.n(l),u=i(569),c=i.n(u),x=i(3565),m=i.n(x),p=i(9216),g=i.n(p),h=i(4589),v=i.n(h),f=i(8195),w={};w.styleTagTransform=v(),w.setAttributes=m(),w.insert=c().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=g();s()(f.ZP,w);f.ZP&&f.ZP.locals&&f.ZP.locals;var b=i(2182),C=i(7514);const I=function ArViewer(n){var e,i,r,s,l=n.url,d=n.qrCodeUrl,u=n.cameraArButton,c=n.viewerClassName,x=n.arViewerSettings,m=n.isCurrentlyVisible,p="",g=(0,o.useDivaCore)(),h=g.actions,v=g.state,w=v.isFirefox,I=v.isMobile,N=(0,o.useTranslation)().t,y=(0,a.useState)(0),k=(0,t.Z)(y,2),S=k[0],P=k[1],Z=(0,a.useState)(!I),z=(0,t.Z)(Z,2),A=z[0],j=z[1];return(0,a.useEffect)((function(){h.loadModelViewer()}),[]),u&&(p+="scene-viewer quick-look"),(0,C.jsxs)(C.Fragment,{children:[A&&!1!==m&&d&&(0,C.jsxs)("div",{className:f.GY,children:[(0,C.jsx)(b.ZP,{value:d,className:f.Vf}),(0,C.jsx)("div",{className:f.ze,children:N("pdp.ar.qrtext")}),(0,C.jsx)("div",{className:f.zJ,id:"arThumbnailImg",onClick:function onClick(){return j(!1)}})]}),(0,C.jsx)("model-viewer",{src:l,alt:"A AR Model of a Chair","environment-image":"default"===(null==x?void 0:x[S].environmentImage)?void 0:"neutral",shadowIntensity:null!==(e=null==x?void 0:x[S].shadowIntensity)&&void 0!==e?e:1,shadowSoftness:null!==(i=null==x?void 0:x[S].shadowSoftness)&&void 0!==i?i:1,exposure:null!==(r=null==x?void 0:x[S].exposure)&&void 0!==r?r:1,useEnvironmentasSkybox:null!==(s=null==x?void 0:x[S].useEnvironmentasSkybox)&&void 0!==s&&s,"camera-controls":!0,ar:!0,"ar-modes":w?"":p,style:{overscrollBehavior:"none",width:"100%",height:"100%",touchAction:"none"},class:c}),x&&(0,C.jsx)("select",{name:"arViewerSetting",id:"arViewerSettings",style:{position:"absolute",top:"0px"},onChange:function onChange(n){return function onArViewerSettingsChanged(n){P(parseInt(n.target.value))}(n)},children:x.map((function(n,e){return(0,C.jsx)("option",{value:e,children:n.name},e)}))})]})}},8195:(n,e,i)=>{i.d(e,{GY:()=>x,Vf:()=>m,ZP:()=>h,zJ:()=>p,ze:()=>g});var t=i(8081),a=i.n(t),o=i(3645),r=i.n(o),s=i(1667),l=i.n(s),d=new URL(i(140),i.b),u=r()(a()),c=l()(d);u.push([n.id,".index-module--PD1WN {\n position: absolute;\n bottom: 10px;\n right: 0px;\n left: 0px;\n margin-left: auto;\n margin-right: auto;\n width: 361px;\n height: 90px;\n margin-bottom: 10px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0.75rem 0.15rem;\n border-radius: 0.3rem;\n padding-left: 5px;\n padding-right: 5px;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--AWoJQ {\n width: 80px;\n height: 80px;\n}\n\n.index-module--sIl1Z {\n position: absolute;\n cursor: pointer;\n top: 7px;\n right: 7px;\n width: 12px;\n height: 12px;\n background-image: url("+c+");\n background-repeat: no-repeat;\n z-index: 1;\n}\n\n.index-module--NiigZ {\n width: 250px;\n height: 80px;\n word-wrap: break-word;\n font-family: var(--diva-typography-font-family);\n}\n",""]);var x="index-module--PD1WN",m="index-module--AWoJQ",p="index-module--sIl1Z",g="index-module--NiigZ";const h=u},140:n=>{n.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB2aWV3Qm94PSIwIDAgOCA4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNi45OTk5OCAxLjEzNDc3TDEgNy4xMzQ3NU02Ljk5OTk4IDcuMTM0NzdMMSAxLjEzNDc5IiBzdHJva2U9IiNCNkI2QjciIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg=="}}]);
@@ -1 +0,0 @@
1
- /*! filename:588 */