@brilo/base-blocks 0.1.22 → 0.1.23

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.
Files changed (120) hide show
  1. package/build/.tsbuildinfo +1 -1
  2. package/build/blocks/layout/layout-aside/constants.d.ts +2 -0
  3. package/build/blocks/layout/layout-aside/constants.d.ts.map +1 -0
  4. package/build/blocks/layout/layout-aside/constants.js +1 -0
  5. package/build/blocks/layout/layout-aside/edit.d.ts +4 -0
  6. package/build/blocks/layout/layout-aside/edit.d.ts.map +1 -0
  7. package/build/blocks/layout/layout-aside/edit.js +13 -0
  8. package/build/blocks/layout/layout-aside/factory.d.ts +4 -0
  9. package/build/blocks/layout/layout-aside/factory.d.ts.map +1 -0
  10. package/build/blocks/layout/layout-aside/factory.js +20 -0
  11. package/build/blocks/layout/layout-aside/icon.d.ts +3 -0
  12. package/build/blocks/layout/layout-aside/icon.d.ts.map +1 -0
  13. package/build/blocks/layout/layout-aside/icon.js +2 -0
  14. package/build/blocks/layout/layout-aside/index.d.ts +5 -0
  15. package/build/blocks/layout/layout-aside/index.d.ts.map +1 -0
  16. package/build/blocks/layout/layout-aside/index.js +5 -0
  17. package/build/blocks/layout/layout-aside/types.d.ts +6 -0
  18. package/build/blocks/layout/layout-aside/types.d.ts.map +1 -0
  19. package/build/blocks/layout/layout-aside/types.js +1 -0
  20. package/build/blocks/layout/layout-content/constants.d.ts +2 -0
  21. package/build/blocks/layout/layout-content/constants.d.ts.map +1 -0
  22. package/build/blocks/layout/layout-content/constants.js +1 -0
  23. package/build/blocks/layout/layout-content/edit.d.ts +4 -0
  24. package/build/blocks/layout/layout-content/edit.d.ts.map +1 -0
  25. package/build/blocks/layout/layout-content/edit.js +13 -0
  26. package/build/blocks/layout/layout-content/factory.d.ts +4 -0
  27. package/build/blocks/layout/layout-content/factory.d.ts.map +1 -0
  28. package/build/blocks/layout/layout-content/factory.js +20 -0
  29. package/build/blocks/layout/layout-content/icon.d.ts +3 -0
  30. package/build/blocks/layout/layout-content/icon.d.ts.map +1 -0
  31. package/build/blocks/layout/layout-content/icon.js +2 -0
  32. package/build/blocks/layout/layout-content/index.d.ts +5 -0
  33. package/build/blocks/layout/layout-content/index.d.ts.map +1 -0
  34. package/build/blocks/layout/layout-content/index.js +5 -0
  35. package/build/blocks/layout/layout-content/types.d.ts +6 -0
  36. package/build/blocks/layout/layout-content/types.d.ts.map +1 -0
  37. package/build/blocks/layout/layout-content/types.js +1 -0
  38. package/build/blocks/layout/layout-content-w-aside/constants.d.ts +11 -0
  39. package/build/blocks/layout/layout-content-w-aside/constants.d.ts.map +1 -0
  40. package/build/blocks/layout/layout-content-w-aside/constants.js +6 -0
  41. package/build/blocks/layout/layout-content-w-aside/edit.d.ts +7 -0
  42. package/build/blocks/layout/layout-content-w-aside/edit.d.ts.map +1 -0
  43. package/build/blocks/layout/layout-content-w-aside/edit.js +22 -0
  44. package/build/blocks/layout/layout-content-w-aside/factory.d.ts +6 -0
  45. package/build/blocks/layout/layout-content-w-aside/factory.d.ts.map +1 -0
  46. package/build/blocks/layout/layout-content-w-aside/factory.js +26 -0
  47. package/build/blocks/layout/layout-content-w-aside/icon.d.ts +3 -0
  48. package/build/blocks/layout/layout-content-w-aside/icon.d.ts.map +1 -0
  49. package/build/blocks/layout/layout-content-w-aside/icon.js +2 -0
  50. package/build/blocks/layout/layout-content-w-aside/index.d.ts +5 -0
  51. package/build/blocks/layout/layout-content-w-aside/index.d.ts.map +1 -0
  52. package/build/blocks/layout/layout-content-w-aside/index.js +9 -0
  53. package/build/blocks/layout/layout-content-w-aside/types.d.ts +10 -0
  54. package/build/blocks/layout/layout-content-w-aside/types.d.ts.map +1 -0
  55. package/build/blocks/layout/layout-content-w-aside/types.js +1 -0
  56. package/build/blocks/post/posts-grid/constants.d.ts +4 -0
  57. package/build/blocks/post/posts-grid/constants.d.ts.map +1 -0
  58. package/build/blocks/post/posts-grid/constants.js +3 -0
  59. package/build/blocks/post/posts-grid/edit.d.ts +6 -0
  60. package/build/blocks/post/posts-grid/edit.d.ts.map +1 -0
  61. package/build/blocks/post/posts-grid/edit.js +21 -0
  62. package/build/blocks/post/posts-grid/factory.d.ts +5 -0
  63. package/build/blocks/post/posts-grid/factory.d.ts.map +1 -0
  64. package/build/blocks/post/posts-grid/factory.js +59 -0
  65. package/build/blocks/post/posts-grid/icon.d.ts +2 -0
  66. package/build/blocks/post/posts-grid/icon.d.ts.map +1 -0
  67. package/build/blocks/post/posts-grid/icon.js +2 -0
  68. package/build/blocks/post/posts-grid/index.d.ts +5 -0
  69. package/build/blocks/post/posts-grid/index.d.ts.map +1 -0
  70. package/build/blocks/post/posts-grid/index.js +5 -0
  71. package/build/blocks/post/posts-grid/types.d.ts +22 -0
  72. package/build/blocks/post/posts-grid/types.d.ts.map +1 -0
  73. package/build/blocks/post/posts-grid/types.js +1 -0
  74. package/build/blocks/sections/base-section/attributes.d.ts +4 -0
  75. package/build/blocks/sections/base-section/attributes.d.ts.map +1 -1
  76. package/build/blocks/sections/base-section/attributes.js +4 -0
  77. package/build/blocks/sections/base-section/constants.d.ts +7 -0
  78. package/build/blocks/sections/base-section/constants.d.ts.map +1 -1
  79. package/build/blocks/sections/base-section/constants.js +7 -0
  80. package/build/blocks/sections/base-section/controls.d.ts.map +1 -1
  81. package/build/blocks/sections/base-section/controls.js +23 -5
  82. package/build/blocks/sections/base-section/types.d.ts +18 -1
  83. package/build/blocks/sections/base-section/types.d.ts.map +1 -1
  84. package/build/index.d.ts +8 -0
  85. package/build/index.d.ts.map +1 -1
  86. package/build/index.js +4 -0
  87. package/package.json +1 -1
  88. package/src/blocks/layout/layout-aside/constants.ts +1 -0
  89. package/src/blocks/layout/layout-aside/edit.tsx +20 -0
  90. package/src/blocks/layout/layout-aside/editor.scss +9 -0
  91. package/src/blocks/layout/layout-aside/factory.tsx +24 -0
  92. package/src/blocks/layout/layout-aside/icon.tsx +12 -0
  93. package/src/blocks/layout/layout-aside/index.ts +9 -0
  94. package/src/blocks/layout/layout-aside/types.ts +5 -0
  95. package/src/blocks/layout/layout-content/constants.ts +1 -0
  96. package/src/blocks/layout/layout-content/edit.tsx +20 -0
  97. package/src/blocks/layout/layout-content/editor.scss +9 -0
  98. package/src/blocks/layout/layout-content/factory.tsx +24 -0
  99. package/src/blocks/layout/layout-content/icon.tsx +12 -0
  100. package/src/blocks/layout/layout-content/index.ts +9 -0
  101. package/src/blocks/layout/layout-content/types.ts +5 -0
  102. package/src/blocks/layout/layout-content-w-aside/constants.ts +7 -0
  103. package/src/blocks/layout/layout-content-w-aside/edit.tsx +52 -0
  104. package/src/blocks/layout/layout-content-w-aside/editor.scss +35 -0
  105. package/src/blocks/layout/layout-content-w-aside/factory.tsx +34 -0
  106. package/src/blocks/layout/layout-content-w-aside/icon.tsx +12 -0
  107. package/src/blocks/layout/layout-content-w-aside/index.ts +13 -0
  108. package/src/blocks/layout/layout-content-w-aside/types.ts +12 -0
  109. package/src/blocks/post/posts-grid/constants.ts +3 -0
  110. package/src/blocks/post/posts-grid/edit.tsx +105 -0
  111. package/src/blocks/post/posts-grid/factory.tsx +63 -0
  112. package/src/blocks/post/posts-grid/icon.tsx +8 -0
  113. package/src/blocks/post/posts-grid/index.ts +9 -0
  114. package/src/blocks/post/posts-grid/types.ts +25 -0
  115. package/src/blocks/sections/base-section/attributes.ts +4 -0
  116. package/src/blocks/sections/base-section/constants.ts +10 -0
  117. package/src/blocks/sections/base-section/controls.tsx +83 -4
  118. package/src/blocks/sections/base-section/types.ts +20 -1
  119. package/src/editor.scss +3 -0
  120. package/src/index.ts +8 -0
