@gravity-ui/blog-constructor 3.2.0-alpha.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/cjs/blocks/Author/schema.d.ts +53 -0
  3. package/build/cjs/blocks/Author/schema.js +17 -0
  4. package/build/cjs/blocks/Banner/schema.d.ts +124 -0
  5. package/build/cjs/blocks/Banner/schema.js +22 -0
  6. package/build/cjs/blocks/CTA/CTA.css +27 -47
  7. package/build/cjs/blocks/CTA/schema.d.ts +124 -0
  8. package/build/cjs/blocks/CTA/schema.js +23 -0
  9. package/build/cjs/blocks/ColoredText/schema.d.ts +140 -0
  10. package/build/cjs/blocks/ColoredText/schema.js +29 -0
  11. package/build/cjs/blocks/Feed/schema.d.ts +66 -0
  12. package/build/cjs/blocks/Feed/schema.js +21 -0
  13. package/build/cjs/blocks/Header/schema.d.ts +376 -0
  14. package/build/cjs/blocks/Header/schema.js +14 -0
  15. package/build/cjs/blocks/Layout/schema.d.ts +60 -0
  16. package/build/cjs/blocks/Layout/schema.js +18 -0
  17. package/build/cjs/blocks/Media/schema.d.ts +181 -0
  18. package/build/cjs/blocks/Media/schema.js +17 -0
  19. package/build/cjs/blocks/Meta/schema.d.ts +49 -0
  20. package/build/cjs/blocks/Meta/schema.js +14 -0
  21. package/build/cjs/blocks/Suggest/schema.d.ts +49 -0
  22. package/build/cjs/blocks/Suggest/schema.js +14 -0
  23. package/build/cjs/blocks/YFM/schema.d.ts +54 -0
  24. package/build/cjs/blocks/YFM/schema.js +18 -0
  25. package/build/cjs/components/Paginator/Paginator.css +0 -1
  26. package/build/cjs/components/Paginator/components/PaginatorItem.js +4 -2
  27. package/build/cjs/constructor/BlogConstructorProvider.d.ts +2 -0
  28. package/build/cjs/constructor/BlogConstructorProvider.js +3 -1
  29. package/build/cjs/contexts/SettingsContext.d.ts +5 -0
  30. package/build/cjs/contexts/SettingsContext.js +8 -0
  31. package/build/cjs/index.d.ts +1 -0
  32. package/build/cjs/index.js +1 -0
  33. package/build/cjs/schema/blocks.d.ts +10 -0
  34. package/build/cjs/schema/blocks.js +26 -0
  35. package/build/cjs/schema/common.d.ts +28 -0
  36. package/build/cjs/schema/common.js +25 -0
  37. package/build/cjs/schema/headers.d.ts +1 -0
  38. package/build/cjs/schema/headers.js +17 -0
  39. package/build/cjs/schema/index.d.ts +1288 -0
  40. package/build/cjs/schema/index.js +52 -0
  41. package/build/cjs/schema/utils.d.ts +9 -0
  42. package/build/cjs/schema/utils.js +9 -0
  43. package/build/esm/blocks/Author/schema.d.ts +53 -0
  44. package/build/esm/blocks/Author/schema.js +14 -0
  45. package/build/esm/blocks/Banner/schema.d.ts +124 -0
  46. package/build/esm/blocks/Banner/schema.js +19 -0
  47. package/build/esm/blocks/CTA/CTA.css +27 -47
  48. package/build/esm/blocks/CTA/schema.d.ts +124 -0
  49. package/build/esm/blocks/CTA/schema.js +20 -0
  50. package/build/esm/blocks/ColoredText/schema.d.ts +140 -0
  51. package/build/esm/blocks/ColoredText/schema.js +26 -0
  52. package/build/esm/blocks/Feed/schema.d.ts +66 -0
  53. package/build/esm/blocks/Feed/schema.js +18 -0
  54. package/build/esm/blocks/Header/schema.d.ts +376 -0
  55. package/build/esm/blocks/Header/schema.js +11 -0
  56. package/build/esm/blocks/Layout/schema.d.ts +60 -0
  57. package/build/esm/blocks/Layout/schema.js +15 -0
  58. package/build/esm/blocks/Media/schema.d.ts +181 -0
  59. package/build/esm/blocks/Media/schema.js +14 -0
  60. package/build/esm/blocks/Meta/schema.d.ts +49 -0
  61. package/build/esm/blocks/Meta/schema.js +11 -0
  62. package/build/esm/blocks/Suggest/schema.d.ts +49 -0
  63. package/build/esm/blocks/Suggest/schema.js +11 -0
  64. package/build/esm/blocks/YFM/schema.d.ts +54 -0
  65. package/build/esm/blocks/YFM/schema.js +15 -0
  66. package/build/esm/components/Paginator/Paginator.css +0 -1
  67. package/build/esm/components/Paginator/components/PaginatorItem.js +5 -3
  68. package/build/esm/constructor/BlogConstructorProvider.d.ts +2 -0
  69. package/build/esm/constructor/BlogConstructorProvider.js +3 -1
  70. package/build/esm/contexts/SettingsContext.d.ts +5 -0
  71. package/build/esm/contexts/SettingsContext.js +2 -0
  72. package/build/esm/index.d.ts +1 -0
  73. package/build/esm/index.js +1 -0
  74. package/build/esm/schema/blocks.d.ts +10 -0
  75. package/build/esm/schema/blocks.js +10 -0
  76. package/build/esm/schema/common.d.ts +28 -0
  77. package/build/esm/schema/common.js +21 -0
  78. package/build/esm/schema/headers.d.ts +1 -0
  79. package/build/esm/schema/headers.js +1 -0
  80. package/build/esm/schema/index.d.ts +1288 -0
  81. package/build/esm/schema/index.js +26 -0
  82. package/build/esm/schema/utils.d.ts +9 -0
  83. package/build/esm/schema/utils.js +5 -0
  84. package/package.json +2 -5
