@designcrowd/library.brand-page 5.10.1 → 5.10.2

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.
@@ -663,6 +663,9 @@ declare const _default: import("vue").DefineComponent<{}, {
663
663
  sendPublishOptionsForFreeEvent: () => void;
664
664
  sendPublishOptionsForPremiumEvent: () => void;
665
665
  sendPublishOptionsForExitEvent: () => void;
666
+ sendTemplateSearchEvent: (searchString: string) => void;
667
+ sendTemplateSelectEvent: (templateId: string) => void;
668
+ sendTemplateCategorySelectEvent: (category: string) => void;
666
669
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
667
670
  };
668
671
  externalEditor: import("@tiptap/vue-3").Editor;
@@ -410,6 +410,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
410
410
  sendPublishOptionsForFreeEvent: () => void;
411
411
  sendPublishOptionsForPremiumEvent: () => void;
412
412
  sendPublishOptionsForExitEvent: () => void;
413
+ sendTemplateSearchEvent: (searchString: string) => void;
414
+ sendTemplateSelectEvent: (templateId: string) => void;
415
+ sendTemplateCategorySelectEvent: (category: string) => void;
413
416
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
414
417
  };
415
418
  }, {
@@ -4575,6 +4575,9 @@ declare const _default: import("vue").DefineComponent<{}, {
4575
4575
  sendPublishOptionsForFreeEvent: () => void;
4576
4576
  sendPublishOptionsForPremiumEvent: () => void;
4577
4577
  sendPublishOptionsForExitEvent: () => void;
4578
+ sendTemplateSearchEvent: (searchString: string) => void;
4579
+ sendTemplateSelectEvent: (templateId: string) => void;
4580
+ sendTemplateCategorySelectEvent: (category: string) => void;
4578
4581
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
4579
4582
  };
4580
4583
  }, {
@@ -406,6 +406,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
406
406
  sendPublishOptionsForFreeEvent: () => void;
407
407
  sendPublishOptionsForPremiumEvent: () => void;
408
408
  sendPublishOptionsForExitEvent: () => void;
409
+ sendTemplateSearchEvent: (searchString: string) => void;
410
+ sendTemplateSelectEvent: (templateId: string) => void;
411
+ sendTemplateCategorySelectEvent: (category: string) => void;
409
412
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
410
413
  };
411
414
  }, {
@@ -27,6 +27,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
27
27
  sendPublishOptionsForFreeEvent: () => void;
28
28
  sendPublishOptionsForPremiumEvent: () => void;
29
29
  sendPublishOptionsForExitEvent: () => void;
30
+ sendTemplateSearchEvent: (searchString: string) => void;
31
+ sendTemplateSelectEvent: (templateId: string) => void;
32
+ sendTemplateCategorySelectEvent: (category: string) => void;
30
33
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
31
34
  };
32
35
  }, {}, {}, {
@@ -852,6 +852,9 @@ declare const _default: import("vue").DefineComponent<{}, {
852
852
  sendPublishOptionsForFreeEvent: () => void;
853
853
  sendPublishOptionsForPremiumEvent: () => void;
854
854
  sendPublishOptionsForExitEvent: () => void;
855
+ sendTemplateSearchEvent: (searchString: string) => void;
856
+ sendTemplateSelectEvent: (templateId: string) => void;
857
+ sendTemplateCategorySelectEvent: (category: string) => void;
855
858
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
856
859
  };
857
860
  }, {
@@ -555,6 +555,26 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
555
555
  }): void;
556
556
  }>;
557
557
  isDesignCom: import("vue").ComputedRef<boolean>;
