@redneckz/wildless-cms-uni-blocks 0.14.1085 → 0.14.1087

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.
@@ -0,0 +1,34 @@
1
+ export const description = 'v0.14.1087';
2
+
3
+ export default (uniPath, content) => {
4
+ modifyBlock(content, uniPath);
5
+
6
+ return content;
7
+ };
8
+
9
+ function modifyBlock(data, uniPath) {
10
+ if (!uniPath.includes('.page.json')) {
11
+ return;
12
+ }
13
+
14
+ const title = data?.title;
15
+ let newTitle = title;
16
+
17
+ if (!title) {
18
+ return;
19
+ }
20
+
21
+ if (title.includes('2024/2025')) {
22
+ newTitle = newTitle.replaceAll('2024/2025', '2026');
23
+ }
24
+
25
+ if (title.includes('2024')) {
26
+ newTitle = newTitle.replaceAll('2024', '2026');
27
+ }
28
+
29
+ if (title.includes('2025')) {
30
+ newTitle = newTitle.replaceAll('2025', '2026');
31
+ }
32
+
33
+ data.title = newTitle;
34
+ }
@@ -13899,6 +13899,16 @@
13899
13899
  }
13900
13900
  }, []);
13901
13901
  const handlePhoneClick = useCallback(() => {
13902
+ handleAspects({
13903
+ aspectsAttributes: [
13904
+ {
13905
+ aspectName: 'ymReachGoal',
13906
+ params: { yandexId: YANDEX_ID, targetName: 'business_call' },
13907
+ },
13908
+ ],
13909
+ aspects,
13910
+ ev: {},
13911
+ });
13902
13912
  globalThis.location.href = 'tel:88001007870';
13903
13913
  }, []);
13904
13914
  return {
@@ -15165,7 +15175,7 @@
15165
15175
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
15166
15176
  });
15167
15177
 
15168
- const packageVersion = "0.14.1084";
15178
+ const packageVersion = "0.14.1086";
15169
15179
 
15170
15180
  exports.Blocks = Blocks;
15171
15181
  exports.ContentPage = ContentPage;