@@ -0,0 +1,181 @@
1
+ export declare const Media: {
2
+ "blog-media-block": {
3
+ type: string;
4
+ additionalProperties: boolean;
5
+ properties: {
6
+ text: {
7
+ type: string;
8
+ contentType: string;
9
+ };
10
+ color: {
11
+ type: string;
12
+ };
13
+ image: {
14
+ anyOf: ({
15
+ oneOf: ({
16
+ type: string;
17
+ properties: {
18
+ when: {
19
+ type: string;
20
+ };
21
+ };
22
+ } | {
23
+ type: string;
24
+ pattern: string;
25
+ })[];
26
+ } | {
27
+ type: string;
28
+ items: {
29
+ oneOf: ({
30
+ type: string;
31
+ properties: {
32
+ when: {
33
+ type: string;
34
+ };
35
+ };
36
+ } | {
37
+ type: string;
38
+ pattern: string;
39
+ })[];
40
+ };
41
+ })[];
42
+ };
43
+ video: {
44
+ type: string;
45
+ additionalProperties: boolean;
46
+ required: string[];
47
+ properties: {
48
+ src: {
49
+ type: string;
50
+ items: {
51
+ type: string;
52
+ };
53
+ };
54
+ loop: {
55
+ anyOf: ({
56
+ type: string;
57
+ additionalProperties: boolean;
58
+ required: string[];
59
+ properties: {
60
+ start: {
61
+ type: string;
62
+ };
63
+ end: {
64
+ type: string;
65
+ };
66
+ };
67
+ } | {
68
+ type: string;
69
+ })[];
70
+ };
71
+ type: {
72
+ type: string;
73
+ enum: string[];
74
+ };
75
+ muted: {
76
+ type: string;
77
+ };
78
+ playing: {
79
+ type: string;
80
+ };
81
+ elapsedTime: {
82
+ type: string;
83
+ };
84
+ playIcon: {
85
+ type: string;
86
+ additionalProperties: boolean;
87
+ properties: {
88
+ type: {
89
+ type: string;
90
+ enum: string[];
91
+ };
92
+ theme: {
93
+ type: string;
94
+ enum: string[];
95
+ };
96
+ text: {
97
+ type: string;
98
+ contentType: string;
99
+ };
100
+ };
101
+ };
102
+ controls: {
103
+ type: string;
104
+ enum: string[];
105
+ };
106
+ };
107
+ };
108
+ youtube: {
109
+ type: string;
110
+ };
111
+ parallax: {
112
+ type: string;
113
+ };
114
+ height: {
115
+ type: string;
116
+ };
117
+ previewImg: {
118
+ type: string;
119
+ };
120
+ dataLens: {
121
+ oneOf: ({
122
+ type: string;
123
+ additionalProperties: boolean;
124
+ required: string[];
125
+ properties: {
126
+ id: {
127
+ type: string;
128
+ };
129
+ theme: {
130
+ type: string;
131
+ enum: string[];
132
+ };
133
+ };
134
+ } | {
135
+ type: string;
136
+ })[];
137
+ };
138
+ paddingTop: {
139
+ type: string;
140
+ enum: string[];
141
+ };
142
+ paddingBottom: {
143
+ type: string;
144
+ enum: string[];
145
+ };
146
+ fullWidth: {
147
+ type: string;
148
+ };
149
+ column: {
150
+ type: string;
151
+ enum: string[];
152
+ };
153
+ anchor: {
154
+ type: string;
155
+ additionalProperties: boolean;
156
+ required: string[];
157
+ properties: {
158
+ text: {
159
+ type: string;
160
+ contentType: string;
161
+ };
162
+ url: {
163
+ type: string;
164
+ };
165
+ };
166
+ };
167
+ visible: {
168
+ type: string;
169
+ enum: string[];
170
+ };
171
+ resetPaddings: {
172
+ type: string;
173
+ };
174
+ context: {
175
+ type: string;
176
+ };
177
+ type: {};
178
+ when: {};
179
+ };
180
+ };
181
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Media = void 0;
4
+ const page_constructor_1 = require("@gravity-ui/page-constructor");
5
+ const common_1 = require("../../models/common");
6
+ const common_2 = require("../../schema/common");
7
+ const { common: { BlockBaseProps, MediaProps }, } = page_constructor_1.validators;
8
+ exports.Media = {
9
+ [common_1.BlockType.Media]: {
10
+ type: 'object',
11
+ additionalProperties: false,
12
+ properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), common_2.BlogBlockBase), MediaProps), { text: {
13
+ type: 'string',
14
+ contentType: 'text',
15
+ } }),
16
+ },
17
+ };
@@ -0,0 +1,49 @@
1
+ export declare const Meta: {
2
+ "blog-meta-block": {
3
+ type: string;
4
+ additionalProperties: boolean;
5
+ properties: {
6
+ paddingTop: {
7
+ type: string;
8
+ enum: string[];
9
+ };
10
+ paddingBottom: {
11
+ type: string;
12
+ enum: string[];
13
+ };
14
+ fullWidth: {
15
+ type: string;
16
+ };
17
+ column: {
18
+ type: string;
19
+ enum: string[];
20
+ };
21
+ anchor: {
22
+ type: string;
23
+ additionalProperties: boolean;
24
+ required: string[];
25
+ properties: {
26
+ text: {
27
+ type: string;
28
+ contentType: string;
29
+ };
30
+ url: {
31
+ type: string;
32
+ };
33
+ };
34
+ };
35
+ visible: {
36
+ type: string;
37
+ enum: string[];
38
+ };
39
+ resetPaddings: {
40
+ type: string;
41
+ };
42
+ context: {
43
+ type: string;
44
+ };
45
+ type: {};
46
+ when: {};
47
+ };
48
+ };
49
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Meta = void 0;
4
+ const page_constructor_1 = require("@gravity-ui/page-constructor");
5
+ const { common: { BlockBaseProps }, } = page_constructor_1.validators;
6
+ const common_1 = require("../../models/common");
7
+ const common_2 = require("../../schema/common");
8
+ exports.Meta = {
9
+ [common_1.BlockType.Meta]: {
10
+ type: 'object',
11
+ additionalProperties: false,
12
+ properties: Object.assign(Object.assign({}, BlockBaseProps), common_2.BlogBlockBase),
13
+ },
14
+ };
@@ -0,0 +1,49 @@
1
+ export declare const Suggest: {
2
+ "blog-suggest-block": {
3
+ type: string;
4
+ additionalProperties: boolean;
5
+ properties: {
6
+ paddingTop: {
7
+ type: string;
8
+ enum: string[];
9
+ };
10
+ paddingBottom: {
11
+ type: string;
12
+ enum: string[];
13
+ };
14
+ fullWidth: {
15
+ type: string;
16
+ };
17
+ column: {
18
+ type: string;
19
+ enum: string[];
20
+ };
21
+ anchor: {
22
+ type: string;
23
+ additionalProperties: boolean;
24
+ required: string[];
25
+ properties: {
26
+ text: {
27
+ type: string;
28
+ contentType: string;
29
+ };
30
+ url: {
31
+ type: string;
32
+ };
33
+ };
34
+ };
35
+ visible: {
36
+ type: string;
37
+ enum: string[];
38
+ };
39
+ resetPaddings: {
40
+ type: string;
41
+ };
42
+ context: {
43
+ type: string;
44
+ };
45
+ type: {};
46
+ when: {};
47
+ };
48
+ };
49
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Suggest = void 0;
4
+ const page_constructor_1 = require("@gravity-ui/page-constructor");
5
+ const { common: { BlockBaseProps }, } = page_constructor_1.validators;
6
+ const common_1 = require("../../models/common");
7
+ const common_2 = require("../../schema/common");
8
+ exports.Suggest = {
9
+ [common_1.BlockType.Suggest]: {
10
+ type: 'object',
11
+ additionalProperties: false,
12
+ properties: Object.assign(Object.assign({}, BlockBaseProps), common_2.BlogBlockBase),
13
+ },
14
+ };
@@ -0,0 +1,54 @@
1
+ export declare const YFM: {
2
+ "blog-yfm-block": {
3
+ type: string;
4
+ additionalProperties: boolean;
5
+ required: string[];
6
+ properties: {
7
+ text: {
8
+ type: string;
9
+ contentType: string;
10
+ };
11
+ paddingTop: {
12
+ type: string;
13
+ enum: string[];
14
+ };
15
+ paddingBottom: {
16
+ type: string;
17
+ enum: string[];
18
+ };
19
+ fullWidth: {
20
+ type: string;
21
+ };
22
+ column: {
23
+ type: string;
24
+ enum: string[];
25
+ };
26
+ anchor: {
27
+ type: string;
28
+ additionalProperties: boolean;
29
+ required: string[];
30
+ properties: {
31
+ text: {
32
+ type: string;
33
+ contentType: string;
34
+ };
35
+ url: {
36
+ type: string;
37
+ };
38
+ };
39
+ };
40
+ visible: {
41
+ type: string;
42
+ enum: string[];
43
+ };
44
+ resetPaddings: {
45
+ type: string;
46
+ };
47
+ context: {
48
+ type: string;
49
+ };
50
+ type: {};
51
+ when: {};
52
+ };
53
+ };
54
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YFM = void 0;
4
+ const page_constructor_1 = require("@gravity-ui/page-constructor");
5
+ const { common: { BlockBaseProps }, } = page_constructor_1.validators;
6
+ const common_1 = require("../../models/common");
7
+ const common_2 = require("../../schema/common");
8
+ exports.YFM = {
9
+ [common_1.BlockType.YFM]: {
10
+ type: 'object',
11
+ additionalProperties: false,
12
+ required: ['text'],
13
+ properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), common_2.BlogBlockBase), { text: {
14
+ type: 'string',
15
+ contentType: 'yfm',
16
+ } }),
17
+ },
18
+ };
@@ -9,7 +9,6 @@ unpredictable css rules order in build */
9
9
  }
