@redneckz/wildless-cms-uni-blocks 0.14.166 → 0.14.168
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/bundle/bundle.umd.js +8 -30
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ContentPage/ContentPage.js +3 -3
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +3 -3
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +8 -30
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +3 -3
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +3 -3
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +3 -3
- package/package.json +2 -2
- package/src/components/ContentPage/ContentPage.tsx +3 -3
package/bundle/bundle.umd.js
CHANGED
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniBlocks = {}
|
|
5
|
-
})(this, (function (exports
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniBlocks = {}));
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
26
6
|
|
|
27
7
|
let _hooks;
|
|
28
8
|
const setupHooks = (_) => {
|
|
@@ -753,8 +733,6 @@
|
|
|
753
733
|
return refs;
|
|
754
734
|
};
|
|
755
735
|
|
|
756
|
-
util.promisify(fs__namespace.readFile);
|
|
757
|
-
|
|
758
736
|
async function fetchJSON(url, options) {
|
|
759
737
|
try {
|
|
760
738
|
return url ? await fetchJSONUnsafe(url, options) : null;
|
|
@@ -6006,11 +5984,11 @@
|
|
|
6006
5984
|
const STICKY_FOOTER_SLOT = 'sticky-footer';
|
|
6007
5985
|
const EMPTY_DATA = {};
|
|
6008
5986
|
const ContentPage = JSX(({ className, data = EMPTY_DATA, blocksRegistry, blockDecorator }) => {
|
|
6009
|
-
const { slots, blocks, ...pageContent } = data;
|
|
6010
|
-
const resolvedPageContent = useJSONRef(pageContent);
|
|
5987
|
+
const { slots, blocks, fallback, ...pageContent } = data;
|
|
5988
|
+
const resolvedPageContent = useJSONRef(pageContent, fallback);
|
|
6011
5989
|
const options = {
|
|
6012
5990
|
key: '',
|
|
6013
|
-
page: { slots, blocks, ...resolvedPageContent },
|
|
5991
|
+
page: { slots, blocks, fallback, ...resolvedPageContent },
|
|
6014
5992
|
blocksRegistry,
|
|
6015
5993
|
blockDecorator,
|
|
6016
5994
|
parent: data,
|
|
@@ -6029,7 +6007,7 @@
|
|
|
6029
6007
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6030
6008
|
});
|
|
6031
6009
|
|
|
6032
|
-
const packageVersion = "0.14.
|
|
6010
|
+
const packageVersion = "0.14.167";
|
|
6033
6011
|
|
|
6034
6012
|
exports.Blocks = Blocks;
|
|
6035
6013
|
exports.ContentPage = ContentPage;
|