558
+ eventTracker: {
559
+ setGlobalEventProps: (props: Omit<import("../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
560
+ setUpsellBridgeState: (props: import("../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
561
+ subscribe: (callbackFn: (event: import("../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
562
+ sendWebsiteEvent: (event: import("../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void;
563
+ sendUpsellOpenEvent: () => void;
564
+ sendUpsellContinuationEvent: (continuation: string) => void;
565
+ sendPublishOpenEvent: () => void;
566
+ sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
567
+ sendWebsiteManageAddPageEvent: (pageName: string) => void;
568
+ sendWebsiteManageRemovePageEvent: (pageName: string) => void;
569
+ sendWebsiteManageReorderPageEvent: (pageName: string) => void;
570
+ sendPublishOptionsForFreeEvent: () => void;
571
+ sendPublishOptionsForPremiumEvent: () => void;
572
+ sendPublishOptionsForExitEvent: () => void;
573
+ sendTemplateSearchEvent: (searchString: string) => void;
574
+ sendTemplateSelectEvent: (templateId: string) => void;
575
+ sendTemplateCategorySelectEvent: (category: string) => void;
576
+ sendSidebarCategoryClickedEvent: (tabName: string) => void;
577
+ };
558
578
  }, {
559
579
  tabs: string[];
560
580
  debounceOnSearch: DebounceHandle | undefined;
@@ -5,6 +5,7 @@ import { TEMPLATE_TABS, TEMPLATE_TAB_DISPLAY_NAMES, } from '../models';
5
5
  import { debounce } from '../../functions';
6
6
  import { useBrandPageContainerStore, useBrandPageMakerStore, useUiStore, } from '../../../brand-page-maker/stores';
7
7
  import { templateSettingsTr } from '../../../composables/useTranslate';
8
+ import { useEventTracker } from '../../../brand-page-maker/composables/useEventTracker';
8
9
  export default defineComponent({
9
10
  props: {
10
11
  numColumns: {
@@ -18,6 +19,7 @@ export default defineComponent({
18
19
  const containerStore = useBrandPageContainerStore();
19
20
  const brandpageMakerStore = useBrandPageMakerStore();
20
21
  const uiStore = useUiStore();
22
+ const eventTracker = useEventTracker();
21
23
  return {
22
24
  isBusy: computed(() => templateSettingsStore.isBusy),
23
25
  pageNo: computed(() => templateSettingsStore.pageNo),
@@ -32,6 +34,7 @@ export default defineComponent({
32
34
  templateSettingsStore,
33
35
  uiStore,
34
36
  isDesignCom: computed(() => containerStore.isDesignCom),
37
+ eventTracker,
35
38
  };
36
39
  },
37
40
  data() {
@@ -126,12 +129,14 @@ export default defineComponent({
126
129
  },
127
130
  async internalOnTemplateSelected(templateId) {
128
131
  await this.templateSettingsStore.onTemplateSelected({ templateId });
132
+ this.eventTracker.sendTemplateSelectEvent(templateId);
129
133
  },
130
134
  async onCategorySelect(category) {
131
135
  await this.selectTab(TEMPLATE_TAB_DISPLAY_NAMES().all);
132
136
  await this.templateSettingsStore.onCategorySelected({
133
137
  categoryName: category.name,
134
138
  });
139
+ this.eventTracker.sendTemplateCategorySelectEvent(category.name);
135
140
  },
136
141
  async selectTab(tabName) {
137
142
  await this.templateSettingsStore.onTabSelected({ tabName });
@@ -160,6 +165,7 @@ export default defineComponent({
160
165
  },
161
166
  onSearchText(value) {
162
167
  this.searchTextValue = value;
168
+ this.eventTracker.sendTemplateSearchEvent(value);
163
169
  if (!this.debounceOnSearch) {
164
170
  return;
165
171
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designcrowd/library.brand-page",
3
3
  "description": "A collection of Maker/Designer applications",
4
- "version": "5.10.1",
4
+ "version": "5.10.2",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -38,6 +38,10 @@ export const EVENTS = {
38
38
  WEBSITE_MAKER_REORDER_PAGE: 'website_maker_reorder_page',
39
39
  WEBSITE_MAKER_PUBLISH_UPSELL_OPTION_MODAL:
40
40
  'website_maker_publish_upsell_option_modal',
41
+ WEBSITE_MAKER_TEMPLATE_SEARCH: 'website_maker_template_search',
42
+ WEBSITE_MAKER_TEMPLATE_SELECT: 'website_maker_template_select',
43
+ WEBSITE_MAKER_TEMPLATE_CATEGORY_SELECT:
44
+ 'website_maker_template_category_select',
41
45
  WEBSITE_SIDEBAR_TAB_CLICKED: 'website_sidebar_tab_clicked',
42
46
  };
43
47
 
@@ -183,6 +187,22 @@ const useEventTracker = () => {
183
187
  PUBLISH_OPTION_MODAL_CONTINUATION_EVENTS.EXIT,
184
188
  });
185
189
  },
190
+ // Template sidebar events
191
+ sendTemplateSearchEvent: (searchString: string) => {
192
+ _publishEvent(EVENTS.WEBSITE_MAKER_TEMPLATE_SEARCH, {
193
+ search_string: searchString,
194
+ });
195
+ },
196
+ sendTemplateSelectEvent: (templateId: string) => {
197
+ _publishEvent(EVENTS.WEBSITE_MAKER_TEMPLATE_SELECT, {
198
+ template_id: templateId,
199
+ });
200
+ },
201
+ sendTemplateCategorySelectEvent: (category: string) => {
202
+ _publishEvent(EVENTS.WEBSITE_MAKER_TEMPLATE_CATEGORY_SELECT, {
203
+ category,
204
+ });
205
+ },
186
206
  sendSidebarCategoryClickedEvent: (tabName: string) => {
187
207
  _publishEvent(EVENTS.WEBSITE_SIDEBAR_TAB_CLICKED, {
188
208
  sidebar_category_tab_name: tabName,
@@ -18,6 +18,8 @@ import {
18
18
  } from '../../../brand-page-maker/stores';
19
19
  import { templateSettingsTr } from '../../../composables/useTranslate';
20
20
 
21
+ import { useEventTracker } from '../../../brand-page-maker/composables/useEventTracker';
22
+
21
23
  export default defineComponent({
22
24
  props: {
23
25
  numColumns: {
@@ -33,6 +35,8 @@ export default defineComponent({
33
35
 
34
36
  const uiStore = useUiStore();
35
37
 
38
+ const eventTracker = useEventTracker();
39
+
36
40
  return {
37
41
  isBusy: computed(() => templateSettingsStore.isBusy),
38
42
  pageNo: computed(() => templateSettingsStore.pageNo),
@@ -51,6 +55,7 @@ export default defineComponent({
51
55
  templateSettingsStore,
52
56
  uiStore,
53
57
  isDesignCom: computed(() => containerStore.isDesignCom),
58
+ eventTracker,
54
59
  };
55
60
  },
56
61
  data() {
@@ -171,6 +176,7 @@ export default defineComponent({
171
176
 
172
177
  async internalOnTemplateSelected(templateId: string) {
173
178
  await this.templateSettingsStore.onTemplateSelected({ templateId });
179
+ this.eventTracker.sendTemplateSelectEvent(templateId);
174
180
  },
175
181
 
176
182
  async onCategorySelect(category: TemplateCategory) {
@@ -178,6 +184,8 @@ export default defineComponent({
178
184
  await this.templateSettingsStore.onCategorySelected({
179
185
  categoryName: category.name,
180
186
  });
187
+
188
+ this.eventTracker.sendTemplateCategorySelectEvent(category.name);
181
189
  },
182
190
 
183
191
  async selectTab(tabName: TemplateTab) {
@@ -217,6 +225,8 @@ export default defineComponent({
217
225
  onSearchText(value: string) {
218
226
  this.searchTextValue = value;
219
227
 
228
+ this.eventTracker.sendTemplateSearchEvent(value);
229
+
220
230
  if (!this.debounceOnSearch) {
221
231
  return;
222
232
  }