diy-template-components 0.2.70 → 0.2.72

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/index.js CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
 
4
4
 
5
- function ___$insertStyle(css) {
6
- if (!css || !window) {
7
- return;
8
- }
9
- const style = document.createElement('style');
10
- style.setAttribute('type', 'text/css');
11
- style.innerHTML = css;
12
- document.head.appendChild(style);
13
- return css;
5
+ function ___$insertStyle(css) {
6
+ if (!css || typeof window === 'undefined') {
7
+ return;
8
+ }
9
+ const style = document.createElement('style');
10
+ style.setAttribute('type', 'text/css');
11
+ style.innerHTML = css;
12
+ document.head.appendChild(style);
13
+ return css;
14
14
  }
15
15
 
16
16
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2872,7 +2872,7 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2872
2872
  // paddingBottom: '35rem',
2873
2873
  paddingBottom: ({
2874
2874
  isCustomWebsite
2875
- }) => isCustomWebsite ? '45%' : 'unset',
2875
+ }) => isCustomWebsite ? '55%' : 'unset',
2876
2876
  backgroundSize: 'cover',
2877
2877
  backgroundPosition: 'center center'
2878
2878
  },
@@ -7237,7 +7237,7 @@ const SingleVideoSlide$1 = props => {
7237
7237
  dangerouslySetInnerHTML: {
7238
7238
  __html: data.title
7239
7239
  }
7240
- }), /*#__PURE__*/React__default["default"].createElement("div", {
7240
+ }), props?.orgId !== 294413 ? /*#__PURE__*/React__default["default"].createElement("div", {
7241
7241
  className: classes.courseDetailsTags
7242
7242
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7243
7243
  className: classes.courseDetailTag
@@ -7254,7 +7254,7 @@ const SingleVideoSlide$1 = props => {
7254
7254
  color: theme.palette.primary.main,
7255
7255
  width: "20px",
7256
7256
  name: `${data.webinarLocation === 'Location' ? 'Location' : 'Video'}`
7257
- })), /*#__PURE__*/React__default["default"].createElement("div", null, data.webinarLocation === 'Location' ? data.webinarLink : data.webinarLocation))), /*#__PURE__*/React__default["default"].createElement("p", {
7257
+ })), /*#__PURE__*/React__default["default"].createElement("div", null, data.webinarLocation === 'Location' ? data.webinarLink : data.webinarLocation))) : null, /*#__PURE__*/React__default["default"].createElement("p", {
7258
7258
  ref: data?.videoTextContent?.refSetter,
7259
7259
  className: classes.courseDetailContent,
7260
7260
  dangerouslySetInnerHTML: {
@@ -7339,6 +7339,7 @@ function CoursePromotionPage$1({
7339
7339
  const classes = useWebinarPromotionPage({
7340
7340
  containerWidth
7341
7341
  });
7342
+ console.log('extraprops', extraProps);
7342
7343
  return /*#__PURE__*/React__default["default"].createElement("div", {
7343
7344
  className: classes.webinarSuperContainer
7344
7345
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -7349,7 +7350,8 @@ function CoursePromotionPage$1({
7349
7350
  data: sectionData.components[0].metadata,
7350
7351
  webinarCtaClick: extraProps.webinarCtaClick,
7351
7352
  conversions: extraProps.conversions,
7352
- sectionIndex: sectionIndex
7353
+ sectionIndex: sectionIndex,
7354
+ orgId: extraProps?.org_id
7353
7355
  }))));
7354
7356
  }
7355
7357