@crystaldesign/content-box 24.13.0-beta.22 → 24.13.0-beta.24
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/build/esm/{index-477cb76d.js → index-469397a3.js} +3 -3
- package/build/esm/{index-1477e2d8.js → index-7b31f80b.js} +1 -1
- package/build/esm/{index-31294a2c.js → index-8d841118.js} +1 -1
- package/build/esm/{index-9c7b6e24.js → index-b2a9eaa3.js} +1 -1
- package/build/esm/{index-4479fee0.js → index-b6b0be43.js} +1 -1
- package/build/esm/{index-66a5703a.js → index-ec37f503.js} +1 -1
- package/build/esm/{index-a7a8a6f4.js → index-f3043af2.js} +19 -16
- package/build/esm/index.js +1 -1
- package/build/esm/{zoom.module-8c6a2c3f.js → zoom.module-ac864538.js} +1 -1
- package/build/types/content-box/src/Context/PdpContext.d.ts.map +1 -1
- package/build/umd/content-box.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
4
|
-
import { s as styleInject } from './index-
|
|
4
|
+
import { s as styleInject } from './index-f3043af2.js';
|
|
5
5
|
import { getLogger, useTranslation, useDivaCore } from '@crystaldesign/diva-core';
|
|
6
6
|
import React, { useMemo, useState, useEffect } from 'react';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
|
-
import ArViewer from './index-
|
|
8
|
+
import ArViewer from './index-b6b0be43.js';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
10
|
import '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import 'mobx-react-lite';
|
|
@@ -66,7 +66,7 @@ var MediaViewer = function MediaViewer(_ref) {
|
|
|
66
66
|
setMedias(mediasData);
|
|
67
67
|
}, [mediasData]);
|
|
68
68
|
useEffect(function () {
|
|
69
|
-
if (!keepOldZoomIcons) import('./zoom.module-
|
|
69
|
+
if (!keepOldZoomIcons) import('./zoom.module-ac864538.js');
|
|
70
70
|
}, []);
|
|
71
71
|
useEffect(function () {
|
|
72
72
|
var _medias$map;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, a as usePdpState, S as STATES, f as footerWrapper, p as posFixed, b as posAbsolute, c as button, d as buttonCenter } from './index-
|
|
1
|
+
import { s as styleInject, a as usePdpState, S as STATES, f as footerWrapper, p as posFixed, b as posAbsolute, c as button, d as buttonCenter } from './index-f3043af2.js';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import 'react';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
5
|
-
import { s as styleInject, u as useApiInterface, G as Group } from './index-
|
|
5
|
+
import { s as styleInject, u as useApiInterface, G as Group } from './index-f3043af2.js';
|
|
6
6
|
import { useRef, useEffect, useState } from 'react';
|
|
7
7
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, a as usePdpState, f as footerWrapper, p as posFixed, b as posAbsolute, c as button, e as buttonLeft, d as buttonCenter } from './index-
|
|
1
|
+
import { s as styleInject, a as usePdpState, f as footerWrapper, p as posFixed, b as posAbsolute, c as button, e as buttonLeft, d as buttonCenter } from './index-f3043af2.js';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
|
-
import { s as styleInject } from './index-
|
|
2
|
+
import { s as styleInject } from './index-f3043af2.js';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { useDivaCore, useTranslation } from '@crystaldesign/diva-core';
|
|
5
5
|
import QRCode from 'react-qr-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, a as usePdpState } from './index-
|
|
1
|
+
import { s as styleInject, a as usePdpState } from './index-f3043af2.js';
|
|
2
2
|
import { observer } from 'mobx-react-lite';
|
|
3
3
|
import 'react';
|
|
4
4
|
import { useTranslation, DivaUtils } from '@crystaldesign/diva-core';
|
|
@@ -210,7 +210,7 @@ var _excluded$3 = ["pdpState"];
|
|
|
210
210
|
function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
211
211
|
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
212
212
|
var Checkpoint = /*#__PURE__*/React.lazy(function () {
|
|
213
|
-
return import('./index-
|
|
213
|
+
return import('./index-ec37f503.js');
|
|
214
214
|
});
|
|
215
215
|
var InfoSlider = function InfoSlider(_ref) {
|
|
216
216
|
var _pdpState$infoTabs$ma, _pdpState$infoTabs;
|
|
@@ -1033,7 +1033,6 @@ var PdpContext = /*#__PURE__*/React.createContext({
|
|
|
1033
1033
|
type: 'PDP'
|
|
1034
1034
|
});
|
|
1035
1035
|
function ContextProvider$1(_ref) {
|
|
1036
|
-
var _props$parameters$pro, _props$parameters;
|
|
1037
1036
|
var children = _ref.children,
|
|
1038
1037
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1039
1038
|
var divaCoreState = useDivaCore();
|
|
@@ -1042,17 +1041,21 @@ function ContextProvider$1(_ref) {
|
|
|
1042
1041
|
var _useApiInterface = useApiInterface(),
|
|
1043
1042
|
getDataCache = _useApiInterface.getDataCache,
|
|
1044
1043
|
fetchData = _useApiInterface.fetchData;
|
|
1045
|
-
var _useState = useState(
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1044
|
+
var _useState = useState(function () {
|
|
1045
|
+
var _props$parameters$pro, _props$parameters;
|
|
1046
|
+
return new PdpState({
|
|
1047
|
+
loadVariants: props.loadVariants,
|
|
1048
|
+
productId: (_props$parameters$pro = (_props$parameters = props.parameters) === null || _props$parameters === void 0 ? void 0 : _props$parameters.productId) !== null && _props$parameters$pro !== void 0 ? _props$parameters$pro : props.productId,
|
|
1049
|
+
validateIsActive: props.validateIsActive,
|
|
1050
|
+
divaCoreState: divaCoreState,
|
|
1051
|
+
t: t,
|
|
1052
|
+
getDataCache: getDataCache,
|
|
1053
|
+
fetchData: fetchData
|
|
1054
|
+
});
|
|
1055
|
+
}),
|
|
1054
1056
|
_useState2 = _slicedToArray(_useState, 1),
|
|
1055
1057
|
pdpState = _useState2[0];
|
|
1058
|
+
if (!pdpState) return /*#__PURE__*/jsx(Fragment, {});
|
|
1056
1059
|
return /*#__PURE__*/jsx(PdpContext.Provider, {
|
|
1057
1060
|
value: _objectSpread$d({
|
|
1058
1061
|
pdpState: pdpState
|
|
@@ -1196,10 +1199,10 @@ var useContentBoxState = function useContentBoxState() {
|
|
|
1196
1199
|
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1197
1200
|
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1198
1201
|
var CheckpointFooter = /*#__PURE__*/React.lazy(function () {
|
|
1199
|
-
return import('./index-
|
|
1202
|
+
return import('./index-7b31f80b.js');
|
|
1200
1203
|
});
|
|
1201
1204
|
var FunctionsFooter = /*#__PURE__*/React.lazy(function () {
|
|
1202
|
-
return import('./index-
|
|
1205
|
+
return import('./index-b2a9eaa3.js');
|
|
1203
1206
|
});
|
|
1204
1207
|
var Footer = function Footer(_ref) {
|
|
1205
1208
|
_objectDestructuringEmpty(_ref);
|
|
@@ -1683,7 +1686,7 @@ var OptionHeader = function OptionHeader(_ref) {
|
|
|
1683
1686
|
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1684
1687
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1685
1688
|
var DragAndDrop = /*#__PURE__*/React.lazy(function () {
|
|
1686
|
-
return import('./index-
|
|
1689
|
+
return import('./index-8d841118.js');
|
|
1687
1690
|
});
|
|
1688
1691
|
var VariantFields = function VariantFields(_ref) {
|
|
1689
1692
|
var variants = _ref.variants,
|
|
@@ -2161,10 +2164,10 @@ var CloseButtonContainer = function CloseButtonContainer(_ref) {
|
|
|
2161
2164
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2162
2165
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2163
2166
|
var ArViewer = /*#__PURE__*/React.lazy(function () {
|
|
2164
|
-
return import('./index-
|
|
2167
|
+
return import('./index-b6b0be43.js');
|
|
2165
2168
|
});
|
|
2166
2169
|
var MediaViewer = /*#__PURE__*/React.lazy(function () {
|
|
2167
|
-
return import('./index-
|
|
2170
|
+
return import('./index-469397a3.js');
|
|
2168
2171
|
});
|
|
2169
2172
|
var ContentBox$1 = function ContentBox(props) {
|
|
2170
2173
|
var _useContentBoxState = useContentBoxState(),
|
package/build/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@babel/runtime/helpers/defineProperty';
|
|
2
|
-
export { C as ContentBoxComponent, g as default } from './index-
|
|
2
|
+
export { C as ContentBoxComponent, g as default } from './index-f3043af2.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PdpContext.d.ts","sourceRoot":"","sources":["../../../../../src/Context/PdpContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,UAAU,KAAM,SAAQ,QAAQ;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAOD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"PdpContext.d.ts","sourceRoot":"","sources":["../../../../../src/Context/PdpContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,UAAU,KAAM,SAAQ,QAAQ;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAOD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,qBAmBpE;AAED,eAAO,MAAM,WAAW;cA3B2B,QAAQ;YA2BJ,CAAC"}
|