@redneckz/wildless-cms-uni-blocks 0.14.814 → 0.14.816

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 (127) hide show
  1. package/bundle/UniBlock/UniBlock.d.ts +3 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +86 -19
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  6. package/bundle/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  7. package/bundle/model/FormTypeFieldDef.d.ts +1 -1
  8. package/dist/BlockRenderer/renderBlock.js +1 -1
  9. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  10. package/dist/UniBlock/UniBlock.d.ts +3 -1
  11. package/dist/UniBlock/UniBlock.js.map +1 -1
  12. package/dist/components/Blocks.js +2 -0
  13. package/dist/components/Blocks.js.map +1 -1
  14. package/dist/components/Blocks.mobile.js +2 -0
  15. package/dist/components/Blocks.mobile.js.map +1 -1
  16. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  17. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  18. package/dist/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  19. package/dist/components/GalleryLayout/GalleryLayout.js +71 -0
  20. package/dist/components/GalleryLayout/GalleryLayout.js.map +1 -0
  21. package/dist/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  22. package/dist/components/GalleryLayout/GalleryLayoutContent.js +2 -0
  23. package/dist/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
  24. package/dist/model/FormTypeFieldDef.d.ts +1 -1
  25. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +8 -1
  26. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  27. package/dist/ui-kit/BaseTile/BaseTile.js +3 -3
  28. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  29. package/lib/BlockRenderer/renderBlock.js +1 -1
  30. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  31. package/lib/UniBlock/UniBlock.d.ts +3 -1
  32. package/lib/UniBlock/UniBlock.js.map +1 -1
  33. package/lib/common.css +1 -1
  34. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  35. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  36. package/lib/components/Blocks.js +2 -0
  37. package/lib/components/Blocks.js.map +1 -1
  38. package/lib/components/Blocks.mobile.js +2 -0
  39. package/lib/components/Blocks.mobile.js.map +1 -1
  40. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  41. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  42. package/lib/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  43. package/lib/components/GalleryLayout/GalleryLayout.fixture.d.ts +5 -0
  44. package/lib/components/GalleryLayout/GalleryLayout.js +69 -0
  45. package/lib/components/GalleryLayout/GalleryLayout.js.map +1 -0
  46. package/lib/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  47. package/lib/components/GalleryLayout/GalleryLayoutContent.js +2 -0
  48. package/lib/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
  49. package/lib/model/FormTypeFieldDef.d.ts +1 -1
  50. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -2
  51. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  52. package/lib/ui-kit/BaseTile/BaseTile.js +3 -3
  53. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  54. package/mobile/bundle/UniBlock/UniBlock.d.ts +3 -1
  55. package/mobile/bundle/bundle.umd.js +86 -19
  56. package/mobile/bundle/bundle.umd.min.js +1 -1
  57. package/mobile/bundle/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  58. package/mobile/bundle/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  59. package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
  60. package/mobile/dist/BlockRenderer/renderBlock.js +1 -1
  61. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  62. package/mobile/dist/UniBlock/UniBlock.d.ts +3 -1
  63. package/mobile/dist/UniBlock/UniBlock.js.map +1 -1
  64. package/mobile/dist/components/Blocks.js +2 -0
  65. package/mobile/dist/components/Blocks.js.map +1 -1
  66. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  67. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  68. package/mobile/dist/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  69. package/mobile/dist/components/GalleryLayout/GalleryLayout.js +71 -0
  70. package/mobile/dist/components/GalleryLayout/GalleryLayout.js.map +1 -0
  71. package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  72. package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.js +2 -0
  73. package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
  74. package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
  75. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +8 -1
  76. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  77. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -3
  78. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  79. package/mobile/lib/BlockRenderer/renderBlock.js +1 -1
  80. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  81. package/mobile/lib/UniBlock/UniBlock.d.ts +3 -1
  82. package/mobile/lib/UniBlock/UniBlock.js.map +1 -1
  83. package/mobile/lib/common.css +1 -1
  84. package/mobile/lib/components/Blocks.js +2 -0
  85. package/mobile/lib/components/Blocks.js.map +1 -1
  86. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  87. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  88. package/mobile/lib/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  89. package/mobile/lib/components/GalleryLayout/GalleryLayout.js +69 -0
  90. package/mobile/lib/components/GalleryLayout/GalleryLayout.js.map +1 -0
  91. package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  92. package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.js +2 -0
  93. package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
  94. package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
  95. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -2
  96. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  97. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +3 -3
  98. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  99. package/mobile/src/BlockRenderer/renderBlock.tsx +3 -3
  100. package/mobile/src/UniBlock/UniBlock.tsx +3 -1
  101. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +87 -0
  102. package/mobile/src/components/Blocks.ts +2 -0
  103. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -0
  104. package/mobile/src/components/GalleryLayout/GalleryLayout.example.json +102 -0
  105. package/mobile/src/components/GalleryLayout/GalleryLayout.tsx +140 -0
  106. package/mobile/src/components/GalleryLayout/GalleryLayout.ui.json +1 -0
  107. package/mobile/src/components/GalleryLayout/GalleryLayoutContent.ts +16 -0
  108. package/mobile/src/model/FormTypeFieldDef.ts +2 -1
  109. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +60 -23
  110. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +11 -7
  111. package/package.json +2 -2
  112. package/src/BlockRenderer/renderBlock.tsx +3 -3
  113. package/src/UniBlock/UniBlock.tsx +3 -1
  114. package/src/components/ApplicationForm/ApplicationForm.example.json +87 -0
  115. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +60 -0
  116. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +60 -0
  117. package/src/components/Blocks.mobile.ts +2 -0
  118. package/src/components/Blocks.ts +2 -0
  119. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -0
  120. package/src/components/GalleryLayout/GalleryLayout.example.json +102 -0
  121. package/src/components/GalleryLayout/GalleryLayout.fixture.tsx +61 -0
  122. package/src/components/GalleryLayout/GalleryLayout.tsx +140 -0
  123. package/src/components/GalleryLayout/GalleryLayout.ui.json +1 -0
  124. package/src/components/GalleryLayout/GalleryLayoutContent.ts +16 -0
  125. package/src/model/FormTypeFieldDef.ts +2 -1
  126. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +60 -23
  127. package/src/ui-kit/BaseTile/BaseTile.tsx +11 -7
@@ -1,7 +1,7 @@
1
1
  import { type UNIComponent } from '@redneckz/uni-jsx';
2
2
  import { type JSONSchema7Definition } from 'json-schema';
3
3
  import { type SlotName } from '../model/BlockDecorator';
4
- import { type BlockDef } from '../model/ContentPageDef';
4
+ import { type BlockDef, type Slot } from '../model/ContentPageDef';
5
5
  import { type VNode } from '../model/VNode';
6
6
  import { type UniBlockProps } from './UniBlockProps';
7
7
  export interface UniBlockMeta<Props extends UniBlockProps = UniBlockProps> {
@@ -11,6 +11,8 @@ export interface UniBlockMeta<Props extends UniBlockProps = UniBlockProps> {
11
11
  exclude?: string[];
12
12
  };
13
13
  childSchema?: (content: BlockDef['content']) => Record<string, JSONSchema7Definition>;
14
+ allowAddChild?: (slot?: Slot) => boolean;
15
+ allowRemoveChild?: (slot?: Slot) => boolean;
14
16
  slots?: (props: Props) => SlotName[];
15
17
  }
16
18
  export declare type UniBlockComponent<Props extends UniBlockProps = UniBlockProps> = UniBlockMeta<Props> & UNIComponent<Props, any, VNode | VNode[]>;