@redneckz/wildless-cms-uni-blocks 0.5.0 → 0.5.1
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/dist/components/ContentPage/normalizePage.d.ts +1 -27
- package/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.d.ts +1 -27
- package/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.d.ts +1 -19
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.d.ts +1 -19
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/src/components/ContentPage/normalizePage.ts +2 -1
- package/package.json +1 -1
- package/src/components/ContentPage/normalizePage.ts +2 -1
|
@@ -1,29 +1,3 @@
|
|
|
1
1
|
import type { ContentPageDef } from '../../types';
|
|
2
2
|
import { BlocksRegistry } from './ContentPage';
|
|
3
|
-
export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) =>
|
|
4
|
-
blocks: {
|
|
5
|
-
type?: string | undefined;
|
|
6
|
-
style?: string[] | undefined;
|
|
7
|
-
content?: import("../BlockContent").BlockContent | undefined;
|
|
8
|
-
version?: import("../../model/BlockVersion").BlockVersion | undefined;
|
|
9
|
-
hidden?: boolean | undefined;
|
|
10
|
-
anchor?: string | undefined;
|
|
11
|
-
labels?: string[] | undefined;
|
|
12
|
-
}[];
|
|
13
|
-
slots: {} | undefined;
|
|
14
|
-
_customPageType?: string | undefined;
|
|
15
|
-
style?: string[] | undefined;
|
|
16
|
-
likeControl?: boolean | undefined;
|
|
17
|
-
colorPalette?: import("../../types").ColorPalette | undefined;
|
|
18
|
-
title?: string | undefined;
|
|
19
|
-
slug?: string | undefined;
|
|
20
|
-
main?: {
|
|
21
|
-
description?: string | undefined;
|
|
22
|
-
keywords?: string[] | undefined;
|
|
23
|
-
canonical?: string | undefined;
|
|
24
|
-
robots?: string[] | undefined;
|
|
25
|
-
} | undefined;
|
|
26
|
-
og?: Record<string, string> | undefined;
|
|
27
|
-
twitter?: Record<string, string> | undefined;
|
|
28
|
-
jsonLd?: string | undefined;
|
|
29
|
-
} | undefined;
|
|
3
|
+
export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) => ContentPageDef | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":";;AAEA,iDAA8C;AAEvC,MAAM,aAAa,GACxB,CAAC,cAA8B,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":";;AAEA,iDAA8C;AAEvC,MAAM,aAAa,GACxB,CAAC,cAA8B,EAAE,EAAE,CACnC,CAAC,WAA8C,EAA8B,EAAE;IAC7E,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAE3C,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,IAAA,2BAAY,EAAC,MAAM,EAAE,cAAc,CAAC;QAC5C,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,IAAA,2BAAY,EAAE,KAAK,CAAC,GAAG,CAAU,CAAC,MAAM,IAAI,EAAE,EAAE,cAAc,CAAC;iBACxE;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC,CAAC;AAzBS,QAAA,aAAa,iBAyBtB"}
|
|
@@ -1,29 +1,3 @@
|
|
|
1
1
|
import type { ContentPageDef } from '../../types';
|
|
2
2
|
import { BlocksRegistry } from './ContentPage';
|
|
3
|
-
export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) =>
|
|
4
|
-
blocks: {
|
|
5
|
-
type?: string | undefined;
|
|
6
|
-
style?: string[] | undefined;
|
|
7
|
-
content?: import("../BlockContent").BlockContent | undefined;
|
|
8
|
-
version?: import("../../model/BlockVersion").BlockVersion | undefined;
|
|
9
|
-
hidden?: boolean | undefined;
|
|
10
|
-
anchor?: string | undefined;
|
|
11
|
-
labels?: string[] | undefined;
|
|
12
|
-
}[];
|
|
13
|
-
slots: {} | undefined;
|
|
14
|
-
_customPageType?: string | undefined;
|
|
15
|
-
style?: string[] | undefined;
|
|
16
|
-
likeControl?: boolean | undefined;
|
|
17
|
-
colorPalette?: import("../../types").ColorPalette | undefined;
|
|
18
|
-
title?: string | undefined;
|
|
19
|
-
slug?: string | undefined;
|
|
20
|
-
main?: {
|
|
21
|
-
description?: string | undefined;
|
|
22
|
-
keywords?: string[] | undefined;
|
|
23
|
-
canonical?: string | undefined;
|
|
24
|
-
robots?: string[] | undefined;
|
|
25
|
-
} | undefined;
|
|
26
|
-
og?: Record<string, string> | undefined;
|
|
27
|
-
twitter?: Record<string, string> | undefined;
|
|
28
|
-
jsonLd?: string | undefined;
|
|
29
|
-
} | undefined;
|
|
3
|
+
export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) => ContentPageDef | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GACxB,CAAC,cAA8B,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GACxB,CAAC,cAA8B,EAAE,EAAE,CACnC,CAAC,WAA8C,EAA8B,EAAE;IAC7E,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAE3C,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC;QAC5C,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,YAAY,CAAE,KAAK,CAAC,GAAG,CAAU,CAAC,MAAM,IAAI,EAAE,EAAE,cAAc,CAAC;iBACxE;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
import type { ContentPageDef } from '../../types';
|
|
2
2
|
import { BlocksRegistry } from './ContentPage';
|
|
3
|
-
export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) =>
|
|
4
|
-
blocks: import("../../types").BlockDef[];
|
|
5
|
-
slots: {} | undefined;
|
|
6
|
-
_customPageType?: string | undefined;
|
|
7
|
-
style?: string[] | undefined;
|
|
8
|
-
likeControl?: boolean | undefined;
|
|
9
|
-
colorPalette?: import("../../types").ColorPalette | undefined;
|
|
10
|
-
title?: string | undefined;
|
|
11
|
-
slug?: string | undefined;
|
|
12
|
-
main?: {
|
|
13
|
-
description?: string | undefined;
|
|
14
|
-
keywords?: string[] | undefined;
|
|
15
|
-
canonical?: string | undefined;
|
|
16
|
-
robots?: string[] | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
og?: Record<string, string> | undefined;
|
|
19
|
-
twitter?: Record<string, string> | undefined;
|
|
20
|
-
jsonLd?: string | undefined;
|
|
21
|
-
} | undefined;
|
|
3
|
+
export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) => ContentPageDef | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":";;AAEA,iDAA8C;AAEvC,MAAM,aAAa,GACxB,CAAC,cAA8B,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":";;AAEA,iDAA8C;AAEvC,MAAM,aAAa,GACxB,CAAC,cAA8B,EAAE,EAAE,CACnC,CAAC,WAA8C,EAA8B,EAAE;IAC7E,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAE3C,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,IAAA,2BAAY,EAAC,MAAM,EAAE,cAAc,CAAC;QAC5C,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,IAAA,2BAAY,EAAE,KAAK,CAAC,GAAG,CAAU,CAAC,MAAM,IAAI,EAAE,EAAE,cAAc,CAAC;iBACxE;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC,CAAC;AAzBS,QAAA,aAAa,iBAyBtB"}
|
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
import type { ContentPageDef } from '../../types';
|
|
2
2
|
import { BlocksRegistry } from './ContentPage';
|
|
3
|
-
export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) =>
|
|
4
|
-
blocks: import("../../types").BlockDef[];
|
|
5
|
-
slots: {} | undefined;
|
|
6
|
-
_customPageType?: string | undefined;
|
|
7
|
-
style?: string[] | undefined;
|
|
8
|
-
likeControl?: boolean | undefined;
|
|
9
|
-
colorPalette?: import("../../types").ColorPalette | undefined;
|
|
10
|
-
title?: string | undefined;
|
|
11
|
-
slug?: string | undefined;
|
|
12
|
-
main?: {
|
|
13
|
-
description?: string | undefined;
|
|
14
|
-
keywords?: string[] | undefined;
|
|
15
|
-
canonical?: string | undefined;
|
|
16
|
-
robots?: string[] | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
og?: Record<string, string> | undefined;
|
|
19
|
-
twitter?: Record<string, string> | undefined;
|
|
20
|
-
jsonLd?: string | undefined;
|
|
21
|
-
} | undefined;
|
|
3
|
+
export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) => ContentPageDef | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GACxB,CAAC,cAA8B,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GACxB,CAAC,cAA8B,EAAE,EAAE,CACnC,CAAC,WAA8C,EAA8B,EAAE;IAC7E,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAE3C,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC;QAC5C,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,YAAY,CAAE,KAAK,CAAC,GAAG,CAAU,CAAC,MAAM,IAAI,EAAE,EAAE,cAAc,CAAC;iBACxE;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,7 +3,8 @@ import { BlocksRegistry } from './ContentPage';
|
|
|
3
3
|
import { filterBlocks } from './filterBlocks';
|
|
4
4
|
|
|
5
5
|
export const normalizePage =
|
|
6
|
-
(blocksRegistry: BlocksRegistry) =>
|
|
6
|
+
(blocksRegistry: BlocksRegistry) =>
|
|
7
|
+
(contentPage: ContentPageDef | undefined | null): ContentPageDef | undefined => {
|
|
7
8
|
if (!contentPage) {
|
|
8
9
|
return undefined;
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,8 @@ import { BlocksRegistry } from './ContentPage';
|
|
|
3
3
|
import { filterBlocks } from './filterBlocks';
|
|
4
4
|
|
|
5
5
|
export const normalizePage =
|
|
6
|
-
(blocksRegistry: BlocksRegistry) =>
|
|
6
|
+
(blocksRegistry: BlocksRegistry) =>
|
|
7
|
+
(contentPage: ContentPageDef | undefined | null): ContentPageDef | undefined => {
|
|
7
8
|
if (!contentPage) {
|
|
8
9
|
return undefined;
|
|
9
10
|
}
|