@redneckz/wildless-cms-uni-blocks 0.14.975 → 0.14.976

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 (45) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +16 -11
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/GalleryLayout/utils.d.ts +1 -1
  5. package/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
  6. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  7. package/bundle/model/HeadlineType.d.ts +15 -8
  8. package/dist/components/GalleryLayout/utils.d.ts +1 -1
  9. package/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
  10. package/dist/components/ProductBlock/ProductBlock.js +15 -10
  11. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  12. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  13. package/dist/model/HeadlineType.d.ts +15 -8
  14. package/lib/components/GalleryLayout/utils.d.ts +1 -1
  15. package/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
  16. package/lib/components/ProductBlock/ProductBlock.js +15 -10
  17. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  18. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  19. package/lib/model/HeadlineType.d.ts +15 -8
  20. package/mobile/bundle/bundle.umd.js +16 -11
  21. package/mobile/bundle/bundle.umd.min.js +1 -1
  22. package/mobile/bundle/components/GalleryLayout/utils.d.ts +1 -1
  23. package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
  24. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  25. package/mobile/bundle/model/HeadlineType.d.ts +15 -8
  26. package/mobile/dist/components/GalleryLayout/utils.d.ts +1 -1
  27. package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
  28. package/mobile/dist/components/ProductBlock/ProductBlock.js +15 -10
  29. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  30. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  31. package/mobile/dist/model/HeadlineType.d.ts +15 -8
  32. package/mobile/lib/components/GalleryLayout/utils.d.ts +1 -1
  33. package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
  34. package/mobile/lib/components/ProductBlock/ProductBlock.js +15 -10
  35. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  36. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  37. package/mobile/lib/model/HeadlineType.d.ts +15 -8
  38. package/mobile/src/components/ProductBlock/ProductBlock.tsx +26 -17
  39. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -5
  40. package/mobile/src/model/HeadlineType.ts +16 -8
  41. package/package.json +1 -1
  42. package/src/components/ProductBlock/ProductBlock.fixture.tsx +16 -7
  43. package/src/components/ProductBlock/ProductBlock.tsx +26 -17
  44. package/src/components/ProductBlock/ProductBlockContent.ts +2 -5
  45. package/src/model/HeadlineType.ts +16 -8
@@ -46,26 +46,34 @@ export type AdditionalDescriptionProps = {
46
46
  additionalDescription?: string;
47
47
  };
48
48
 
49
- export type DynamicDescriptionProps = {
50
- /** @title Динамическое описание по значению utm-метки */
51
- dynamicUtmDescription?: DynamicDescription;
49
+ export type DynamicTextProps = {
50
+ /** @title Динамическое описание по значению query-параметра */
51
+ dynamicQueryParamText?: DynamicText;
52
52
  /** @title Справочник значений */
53
- dynamicDescriptionSource?: JSONRefObject;
53
+ dynamicTextSource?: JSONRefObject;
54
54
  };
55
55
 
56
56
  export type HeadlineCommonProps = TitleProps &
57
57
  DescriptionProps &
58
58
  AlignProps &
59
59
  AdditionalDescriptionProps &
60
- DynamicDescriptionProps;
60
+ DynamicTextProps;
61
61
 
62
62
  export type HeadlineProps = HeadlineCommonProps & {
63
63
  headlineVersion?: HeadlineVersion;
64
64
  };
65
65
 
66
- export type DynamicDescription = {
67
- /** @title utm-метка */
68
- utm?: string;
66
+ export type DynamicText = {
67
+ /** @title query-параметр */
68
+ queryParam?: string;
69
69
  /** @title Заменяемый текст */
70
70
  value?: string;
71
+ /** @title Тип текста, где будет произведена замена */
72
+ textType?: TextType;
71
73
  };
74
+
75
+ /**
76
+ * @title Тип текста
77
+ * @enumNames ["Описание", "Заголовок"]
78
+ */
79
+ export type TextType = 'description' | 'title';