@@ -0,0 +1,2 @@
1
+ export declare const ASIDE_DEFAULTS: {};
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,IAAK,CAAA"}
@@ -0,0 +1 @@
1
+ export const ASIDE_DEFAULTS = {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { AsideOptions } from './types';
3
+ export declare function createAsideEdit(options: AsideOptions): () => React.JSX.Element;
4
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/edit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAkB,YAAY,EAAC,MAAM,SAAS,CAAA;AAE1D,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,2BAepD"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useGroupBlock } from '../../../hooks/useGroupBlock';
3
+ export function createAsideEdit(options) {
4
+ return function Edit() {
5
+ const { blockProps, innerBlocksProps } = useGroupBlock({
6
+ blockClassName: 'l-content-w-aside__aside',
7
+ containerClassName: 'l-content-w-aside__aside-container',
8
+ layout: { type: 'default' },
9
+ orientation: 'vertical',
10
+ });
11
+ return (_jsx("aside", { ...blockProps, children: _jsx("div", { ...innerBlocksProps }) }));
12
+ };
13
+ }
@@ -0,0 +1,4 @@
1
+ import type { BlockConfiguration } from '@wordpress/blocks';
2
+ import type { AsideAttributes, AsideOptions } from './types';
3
+ export declare function createAsideBlock(options: AsideOptions): BlockConfiguration<AsideAttributes>;
4
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAKzD,OAAO,KAAK,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,SAAS,CAAA;AAE1D,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,YAAY,GACpB,kBAAkB,CAAC,eAAe,CAAC,CAarC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { InnerBlocks } from '@wordpress/block-editor';
3
+ import { __ } from '@wordpress/i18n';
4
+ import { createAsideEdit } from './edit';
5
+ import { icon as defaultIcon } from './icon';
6
+ export function createAsideBlock(options) {
7
+ var _a, _b, _c;
8
+ return {
9
+ name: options.name,
10
+ title: (_a = options.title) !== null && _a !== void 0 ? _a : __('Postranní panel', 'brilo-blocks'),
11
+ description: options.description,
12
+ category: (_b = options.category) !== null && _b !== void 0 ? _b : 'layout',
13
+ parent: options.parent,
14
+ icon: (_c = options.icon) !== null && _c !== void 0 ? _c : { src: defaultIcon },
15
+ supports: { html: false, customClassName: false },
16
+ attributes: {},
17
+ edit: createAsideEdit(options),
18
+ save: () => _jsx(InnerBlocks.Content, {}),
19
+ };
20
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const icon: React.JSX.Element;
3
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,IAAI,mBAShB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const icon = (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 4H20V20H8V4ZM10 6H18V18H10V6Z", fill: "currentColor" }) }));
@@ -0,0 +1,5 @@
1
+ export type { AsideAttributes, AsideOptions } from './types';
2
+ export { createAsideBlock } from './factory';
3
+ import type { AsideOptions } from './types';
4
+ export declare const asideDefaults: AsideOptions;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,SAAS,CAAA;AAC1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,WAAW,CAAA;AAE1C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAEzC,eAAO,MAAM,aAAa,EAAE,YAG3B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { createAsideBlock } from './factory';
2
+ export const asideDefaults = {
3
+ name: 'brilo/layout-aside',
4
+ parent: ['brilo/layout-content-w-aside'],
5
+ };
@@ -0,0 +1,6 @@
1
+ import type { BriloBlockType } from '../../../types';
2
+ export interface AsideAttributes extends Record<string, unknown> {
3
+ }
4
+ export interface AsideOptions extends BriloBlockType {
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAEnE,MAAM,WAAW,YAAa,SAAQ,cAAc;CAAG"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const CONTENT_DEFAULTS: {};
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,IAAK,CAAA"}
@@ -0,0 +1 @@
1
+ export const CONTENT_DEFAULTS = {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { ContentOptions } from './types';
3
+ export declare function createContentEdit(options: ContentOptions): () => React.JSX.Element;
4
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/edit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAoB,cAAc,EAAC,MAAM,SAAS,CAAA;AAE9D,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc,2BAexD"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useGroupBlock } from '../../../hooks/useGroupBlock';
3
+ export function createContentEdit(options) {
4
+ return function Edit() {
5
+ const { blockProps, innerBlocksProps } = useGroupBlock({
6
+ blockClassName: 'l-content-w-aside__content',
7
+ containerClassName: 'l-content-w-aside__content-container',
8
+ layout: { type: 'default' },
9
+ orientation: 'vertical',
10
+ });
11
+ return (_jsx("div", { ...blockProps, children: _jsx("div", { ...innerBlocksProps }) }));
12
+ };
13
+ }
@@ -0,0 +1,4 @@
1
+ import type { BlockConfiguration } from '@wordpress/blocks';
2
+ import type { ContentAttributes, ContentOptions } from './types';
3
+ export declare function createContentBlock(options: ContentOptions): BlockConfiguration<ContentAttributes>;
4
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAKzD,OAAO,KAAK,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAA;AAE9D,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,cAAc,GACtB,kBAAkB,CAAC,iBAAiB,CAAC,CAavC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { InnerBlocks } from '@wordpress/block-editor';
3
+ import { __ } from '@wordpress/i18n';
4
+ import { createContentEdit } from './edit';
5
+ import { icon as defaultIcon } from './icon';
6
+ export function createContentBlock(options) {
7
+ var _a, _b, _c;
8
+ return {
9
+ name: options.name,
10
+ title: (_a = options.title) !== null && _a !== void 0 ? _a : __('Obsah', 'brilo-blocks'),
11
+ description: options.description,
12
+ category: (_b = options.category) !== null && _b !== void 0 ? _b : 'layout',
13
+ parent: options.parent,
14
+ icon: (_c = options.icon) !== null && _c !== void 0 ? _c : { src: defaultIcon },
15
+ supports: { html: false, customClassName: false },
16
+ attributes: {},
17
+ edit: createContentEdit(options),
18
+ save: () => _jsx(InnerBlocks.Content, {}),
19
+ };
20
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const icon: React.JSX.Element;
3
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,IAAI,mBAShB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const icon = (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 4H16V20H4V4ZM6 6H14V18H6V6Z", fill: "currentColor" }) }));
@@ -0,0 +1,5 @@
1
+ export type { ContentAttributes, ContentOptions } from './types';
2
+ export { createContentBlock } from './factory';
3
+ import type { ContentOptions } from './types';
4
+ export declare const contentDefaults: ContentOptions;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAA;AAC9D,OAAO,EAAC,kBAAkB,EAAC,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,eAAe,EAAE,cAG7B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { createContentBlock } from './factory';
2
+ export const contentDefaults = {
3
+ name: 'brilo/layout-content',
4
+ parent: ['brilo/layout-content-w-aside'],
5
+ };
@@ -0,0 +1,6 @@
1
+ import type { BriloBlockType } from '../../../types';
2
+ export interface ContentAttributes extends Record<string, unknown> {
3
+ }
4
+ export interface ContentOptions extends BriloBlockType {
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,MAAM,WAAW,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAErE,MAAM,WAAW,cAAe,SAAQ,cAAc;CAAG"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export declare const ASIDE_SIZES: readonly [{
2
+ readonly value: 'sm';
3
+ readonly label: import("@wordpress/i18n").TransformedText<"Malá">;
4
+ }, {
5
+ readonly value: 'md';
6
+ readonly label: import("@wordpress/i18n").TransformedText<"Střední">;
7
+ }, {
8
+ readonly value: 'lg';
9
+ readonly label: import("@wordpress/i18n").TransformedText<"Velká">;
10
+ }];
11
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;aACrB,KAAK,EAAE,IAAI;aAAE,KAAK;;aAClB,KAAK,EAAE,IAAI;aAAE,KAAK;;aAClB,KAAK,EAAE,IAAI;aAAE,KAAK;EACX,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { __ } from '@wordpress/i18n';
2
+ export const ASIDE_SIZES = [
3
+ { value: 'sm', label: __('Malá', 'brilo-blocks') },
4
+ { value: 'md', label: __('Střední', 'brilo-blocks') },
5
+ { value: 'lg', label: __('Velká', 'brilo-blocks') },
6
+ ];
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { ContentWithAsideAttributes, ContentWithAsideOptions } from './types';
3
+ export declare function createContentWithAsideEdit(options: ContentWithAsideOptions): ({ attributes, setAttributes, }: {
4
+ attributes: ContentWithAsideAttributes;
5
+ setAttributes: (a: Partial<ContentWithAsideAttributes>) => void;
6
+ }) => React.JSX.Element;
7
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/edit.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAY,0BAA0B,EAAE,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAE3F,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,uBAAuB,oCAMtE;IACD,UAAU,EAAE,0BAA0B,CAAA;IACtC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,KAAK,IAAI,CAAA;CAChE,uBAkCF"}
@@ -0,0 +1,22 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { InspectorControls } from '@wordpress/block-editor';
3
+ import { PanelBody, __experimentalToggleGroupControl as ToggleGroupControl, __experimentalToggleGroupControlOption as ToggleGroupControlOption } from '@wordpress/components';
4
+ import { __ } from '@wordpress/i18n';
5
+ import { useGroupBlock } from '../../../hooks/useGroupBlock';
6
+ import { ASIDE_SIZES } from './constants';
7
+ export function createContentWithAsideEdit(options) {
8
+ var _a;
9
+ const ASIDE_SIZES_OPTIONS = (_a = options.asideSizes) !== null && _a !== void 0 ? _a : ASIDE_SIZES;
10
+ return function Edit({ attributes, setAttributes, }) {
11
+ const { asideSize } = attributes;
12
+ const { blockProps, innerBlocksProps } = useGroupBlock({
13
+ blockClassName: 'l-content-w-aside',
14
+ containerClassName: `l-content-w-aside__container --aside-${asideSize}`,
15
+ template: options.template,
16
+ allowedBlocks: options.allowedBlocks,
17
+ orientation: 'horizontal',
18
+ layout: { type: 'default' },
19
+ });
20
+ return (_jsxs(_Fragment, { children: [_jsx(InspectorControls, { children: _jsx(PanelBody, { title: __('Nastavení', 'brilo-blocks'), children: _jsx(ToggleGroupControl, { isBlock: true, label: __('Velikost postranního panelu', 'brilo-blocks'), value: asideSize, onChange: (v) => setAttributes({ asideSize: v }), children: ASIDE_SIZES_OPTIONS.map((s) => (_jsx(ToggleGroupControlOption, { value: s.value, label: s.label }, s.value))) }) }) }), _jsx("div", { ...blockProps, children: _jsx("div", { ...innerBlocksProps }) })] }));
21
+ };
22
+ }
@@ -0,0 +1,6 @@
1
+ import type { BlockConfiguration } from '@wordpress/blocks';
2
+ import type { OptionArray } from '../../../types';
3
+ import { ASIDE_SIZES } from './constants';
4
+ import type { ContentWithAsideAttributes, ContentWithAsideOptions } from './types';
5
+ export declare function createContentWithAsideBlock<TAsideSizes extends OptionArray = typeof ASIDE_SIZES>(options: ContentWithAsideOptions<TAsideSizes>): BlockConfiguration<ContentWithAsideAttributes<TAsideSizes[number]['value']>>;
6
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAGzD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EAAC,0BAA0B,EAAE,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAEhF,wBAAgB,2BAA2B,CACzC,WAAW,SAAS,WAAW,GAAG,OAAO,WAAW,EAEpD,OAAO,EAAE,uBAAuB,CAAC,WAAW,CAAC,GAC5C,kBAAkB,CAAC,0BAA0B,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAmB9E"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { InnerBlocks } from '@wordpress/block-editor';
3
+ import { __ } from '@wordpress/i18n';
4
+ import { ASIDE_SIZES } from './constants';
5
+ import { createContentWithAsideEdit } from './edit';
6
+ import { icon as defaultIcon } from './icon';
7
+ export function createContentWithAsideBlock(options) {
8
+ var _a, _b, _c, _d;
9
+ const asideSizes = (_a = options.asideSizes) !== null && _a !== void 0 ? _a : ASIDE_SIZES;
10
+ return {
11
+ name: options.name,
12
+ title: (_b = options.title) !== null && _b !== void 0 ? _b : __('Obsah s postranním panelem', 'brilo-blocks'),
13
+ description: options.description,
14
+ category: (_c = options.category) !== null && _c !== void 0 ? _c : 'layout',
15
+ icon: (_d = options.icon) !== null && _d !== void 0 ? _d : { src: defaultIcon },
16
+ supports: { html: false, customClassName: false },
17
+ attributes: {
18
+ asideSize: {
19
+ type: 'string',
20
+ default: asideSizes[1].value, // medium
21
+ },
22
+ },
23
+ edit: createContentWithAsideEdit(options),
24
+ save: () => _jsx(InnerBlocks.Content, {}),
25
+ };
26
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const icon: React.JSX.Element;
3
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,IAAI,mBAShB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const icon = (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 4H20V20H4V4ZM6 6H13V18H6V6ZM15 6H18V18H15V6Z", fill: "currentColor" }) }));
@@ -0,0 +1,5 @@
1
+ export type { ContentWithAsideAttributes, ContentWithAsideOptions } from './types';
2
+ export { createContentWithAsideBlock } from './factory';
3
+ import type { ContentWithAsideOptions } from './types';
4
+ export declare const contentWithAsideDefaults: ContentWithAsideOptions;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,0BAA0B,EAAE,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAChF,OAAO,EAAC,2BAA2B,EAAC,MAAM,WAAW,CAAA;AAErD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,wBAAwB,EAAE,uBAOtC,CAAA"}
@@ -0,0 +1,9 @@
1
+ export { createContentWithAsideBlock } from './factory';
2
+ export const contentWithAsideDefaults = {
3
+ name: 'brilo/layout-content-w-aside',
4
+ allowedBlocks: ['brilo/layout-content', 'brilo/layout-aside'],
5
+ template: [
6
+ ['brilo/layout-content', {}],
7
+ ['brilo/layout-aside', {}],
8
+ ],
9
+ };
@@ -0,0 +1,10 @@
1
+ import type { BriloBlockType, OptionArray } from '../../../types';
2
+ import type { ASIDE_SIZES } from './constants';
3
+ export type AsideSize = (typeof ASIDE_SIZES)[number]['value'];
4
+ export interface ContentWithAsideAttributes<TAsideSize extends string = AsideSize> extends Record<string, unknown> {
5
+ asideSize: TAsideSize;
6
+ }
7
+ export interface ContentWithAsideOptions<TAsideSizes extends OptionArray = typeof ASIDE_SIZES> extends BriloBlockType {
8
+ asideSizes?: TAsideSizes;
9
+ }
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACxD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAA;AAE5C,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE7D,MAAM,WAAW,0BAA0B,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,CAAE,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAChH,SAAS,EAAE,UAAU,CAAA;CACtB;AAED,MAAM,WAAW,uBAAuB,CAAC,WAAW,SAAS,WAAW,GAAG,OAAO,WAAW,CAAE,SAAQ,cAAc;IACnH,UAAU,CAAC,EAAE,WAAW,CAAA;CACzB"}
@@ -0,0 +1,4 @@
1
+ export declare const POSTS_PER_PAGE_MIN = 1;
2
+ export declare const POSTS_PER_PAGE_MAX = 12;
3
+ export declare const POSTS_PER_PAGE_DEFAULT = 6;
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/post/posts-grid/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,IAAI,CAAA;AACnC,eAAO,MAAM,kBAAkB,KAAK,CAAA;AACpC,eAAO,MAAM,sBAAsB,IAAI,CAAA"}
@@ -0,0 +1,3 @@
1
+ export const POSTS_PER_PAGE_MIN = 1;
2
+ export const POSTS_PER_PAGE_MAX = 12;
3
+ export const POSTS_PER_PAGE_DEFAULT = 6;
@@ -0,0 +1,6 @@
1
+ import type { PostsGridAttributes, PostsGridOptions } from './types';
2
+ export declare function createPostsGridEdit(options: PostsGridOptions): ({ attributes, setAttributes, }: {
3
+ attributes: PostsGridAttributes;
4
+ setAttributes: (a: Partial<PostsGridAttributes>) => void;
5
+ }) => import("react").JSX.Element;
6
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/post/posts-grid/edit.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAC,mBAAmB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAA;AAElE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,oCAIxD;IACD,UAAU,EAAE,mBAAmB,CAAA;IAC/B,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;CACzD,iCAqFF"}
@@ -0,0 +1,21 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { InspectorControls, useBlockProps } from '@wordpress/block-editor';
3
+ import { PanelBody, RangeControl, ToggleControl, __experimentalToggleGroupControl as ToggleGroupControl, __experimentalToggleGroupControlOption as ToggleGroupControlOption, } from '@wordpress/components';
4
+ import { __ } from '@wordpress/i18n';
5
+ import { POSTS_PER_PAGE_DEFAULT, POSTS_PER_PAGE_MAX, POSTS_PER_PAGE_MIN } from './constants';
6
+ export function createPostsGridEdit(options) {
7
+ return function Edit({ attributes, setAttributes, }) {
8
+ var _a, _b;
9
+ const { mode, postsPerPage, selectedPosts, selectedCategories, showImage, showCategory, showDate, showExcerpt, showAuthor } = attributes;
10
+ const blockProps = useBlockProps({ className: 'wp-block-section' });
11
+ return (_jsxs(_Fragment, { children: [_jsxs(InspectorControls, { children: [_jsxs(PanelBody, { title: __('Nastavení výpisu', 'brilo-blocks'), initialOpen: true, children: [_jsxs(ToggleGroupControl, { label: __('Režim výběru', 'brilo-blocks'), value: mode, onChange: (value) => setAttributes({ mode: value }), isBlock: true, children: [_jsx(ToggleGroupControlOption, { value: "manual", label: __('Ruční výběr', 'brilo-blocks') }), _jsx(ToggleGroupControlOption, { value: "category", label: __('Dle kategorie', 'brilo-blocks') }), _jsx(ToggleGroupControlOption, { value: "latest", label: __('Nejnovější', 'brilo-blocks') })] }), mode !== 'manual' && (_jsx(RangeControl, { label: __('Počet příspěvků na stránku', 'brilo-blocks'), value: postsPerPage, onChange: (value) => setAttributes({ postsPerPage: value !== null && value !== void 0 ? value : POSTS_PER_PAGE_DEFAULT }), min: POSTS_PER_PAGE_MIN, max: POSTS_PER_PAGE_MAX }))] }), _jsxs(PanelBody, { title: __('Zobrazené údaje', 'brilo-blocks'), initialOpen: false, children: [_jsx(ToggleControl, { label: __('Zobrazit obrázek', 'brilo-blocks'), checked: showImage, onChange: (value) => setAttributes({ showImage: value }) }), _jsx(ToggleControl, { label: __('Zobrazit kategorii', 'brilo-blocks'), checked: showCategory, onChange: (value) => setAttributes({ showCategory: value }) }), _jsx(ToggleControl, { label: __('Zobrazit datum', 'brilo-blocks'), checked: showDate, onChange: (value) => setAttributes({ showDate: value }) }), _jsx(ToggleControl, { label: __('Zobrazit perex', 'brilo-blocks'), checked: showExcerpt, onChange: (value) => setAttributes({ showExcerpt: value }) }), _jsx(ToggleControl, { label: __('Zobrazit autora', 'brilo-blocks'), checked: showAuthor, onChange: (value) => setAttributes({ showAuthor: value }) })] })] }), _jsxs("div", { ...blockProps, children: [mode === 'category' &&
12
+ ((_a = options.renderCategoryControl) === null || _a === void 0 ? void 0 : _a.call(options, {
13
+ selectedItems: selectedCategories,
14
+ onChange: (ids) => setAttributes({ selectedCategories: ids }),
15
+ })), mode === 'manual' &&
16
+ ((_b = options.renderPostsControl) === null || _b === void 0 ? void 0 : _b.call(options, {
17
+ selectedItems: selectedPosts,
18
+ onChange: (ids) => setAttributes({ selectedPosts: ids }),
19
+ })), mode === 'latest' && (_jsxs("div", { className: "components-placeholder", children: [_jsx("div", { className: "components-placeholder__label", children: __('Posts Grid', 'brilo-blocks') }), _jsx("div", { className: "components-placeholder__instructions", children: `${__('Zobrazí', 'brilo-blocks')} ${postsPerPage} ${__('nejnovějších příspěvků.', 'brilo-blocks')}` })] }))] })] }));
20
+ };
21
+ }
@@ -0,0 +1,5 @@
1
+ import type { BlockConfiguration } from '@wordpress/blocks';
2
+ import type { PostsGridAttributes, PostsGridOptions } from './types';
3
+ export type { PostsGridAttributes, PostsGridOptions };
4
+ export declare function createPostsGridBlock(options: PostsGridOptions): BlockConfiguration<PostsGridAttributes>;
5
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/post/posts-grid/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAKzD,OAAO,KAAK,EAAC,mBAAmB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAA;AAElE,YAAY,EAAC,mBAAmB,EAAE,gBAAgB,EAAC,CAAA;AAEnD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,kBAAkB,CAAC,mBAAmB,CAAC,CAqDvG"}
@@ -0,0 +1,59 @@
1
+ import { __ } from '@wordpress/i18n';
2
+ import { POSTS_PER_PAGE_DEFAULT } from './constants';
3
+ import { createPostsGridEdit } from './edit';
4
+ import { icon as defaultIcon } from './icon';
5
+ export function createPostsGridBlock(options) {
6
+ var _a, _b, _c;
7
+ return {
8
+ name: options.name,
9
+ title: (_a = options.title) !== null && _a !== void 0 ? _a : __('Posts Grid', 'brilo-blocks'),
10
+ description: options.description,
11
+ category: (_b = options.category) !== null && _b !== void 0 ? _b : 'widgets',
12
+ ...(options.parent && { parent: options.parent }),
13
+ icon: (_c = options.icon) !== null && _c !== void 0 ? _c : { src: defaultIcon },
14
+ supports: { html: false, customClassName: false },
15
+ attributes: {
16
+ mode: {
17
+ type: 'string',
18
+ default: 'latest',
19
+ enum: ['manual', 'category', 'latest'],
20
+ },
21
+ postsPerPage: {
22
+ type: 'number',
23
+ default: POSTS_PER_PAGE_DEFAULT,
24
+ },
25
+ selectedPosts: {
26
+ type: 'array',
27
+ default: [],
28
+ items: { type: 'number' },
29
+ },
30
+ selectedCategories: {
31
+ type: 'array',
32
+ default: [],
33
+ items: { type: 'number' },
34
+ },
35
+ showImage: {
36
+ type: 'boolean',
37
+ default: true,
38
+ },
39
+ showCategory: {
40
+ type: 'boolean',
41
+ default: true,
42
+ },
43
+ showDate: {
44
+ type: 'boolean',
45
+ default: true,
46
+ },
47
+ showExcerpt: {
48
+ type: 'boolean',
49
+ default: true,
50
+ },
51
+ showAuthor: {
52
+ type: 'boolean',
53
+ default: true,
54
+ },
55
+ },
56
+ edit: createPostsGridEdit(options),
57
+ save: () => null,
58
+ };
59
+ }
@@ -0,0 +1,2 @@
1
+ export declare const icon: import("react").JSX.Element;
2
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/post/posts-grid/icon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,6BAOhB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "1", y: "1", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "11", y: "1", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "1", y: "11", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "11", y: "11", width: "8", height: "8", stroke: "black", fill: "none" })] }));
@@ -0,0 +1,5 @@
1
+ export type { PostsGridAttributes, PostsGridOptions } from './types';
2
+ export { createPostsGridBlock } from './factory';
3
+ import type { PostsGridOptions } from './types';
4
+ export declare const postsGridDefaults: PostsGridOptions;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/post/posts-grid/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,mBAAmB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAA;AAClE,OAAO,EAAC,oBAAoB,EAAC,MAAM,WAAW,CAAA;AAE9C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,iBAAiB,EAAE,gBAG/B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { createPostsGridBlock } from './factory';
2
+ export const postsGridDefaults = {
3
+ name: 'brilo/posts-grid-group',
4
+ parent: ['brilo/base-section'],
5
+ };
@@ -0,0 +1,22 @@
1
+ import type { BriloBlockType } from '../../../types';
2
+ export type PostsGridMode = 'manual' | 'category' | 'latest';
3
+ export interface PostsGridAttributes extends Record<string, unknown> {
4
+ mode: PostsGridMode;
5
+ postsPerPage: number;
6
+ selectedPosts: number[];
7
+ selectedCategories: number[];
8
+ showImage: boolean;
9
+ showCategory: boolean;
10
+ showDate: boolean;
11
+ showExcerpt: boolean;
12
+ showAuthor: boolean;
13
+ }
14
+ export interface SelectControlProps {
15
+ selectedItems: number[];
16
+ onChange: (ids: number[]) => void;
17
+ }
18
+ export interface PostsGridOptions extends BriloBlockType {
19
+ renderCategoryControl?: (props: SelectControlProps) => JSX.Element;
20
+ renderPostsControl?: (props: SelectControlProps) => JSX.Element;
21
+ }
22
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/post/posts-grid/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAA;AAE5D,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAClE,IAAI,EAAE,aAAa,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CAClC;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG,CAAC,OAAO,CAAA;IAClE,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG,CAAC,OAAO,CAAA;CAChE"}
@@ -0,0 +1 @@
1
+ export {};
@@ -18,5 +18,9 @@ export declare const baseAttributes: {
18
18
  readonly type: 'string';
19
19
  readonly default: '';
20
20
  };
21
+ readonly decorations: {
22
+ readonly type: 'object';
23
+ readonly default: {};
24
+ };
21
25
  };
22
26
  //# sourceMappingURL=attributes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../src/blocks/sections/base-section/attributes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;aACzB,EAAE;iBACA,IAAI,EAAE,QAAQ;iBACd,OAAO,EAAE,EAAE;;aAEb,OAAO;iBACL,IAAI,EAAE,QAAQ;iBACd,OAAO;qBACL,QAAQ,EAAE,SAAS;qBACnB,IAAI,EAAE,SAAS;;;aAGnB,UAAU;iBACR,IAAI,EAAE,QAAQ;iBACd,OAAO,EAAE,EAAE;;aAEb,SAAS;iBACP,IAAI,EAAE,QAAQ;iBACd,OAAO,EAAE,EAAE;;CAEL,CAAA"}
1
+ {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../src/blocks/sections/base-section/attributes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;aACzB,EAAE;iBACA,IAAI,EAAE,QAAQ;iBACd,OAAO,EAAE,EAAE;;aAEb,OAAO;iBACL,IAAI,EAAE,QAAQ;iBACd,OAAO;qBACL,QAAQ,EAAE,SAAS;qBACnB,IAAI,EAAE,SAAS;;;aAGnB,UAAU;iBACR,IAAI,EAAE,QAAQ;iBACd,OAAO,EAAE,EAAE;;aAEb,SAAS;iBACP,IAAI,EAAE,QAAQ;iBACd,OAAO,EAAE,EAAE;;aAEb,WAAW;iBACT,IAAI,EAAE,QAAQ;iBACd,OAAO;;CAED,CAAA"}
@@ -18,4 +18,8 @@ export const baseAttributes = {
18
18
  type: 'string',
19
19
  default: '',
20
20
  },
21
+ decorations: {
22
+ type: 'object',
23
+ default: {},
24
+ },
21
25
  };