@blaze-cms/react-page-builder 0.131.0-admin-updates.2 → 0.131.0-admin-updates.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.131.0-admin-updates.4](https://github.com/thebyte9/blaze/compare/v0.131.0-admin-updates.3...v0.131.0-admin-updates.4) (2023-07-17)
7
+
8
+ **Note:** Version bump only for package @blaze-cms/react-page-builder
9
+
10
+
11
+
12
+
13
+
6
14
  # [0.131.0-admin-updates.2](https://github.com/thebyte9/blaze/compare/v0.131.0-admin-updates.1...v0.131.0-admin-updates.2) (2023-07-11)
7
15
 
8
16
 
@@ -26,11 +26,17 @@ function getEntitiesWithBanner(entities, options, hasNewBannerSettings) {
26
26
  return entities.map(function (currentEntity) {
27
27
  var parent = options.parent,
28
28
  transform = options.transform,
29
- limit = options.limit;
29
+ limit = options.limit,
30
+ banner = options.banner;
31
+ var _ref = banner || {},
32
+ adunit = _ref.adunit,
33
+ baseAdunit = _ref.baseAdunit;
30
34
  return _objectSpread(_objectSpread({}, currentEntity), {}, {
31
35
  parent: parent,
32
36
  limit: limit,
33
- transform: transform
37
+ transform: transform,
38
+ adunit: adunit,
39
+ baseAdunit: baseAdunit
34
40
  });
35
41
  });
36
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-entities-with-banner.js","names":["_injectBannersToEntities","_interopRequireDefault","require","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getEntitiesWithBanner","entities","options","hasNewBannerSettings","hasBanner","map","currentEntity","parent","transform","limit","injectBannersToEntities"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options, hasNewBannerSettings) {\n const { hasBanner } = options;\n if (hasNewBannerSettings) {\n return entities.map(currentEntity => {\n const { parent, transform, limit } = options;\n return { ...currentEntity, parent, limit, transform };\n });\n }\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,wBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmE,SAAAC,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,QAAAC,gBAAA,aAAAP,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAkB,yBAAA,GAAAlB,MAAA,CAAAmB,gBAAA,CAAAT,MAAA,EAAAV,MAAA,CAAAkB,yBAAA,CAAAJ,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAAc,MAAA,GAAAC,OAAA,WAAAC,GAAA,IAAAhB,MAAA,CAAAoB,cAAA,CAAAV,MAAA,EAAAM,GAAA,EAAAhB,MAAA,CAAAK,wBAAA,CAAAS,MAAA,EAAAE,GAAA,iBAAAN,MAAA;AAEpD,SAASW,qBAAqBA,CAACC,QAAQ,EAAEC,OAAO,EAAEC,oBAAoB,EAAE;EACrF,IAAQC,SAAS,GAAKF,OAAO,CAArBE,SAAS;EACjB,IAAID,oBAAoB,EAAE;IACxB,OAAOF,QAAQ,CAACI,GAAG,CAAC,UAAAC,aAAa,EAAI;MACnC,IAAQC,MAAM,GAAuBL,OAAO,CAApCK,MAAM;QAAEC,SAAS,GAAYN,OAAO,CAA5BM,SAAS;QAAEC,KAAK,GAAKP,OAAO,CAAjBO,KAAK;MAChC,OAAArB,aAAA,CAAAA,aAAA,KAAYkB,aAAa;QAAEC,MAAM,EAANA,MAAM;QAAEE,KAAK,EAALA,KAAK;QAAED,SAAS,EAATA;MAAS;IACrD,CAAC,CAAC;EACJ;EACA,IAAI,CAACJ,SAAS,EAAE,OAAOH,QAAQ;EAE/B,OAAO,IAAAS,mCAAuB,EAACT,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
1
+ {"version":3,"file":"get-entities-with-banner.js","names":["_injectBannersToEntities","_interopRequireDefault","require","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getEntitiesWithBanner","entities","options","hasNewBannerSettings","hasBanner","map","currentEntity","parent","transform","limit","banner","_ref","adunit","baseAdunit","injectBannersToEntities"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options, hasNewBannerSettings) {\n const { hasBanner } = options;\n if (hasNewBannerSettings) {\n return entities.map(currentEntity => {\n const { parent, transform, limit, banner } = options;\n const { adunit, baseAdunit } = banner || {};\n return { ...currentEntity, par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AE;EACrF,IAAQC,SAAS,GAAKF,OAAO,CAArBE,SAAS;EACjB,IAAID,oBAAoB,EAAE;IACxB,OAAOF,QAAQ,CAACI,GAAG,CAAC,UAAAC,aAAa,EAAI;MACnC,IAAQC,MAAM,GAA+BL,OAAO,CAA5CK,MAAM;QAAEC,SAAS,GAAoBN,OAAO,CAApCM,SAAS;QAAEC,KAAK,GAAaP,OAAO,CAAzBO,KAAK;QAAEC,MAAM,GAAKR,OAAO,CAAlBQ,MAAM;MACxC,IAAAC,IAAA,GAA+BD,MAAM,IAAI,CAAC,CAAC;QAAnCE,MAAM,GAAAD,IAAA,CAANC,MAAM;QAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;MAC1B,OAAAzB,aAAA,CAAAA,aAAA,KAAYkB,aAAa;QAAEC,MAAM,EAANA,MAAM;QAAEE,KAAK,EAALA,KAAK;QAAED,SAAS,EAATA,SAAS;QAAEI,MAAM,EAANA,MAAM;QAAEC,UAAU,EAAVA;MAAU;IACzE,CAAC,CAAC;EACJ;EACA,IAAI,CAACT,SAAS,EAAE,OAAOH,QAAQ;EAE/B,OAAO,IAAAa,mCAAuB,EAACb,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
@@ -11,12 +11,19 @@ export default function getEntitiesWithBanner(entities, options, hasNewBannerSet
11
11
  const {
12
12
  parent,
13
13
  transform,
14
- limit
14
+ limit,
15
+ banner
15
16
  } = options;
17
+ const {
18
+ adunit,
19
+ baseAdunit
20
+ } = banner || {};
16
21
  return _objectSpread(_objectSpread({}, currentEntity), {}, {
17
22
  parent,
18
23
  limit,
19
- transform
24
+ transform,
25
+ adunit,
26
+ baseAdunit
20
27
  });
21
28
  });
22
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-entities-with-banner.js","names":["injectBannersToEntities","getEntitiesWithBanner","entities","options","hasNewBannerSettings","hasBanner","map","currentEntity","parent","transform","limit","_objectSpread"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options, hasNewBannerSettings) {\n const { hasBanner } = options;\n if (hasNewBannerSettings) {\n return entities.map(currentEntity => {\n const { parent, transform, limit } = options;\n return { ...currentEntity, parent, limit, transform };\n });\n }\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"mappings":";;;AAAA,OAAOA,uBAAuB,MAAM,8BAA8B;AAElE,eAAe,SAASC,qBAAqBA,CAACC,QAAQ,EAAEC,OAAO,EAAEC,oBAAoB,EAAE;EACrF,MAAM;IAAEC;EAAU,CAAC,GAAGF,OAAO;EAC7B,IAAIC,oBAAoB,EAAE;IACxB,OAAOF,QAAQ,CAACI,GAAG,CAACC,aAAa,IAAI;MACnC,MAAM;QAAEC,MAAM;QAAEC,SAAS;QAAEC;MAAM,CAAC,GAAGP,OAAO;MAC5C,OAAAQ,aAAA,CAAAA,aAAA,KAAYJ,aAAa;QAAEC,MAAM;QAAEE,KAAK;QAAED;MAAS;IACrD,CAAC,CAAC;EACJ;EACA,IAAI,CAACJ,SAAS,EAAE,OAAOH,QAAQ;EAE/B,OAAOF,uBAAuB,CAACE,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
1
+ {"version":3,"file":"get-entities-with-banner.js","names":["injectBannersToEntities","getEntitiesWithBanner","entities","options","hasNewBannerSettings","hasBanner","map","currentEntity","parent","transform","limit","banner","adunit","baseAdunit","_objectSpread"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options, hasNewBannerSettings) {\n const { hasBanner } = options;\n if (hasNewBannerSettings) {\n return entities.map(currentEntity => {\n const { parent, transform, limit, banner } = options;\n const { adunit, baseAdunit } = banner || {};\n return { ...currentEntity, parent, limit, transform, adunit, baseAdunit };\n });\n }\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"mappings":";;;AAAA,OAAOA,uBAAuB,MAAM,8BAA8B;AAElE,eAAe,SAASC,qBAAqBA,CAACC,QAAQ,EAAEC,OAAO,EAAEC,oBAAoB,EAAE;EACrF,MAAM;IAAEC;EAAU,CAAC,GAAGF,OAAO;EAC7B,IAAIC,oBAAoB,EAAE;IACxB,OAAOF,QAAQ,CAACI,GAAG,CAACC,aAAa,IAAI;MACnC,MAAM;QAAEC,MAAM;QAAEC,SAAS;QAAEC,KAAK;QAAEC;MAAO,CAAC,GAAGR,OAAO;MACpD,MAAM;QAAES,MAAM;QAAEC;MAAW,CAAC,GAAGF,MAAM,IAAI,CAAC,CAAC;MAC3C,OAAAG,aAAA,CAAAA,aAAA,KAAYP,aAAa;QAAEC,MAAM;QAAEE,KAAK;QAAED,SAAS;QAAEG,MAAM;QAAEC;MAAU;IACzE,CAAC,CAAC;EACJ;EACA,IAAI,CAACR,SAAS,EAAE,OAAOH,QAAQ;EAE/B,OAAOF,uBAAuB,CAACE,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaze-cms/react-page-builder",
3
- "version": "0.131.0-admin-updates.2",
3
+ "version": "0.131.0-admin-updates.4",
4
4
  "description": "Blaze react page builder",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-es/index.js",
@@ -89,5 +89,5 @@
89
89
  "lib/*",
90
90
  "lib-es/*"
91
91
  ],
92
- "gitHead": "5c9b447fae07ab1f26456d66d9607005faaa3d8d"
92
+ "gitHead": "00da113adaf0fa650214428f0ff9d168c0c1f01b"
93
93
  }
@@ -4,8 +4,9 @@ export default function getEntitiesWithBanner(entities, options, hasNewBannerSet
4
4
  const { hasBanner } = options;
5
5
  if (hasNewBannerSettings) {
6
6
  return entities.map(currentEntity => {
7
- const { parent, transform, limit } = options;
8
- return { ...currentEntity, parent, limit, transform };
7
+ const { parent, transform, limit, banner } = options;
8
+ const { adunit, baseAdunit } = banner || {};
9
+ return { ...currentEntity, parent, limit, transform, adunit, baseAdunit };
9
10
  });
10
11
  }
11
12
  if (!hasBanner) return entities;