10
10
  .bc-paginator__link {
11
11
  text-decoration: none;
12
- pointer-events: none;
13
12
  color: var(--yc-color-text-primary);
14
13
  }
15
14
  .bc-paginator__item {
@@ -27,16 +27,18 @@ exports.PaginatorItem = void 0;
27
27
  const react_1 = __importStar(require("react"));
28
28
  const uikit_1 = require("@gravity-ui/uikit");
29
29
  const LocaleContext_1 = require("../../../contexts/LocaleContext");
30
+ const SettingsContext_1 = require("../../../contexts/SettingsContext");
30
31
  const cn_1 = require("../../../utils/cn");
31
32
  const common_1 = require("../../../utils/common");
32
33
  const b = (0, cn_1.block)('paginator');
33
34
  const PaginatorItem = ({ dataKey, mods, content, onClick, loading = false, index, }) => {
34
35
  const { locale } = (0, react_1.useContext)(LocaleContext_1.LocaleContext);
36
+ const { addNavigationLinkForPages } = (0, react_1.useContext)(SettingsContext_1.SettingsContext);
35
37
  const urlPath = (0, common_1.getBlogPath)((locale === null || locale === void 0 ? void 0 : locale.pathPrefix) || '');
36
38
  const itemKey = Number(dataKey) > 0 ? Number(dataKey) : dataKey;
37
39
  const navTag = index > 1 ? `?page=${index}` : '';
38
40
  const navigationLink = `${urlPath || ''}${navTag}`;
39
- return (react_1.default.createElement(uikit_1.Button, { view: "flat", size: "xl", className: b('item', mods), onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(itemKey), loading: loading && Boolean(mods.active) },
40
- react_1.default.createElement("a", { href: navigationLink, className: b('link'), onClick: (event) => event.preventDefault() }, content)));
41
+ const renderButton = (react_1.default.createElement(uikit_1.Button, { view: "flat", size: "xl", className: b('item', mods), onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(itemKey), loading: loading && Boolean(mods.active) }, content));
42
+ return (react_1.default.createElement(react_1.Fragment, null, addNavigationLinkForPages ? (react_1.default.createElement("a", { href: navigationLink, className: b('link'), onClick: (event) => event.preventDefault() }, renderButton)) : (react_1.default.createElement(react_1.Fragment, null, renderButton))));
41
43
  };
42
44
  exports.PaginatorItem = PaginatorItem;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { AnalyticsContextProps } from '@gravity-ui/page-constructor';
3
3
  import { DeviceContextProps } from '../contexts/DeviceContext';
4
4
  import { RouterContextProps } from '../contexts/RouterContext';
5
+ import { SettingsContextProps } from '../contexts/SettingsContext';
5
6
  import { ThemeValueType } from '../contexts/theme/ThemeValueContext';
6
7
  import { Locale } from '../models/locale';
7
8
  export interface BlogConstructorProviderProps {
@@ -11,6 +12,7 @@ export interface BlogConstructorProviderProps {
11
12
  theme?: ThemeValueType;
12
13
  device?: DeviceContextProps;
13
14
  analytics?: AnalyticsContextProps;
15
+ settings?: SettingsContextProps;
14
16
  children?: React.ReactNode;
15
17
  }
16
18
  export declare const BlogConstructorProvider: React.FC<BlogConstructorProviderProps>;
@@ -31,14 +31,16 @@ const DeviceContext_1 = require("../contexts/DeviceContext");
31
31
  const LocaleContext_1 = require("../contexts/LocaleContext");
32
32
  const MobileContext_1 = require("../contexts/MobileContext");
33
33
  const RouterContext_1 = require("../contexts/RouterContext");
34
+ const SettingsContext_1 = require("../contexts/SettingsContext");
34
35
  const ThemeValueContext_1 = require("../contexts/theme/ThemeValueContext");
35
- const BlogConstructorProvider = ({ isMobile, locale = {}, router = {}, theme = constants_1.DEFAULT_THEME, device = {}, analytics = {}, children, }) => {
36
+ const BlogConstructorProvider = ({ isMobile, locale = {}, router = {}, theme = constants_1.DEFAULT_THEME, device = {}, analytics = {}, settings = {}, children, }) => {
36
37
  const context = [
37
38
  react_1.default.createElement(ThemeValueContext_1.ThemeValueContext.Provider, { value: { themeValue: theme }, key: "theme-context" }),
38
39
  react_1.default.createElement(LocaleContext_1.LocaleContext.Provider, { value: { locale }, key: "locale-context" }),
39
40
  react_1.default.createElement(RouterContext_1.RouterContext.Provider, { value: router, key: "router-context" }),
40
41
  react_1.default.createElement(MobileContext_1.MobileContext.Provider, { value: Boolean(isMobile), key: "is-mobile-context" }),
41
42
  react_1.default.createElement(DeviceContext_1.DeviceContext.Provider, { value: device, key: "device-context" }),
43
+ react_1.default.createElement(SettingsContext_1.SettingsContext.Provider, { value: settings, key: "settings-context" }),
42
44
  react_1.default.createElement(page_constructor_1.AnalyticsContext.Provider, { value: analytics, key: "analytics-context" }),
43
45
  ].reduceRight((prev, provider) => react_1.default.cloneElement(provider, {}, prev), children);
44
46
  return react_1.default.createElement(react_1.Fragment, null, context);
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface SettingsContextProps {
3
+ addNavigationLinkForPages?: boolean;
4
+ }
5
+ export declare const SettingsContext: React.Context<SettingsContextProps>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SettingsContext = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ exports.SettingsContext = react_1.default.createContext({});
@@ -4,4 +4,5 @@ export { BlogPostPage } from './containers/BlogPostPage/BlogPostPage';
4
4
  export { BlogPage } from './containers/BlogPage/BlogPage';
5
5
  export * from './models/common';
6
6
  export * from './models/locale';
7
+ export * from './schema';
7
8
  export { BREAKPOINTS } from './constants';
@@ -25,5 +25,6 @@ var BlogPage_1 = require("./containers/BlogPage/BlogPage");
25
25
  Object.defineProperty(exports, "BlogPage", { enumerable: true, get: function () { return BlogPage_1.BlogPage; } });
26
26
  __exportStar(require("./models/common"), exports);
27
27
  __exportStar(require("./models/locale"), exports);
28
+ __exportStar(require("./schema"), exports);
28
29
  var constants_1 = require("./constants");
29
30
  Object.defineProperty(exports, "BREAKPOINTS", { enumerable: true, get: function () { return constants_1.BREAKPOINTS; } });
@@ -0,0 +1,10 @@
1
+ export * from '../blocks/Author/schema';
2
+ export * from '../blocks/Banner/schema';
3
+ export * from '../blocks/ColoredText/schema';
4
+ export * from '../blocks/CTA/schema';
5
+ export * from '../blocks/Feed/schema';
6
+ export * from '../blocks/Layout/schema';
7
+ export * from '../blocks/Media/schema';
8
+ export * from '../blocks/Meta/schema';
9
+ export * from '../blocks/Suggest/schema';
10
+ export * from '../blocks/YFM/schema';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../blocks/Author/schema"), exports);
18
+ __exportStar(require("../blocks/Banner/schema"), exports);
19
+ __exportStar(require("../blocks/ColoredText/schema"), exports);
20
+ __exportStar(require("../blocks/CTA/schema"), exports);
21
+ __exportStar(require("../blocks/Feed/schema"), exports);
22
+ __exportStar(require("../blocks/Layout/schema"), exports);
23
+ __exportStar(require("../blocks/Media/schema"), exports);
24
+ __exportStar(require("../blocks/Meta/schema"), exports);
25
+ __exportStar(require("../blocks/Suggest/schema"), exports);
26
+ __exportStar(require("../blocks/YFM/schema"), exports);
@@ -0,0 +1,28 @@
1
+ export interface ObjectSchema extends Record<string, unknown> {
2
+ properties: object;
3
+ }
4
+ export declare const filteredItem: (itemsSchema: ObjectSchema) => {
5
+ type: string;
6
+ properties: {
7
+ when: {
8
+ type: string;
9
+ };
10
+ };
11
+ };
12
+ export declare const BlogBlockBase: {
13
+ paddingTop: {
14
+ type: string;
15
+ enum: string[];
16
+ };
17
+ paddingBottom: {
18
+ type: string;
19
+ enum: string[];
20
+ };
21
+ fullWidth: {
22
+ type: string;
23
+ };
24
+ column: {
25
+ type: string;
26
+ enum: string[];
27
+ };
28
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlogBlockBase = exports.filteredItem = void 0;
4
+ const sizeTypes = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
5
+ const filteredItem = (itemsSchema) => (Object.assign(Object.assign({}, itemsSchema), { type: 'object', properties: Object.assign({ when: {
6
+ type: 'string',
7
+ } }, itemsSchema.properties) }));
8
+ exports.filteredItem = filteredItem;
9
+ exports.BlogBlockBase = {
10
+ paddingTop: {
11
+ type: 'string',
12
+ enum: sizeTypes,
13
+ },
14
+ paddingBottom: {
15
+ type: 'string',
16
+ enum: sizeTypes,
17
+ },
18
+ fullWidth: {
19
+ type: 'boolean',
20
+ },
21
+ column: {
22
+ type: 'string',
23
+ enum: ['left', 'right'],
24
+ },
25
+ };
@@ -0,0 +1 @@
1
+ export * from '../blocks/Header/schema';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../blocks/Header/schema"), exports);