cmspageblocks 1.0.63 → 1.0.65
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
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var styled = require('styled-components');
|
|
5
5
|
var ReactDOM = require('react-dom');
|
|
6
|
-
require('bukazu-portal-react/src/styles/main.css');
|
|
7
6
|
|
|
8
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
8
|
|
|
@@ -51040,6 +51039,8 @@ function Rz({
|
|
|
51040
51039
|
return window.__localeId__ = n, /* @__PURE__ */ d.jsx(A_, { client: c, children: /* @__PURE__ */ d.jsx(vT, { locale: n, messages: f[n], children: /* @__PURE__ */ d.jsx(aa.Provider, { value: { portalCode: e, objectCode: t, locale: n }, children: /* @__PURE__ */ d.jsx("div", { ref: u, className: s < 875 ? "bu-smaller" : "bu-large", children: /* @__PURE__ */ d.jsx(Oz, { pageType: a, locale: n, filters: r }) }) }) }) });
|
|
51041
51040
|
}
|
|
51042
51041
|
|
|
51042
|
+
// import 'bukazu-portal-react/src/styles/main.css';
|
|
51043
|
+
|
|
51043
51044
|
function Portal(_ref) {
|
|
51044
51045
|
var options = _ref.options;
|
|
51045
51046
|
if ((typeof window === "undefined" ? "undefined" : _typeof$2(window)) !== "undefined") {
|
|
@@ -51092,6 +51093,9 @@ function Block(_ref) {
|
|
|
51092
51093
|
if (!options || options == null) {
|
|
51093
51094
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
51094
51095
|
}
|
|
51096
|
+
console.debug({
|
|
51097
|
+
pageBlock: pageBlock
|
|
51098
|
+
});
|
|
51095
51099
|
switch (pageBlock.type) {
|
|
51096
51100
|
case 'Pages::BukazuPortalBlock':
|
|
51097
51101
|
return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
|
package/package.json
CHANGED
package/src/components/Block.js
CHANGED
|
@@ -25,6 +25,8 @@ function Block({pageBlock, houses, locale }) {
|
|
|
25
25
|
return <></>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
console.debug({pageBlock});
|
|
29
|
+
|
|
28
30
|
switch(pageBlock.type) {
|
|
29
31
|
case 'Pages::BukazuPortalBlock': return <Wrapper options={options} type="bukazu_portal" key={pageBlock.id}><Portal options={options} /></Wrapper>
|
|
30
32
|
case 'Pages::ButtonBlock': return <Wrapper options={options} type="button" key={pageBlock.id}><Button options={options} /></Wrapper>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import BukazuPortal from 'bukazu-portal-react';
|
|
3
|
-
import 'bukazu-portal-react/src/styles/main.css';
|
|
3
|
+
// import 'bukazu-portal-react/src/styles/main.css';
|
|
4
4
|
|
|
5
5
|
export default function Portal({ options }) {
|
|
6
6
|
if (typeof window !== `undefined`) {
|