@designcrowd/library.brand-page 5.17.6-jy-1 → 5.17.6

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 (48) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-D_Hnsj28.js → CreatedOnBrandCrowd-de-de-BI2KuOEF.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CMyfwczi.js → CreatedOnBrandCrowd-en-us-BYLJCjLJ.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-BvYhSzAw.js → CreatedOnBrandCrowd-es-es-Y_D6cuGE.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BSRSPd2Z.js → CreatedOnBrandCrowd-fr-ca-CqCBRjYh.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BSRSPd2Z.js → CreatedOnBrandCrowd-fr-fr-CqCBRjYh.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CcAmuirx.js → CreatedOnBrandCrowd-pt-br-Bt0YF6DA.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CcAmuirx.js → CreatedOnBrandCrowd-pt-pt-Bt0YF6DA.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-CpWwhMNV.js → CreatedOnDcom-de-de-CEk8FBEG.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-m17A05Ff.js → CreatedOnDcom-en-us-DWw4Tm2L.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-CqwD5d0B.js → CreatedOnDcom-es-es-DpG-8o98.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-D7DqzKEu.js → CreatedOnDcom-fr-ca-CEla7RmR.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DsXxNbr1.js → CreatedOnDcom-fr-fr-DRXeVTlV.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-G1fjIhbo.js → CreatedOnDcom-pt-br-Bzu_phZc.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-D7yYI2ID.js → CreatedOnDcom-pt-pt-DWax8Er7.js} +1 -1
  15. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +2 -15
  16. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +11 -4
  17. package/lib/src/brand-page-maker/composables/ai-chat/useAiTextEditPrompts.js +22 -4
  18. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +22 -4
  19. package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +1 -14
  20. package/lib/src/brand-page-maker/composables/useEventTracker.js +4 -85
  21. package/lib/src/index.mjs +1 -1
  22. package/lib/src/{lib-_9WqRMcr.js → lib-DODSa6QK.js} +3543 -3558
  23. package/lib/src/shared/content-settings/components/booking-url-field/BookingUrlField.mixin.js +4 -1
  24. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -14
  25. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +17 -3
  26. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -14
  27. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +2 -15
  28. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +11 -4
  29. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +1 -14
  30. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +7 -2
  31. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -14
  32. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -14
  33. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +1 -14
  34. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -14
  35. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +1 -14
  36. package/package.json +1 -1
  37. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +13 -9
  38. package/src/brand-page-maker/components/save-contact/SaveContact.vue +15 -8
  39. package/src/brand-page-maker/composables/ai-chat/useAiTextEditPrompts.ts +22 -12
  40. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +22 -4
  41. package/src/brand-page-maker/composables/useEventTracker.ts +4 -109
  42. package/src/shared/content-settings/components/booking-url-field/BookingUrlField.mixin.ts +4 -1
  43. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +17 -10
  44. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +13 -7
  45. package/src/shared/content-settings/components/generate-ai-button/GenerateAiButton.vue +11 -2
  46. package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +46 -16
  47. package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +7 -1
  48. package/src/shared/logo-settings/components/LogoTemplateSearch.vue +21 -9
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-_9WqRMcr.js";
2
+ import { _ as t } from "./lib-DODSa6QK.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-_9WqRMcr.js";
2
+ import { _ as t } from "./lib-DODSa6QK.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-_9WqRMcr.js";
2
+ import { _ as t } from "./lib-DODSa6QK.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-_9WqRMcr.js";
2
+ import { _ as t } from "./lib-DODSa6QK.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-_9WqRMcr.js";
2
+ import { _ as t } from "./lib-DODSa6QK.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-_9WqRMcr.js";
2
+ import { _ as t } from "./lib-DODSa6QK.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-_9WqRMcr.js";
2
+ import { _ as t } from "./lib-DODSa6QK.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-_9WqRMcr.js";
2
+ import { _ as e } from "./lib-DODSa6QK.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-_9WqRMcr.js";
2
+ import { _ as e } from "./lib-DODSa6QK.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-_9WqRMcr.js";
2
+ import { _ as e } from "./lib-DODSa6QK.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-_9WqRMcr.js";
2
+ import { _ as e } from "./lib-DODSa6QK.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-_9WqRMcr.js";
2
+ import { _ as e } from "./lib-DODSa6QK.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-_9WqRMcr.js";
2
+ import { _ as M } from "./lib-DODSa6QK.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-_9WqRMcr.js";
2
+ import { _ as M } from "./lib-DODSa6QK.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1022,6 +1022,7 @@ declare const _default: import("vue").DefineComponent<{}, {
1022
1022
  setUpsellBridgeState: (props: import("@brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
1023
1023
  setDomainUpsellBridgeState: (props: import("@brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
1024
1024
  subscribe: (callbackFn: (event: import("@brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
1025
+ sendWebsiteEvent: (event: import("@brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void;
1025
1026
  sendWebsiteMakerOpenEvent: (location: string) => void;
1026
1027
  sendUpsellOpenEvent: (cta_location?: string | undefined) => void;
1027
1028
  sendDomainUpsellOpenEvent: () => void;
@@ -1046,20 +1047,6 @@ declare const _default: import("vue").DefineComponent<{}, {
1046
1047
  sendGenerateTextContinuationEvent: (cta_location: string, continuation: string | null) => void;
1047
1048
  sendAiSendPromptEvent: (ctaLocation: string) => void;
1048
1049
  sendAiStopGenerationEvent: (ctaLocation: string) => void;
1049
- sendMakerHyperlinkClickEvent: (linkType: string, contentType: string) => void;
1050
- sendMakerHyperlinkAddEvent: (linkType: string, contentType: string) => void;
1051
- sendMakerHyperlinkRemoveEvent: (linkType: string, contentType: string) => void;
1052
- sendAiClickSuggestedPromptEvent: (ctaLocation: string, prompt: string) => void;
1053
- sendAiCopyResponseEvent: (ctaLocation: string) => void;
1054
- sendAiRegenerateTextEvent: (ctaLocation: string) => void;
1055
- sendMakerSelectContentEvent: (contentCategory: string, contentType: string, selectLocation: string) => void;
1056
- sendMakerAddContentEvent: (contentCategory: string, contentType: string, selectLocation: string) => void;
1057
- sendMakerRemoveContentEvent: (contentCategory: string, contentType: string, selectLocation: string) => void;
1058
- sendMakerSwitchLogoEvent: (selectLocation: string) => void;
1059
- sendMakerSwitchLogoModalEvent: (selectLocation: string, continuation?: string | undefined) => void;
1060
- sendMakerCalendlyLinkClickedEvent: () => void;
1061
- sendDigitalBusinessCardsSaveContactToggleEvent: (ctaLocation: string, toggleValue: "enabled" | "disabled") => void;
1062
- sendDigitalBusinessCardsHidePopupEvent: (ctaLocation: string, toggleValue: "enabled" | "disabled") => void;
1063
1050
  };
1064
1051
  externalEditor: import("@tiptap/vue-3").Editor;
1065
1052
  styleSettingsStore: import("pinia").Store<"uiStyleSettings", import("@shared/style-settings/store").StyleSettingsState, {
@@ -1152,7 +1139,7 @@ declare const _default: import("vue").DefineComponent<{}, {
1152
1139
  onPageFooterContainerClick(): void;
1153
1140
  onSaveContactWidgetClick(): void;
1154
1141
  onLogoClick(tabName: string): void;
1155
- sendMakerSelectContentEvent(): void;
1142
+ sendSelectContentEvent(): void;
1156
1143
  }, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1157
1144
  context: {
1158
1145
  type: import("vue").PropType<import("@brand-page").BrandPageContext>;
@@ -9,7 +9,7 @@ import { useUiSideBarStore } from '@shared/side-bar/store';
9
9
  import { SIDE_BAR_TAB_NAMES } from '@brand-page-maker/constants';
10
10
  import { useUiPageSettingsStore } from '@shared/page-settings/store';
11
11
  import { PAGE_SECTIONS } from '@shared/page-settings/models';
12
- import { SELECT_LOCATIONS, useEventTracker, } from '@brand-page-maker/composables/useEventTracker';
12
+ import { EVENTS, SELECT_LOCATIONS, useEventTracker, } from '@brand-page-maker/composables/useEventTracker';
13
13
  import debounce from 'lodash.debounce';
14
14
  import { transformToRTE, RTE_ALLOWED_SECTION_TYPES, } from '@brand-page-maker/utils';
15
15
  import { useExternalRichTextEditor } from '@brand-page-maker/composables/rich-text-editor/useRichTextEditor';
@@ -64,7 +64,7 @@ export default defineComponent({
64
64
  },
65
65
  created() {
66
66
  if (!this.selectEventDebounceHandler) {
67
- this.selectEventDebounceHandler = debounce(this.sendMakerSelectContentEvent, 500);
67
+ this.selectEventDebounceHandler = debounce(this.sendSelectContentEvent, 500);
68
68
  }
69
69
  },
70
70
  onBeforeUnmount() {
@@ -305,11 +305,18 @@ export default defineComponent({
305
305
  onLogoClick(tabName) {
306
306
  this.sideBarStore.setSelectedTabName({ tabName });
307
307
  },
308
- sendMakerSelectContentEvent() {
308
+ sendSelectContentEvent() {
309
309
  const currentlySelectedItem = this.items.find((item) => item.id === this.contentSettingsStore.selectedItemId);
310
310
  // Send MixPanel select event
311
311
  if (currentlySelectedItem) {
312
- this.eventTracker.sendMakerSelectContentEvent(this.contentSettingsStore.getContentCategory(currentlySelectedItem.type), currentlySelectedItem.type, SELECT_LOCATIONS.SIDEBAR);
312
+ this.eventTracker.sendWebsiteEvent({
313
+ eventName: EVENTS.WEBSITE_MAKER_SELECT_CONTENT,
314
+ eventProps: {
315
+ content_category: this.contentSettingsStore.getContentCategory(currentlySelectedItem.type),
316
+ content_type: currentlySelectedItem.type,
317
+ select_location: SELECT_LOCATIONS.SIDEBAR,
318
+ },
319
+ });
313
320
  }
314
321
  },
315
322
  },
@@ -1,6 +1,6 @@
1
1
  import { computed } from 'vue';
2
2
  import { useBrandPageMakerStore } from '../../stores';
3
- import { GENERATE_AI_SUGGESTED_PROMPT, useEventTracker, } from '../../composables/useEventTracker';
3
+ import { EVENTS, GENERATE_AI_SUGGESTED_PROMPT, useEventTracker, } from '../../composables/useEventTracker';
4
4
  import { generateAiModalTr, contentSettingsTr, } from '../../../composables/useTranslate';
5
5
  import { getPlainTextFromRTE } from '../../utils/rich-text-editor.util';
6
6
  import { useUiContentSettingsStore } from '../../../shared/content-settings/store';
@@ -78,18 +78,36 @@ export function useAiTextEditPrompts(options) {
78
78
  const promptKey = buildPromptKey('generateTextPrompt');
79
79
  const prompt = generateAiModalTr(promptKey, getPromptParams(true));
80
80
  options.promptText.value = prompt;
81
- eventTracker.sendAiClickSuggestedPromptEvent(options.ctaLocation.value, GENERATE_AI_SUGGESTED_PROMPT.GENERATE_TEXT);
81
+ eventTracker.sendWebsiteEvent({
82
+ eventName: EVENTS.WEBSITE_MAKER_AI_CLICK_SUGGESTED_PROMPT,
83
+ eventProps: {
84
+ cta_location: options.ctaLocation.value,
85
+ prompt: GENERATE_AI_SUGGESTED_PROMPT.GENERATE_TEXT,
86
+ },
87
+ });
82
88
  };
83
89
  const onImproveTextClick = () => {
84
90
  const promptKey = buildPromptKey('improveTextPrompt');
85
91
  const prompt = generateAiModalTr(promptKey, getPromptParams(false));
86
92
  options.promptText.value = prompt;
87
- eventTracker.sendAiClickSuggestedPromptEvent(options.ctaLocation.value, GENERATE_AI_SUGGESTED_PROMPT.IMPROVE_TEXT);
93
+ eventTracker.sendWebsiteEvent({
94
+ eventName: EVENTS.WEBSITE_MAKER_AI_CLICK_SUGGESTED_PROMPT,
95
+ eventProps: {
96
+ cta_location: options.ctaLocation.value,
97
+ prompt: GENERATE_AI_SUGGESTED_PROMPT.IMPROVE_TEXT,
98
+ },
99
+ });
88
100
  };
89
101
  const onSpellCheckClick = () => {
90
102
  const prompt = generateAiModalTr('spellCheckPrompt');
91
103
  options.promptText.value = prompt;
92
- eventTracker.sendAiClickSuggestedPromptEvent(options.ctaLocation.value, GENERATE_AI_SUGGESTED_PROMPT.SPELL_CHECK);
104
+ eventTracker.sendWebsiteEvent({
105
+ eventName: EVENTS.WEBSITE_MAKER_AI_CLICK_SUGGESTED_PROMPT,
106
+ eventProps: {
107
+ cta_location: options.ctaLocation.value,
108
+ prompt: GENERATE_AI_SUGGESTED_PROMPT.SPELL_CHECK,
109
+ },
110
+ });
93
111
  };
94
112
  // Computed suggested prompts with handlers and disabled states
95
113
  const suggestedPrompts = computed(() => {
@@ -27,7 +27,7 @@ import { AutoLink } from './extensions/AutoLink';
27
27
  import { isHrefPageId, useHyperlink } from './hyperlink';
28
28
  import { useBubbleMenu } from './bubbleMenu';
29
29
  import { hasLogoColorVar, isLogoColor, getRTEColor, } from '@brand-page-maker/utils/rich-text-editor.util';
30
- import { useEventTracker } from '../useEventTracker';
30
+ import { useEventTracker, EVENTS } from '../useEventTracker';
31
31
  export const useExternalRichTextEditor = () => {
32
32
  const externalEditor = new Editor({
33
33
  editable: false,
@@ -521,7 +521,13 @@ export const useRichTextEditor = (model, props, emit, fontSettings, fontStyleDro
521
521
  : 'external_link';
522
522
  switch (action) {
523
523
  case 'toggle':
524
- eventTracker.sendMakerHyperlinkClickEvent(linkType, props.contentType);
524
+ eventTracker.sendWebsiteEvent({
525
+ eventName: EVENTS.WEBSITE_MAKER_HYPERLINK_CLICK,
526
+ eventProps: {
527
+ link_type: linkType,
528
+ content_type: props.contentType,
529
+ },
530
+ });
525
531
  isHyperlinkPopupOpen.value = !isHyperlinkPopupOpen.value;
526
532
  if (isHyperlinkPopupOpen.value) {
527
533
  if (data?.href && data?.text) {
@@ -550,7 +556,13 @@ export const useRichTextEditor = (model, props, emit, fontSettings, fontStyleDro
550
556
  break;
551
557
  case 'apply':
552
558
  // Track Mixpanel event for hyperlink attachment
553
- eventTracker.sendMakerHyperlinkAddEvent(linkType, props.contentType);
559
+ eventTracker.sendWebsiteEvent({
560
+ eventName: EVENTS.WEBSITE_MAKER_HYPERLINK_ADD,
561
+ eventProps: {
562
+ link_type: linkType,
563
+ content_type: props.contentType,
564
+ },
565
+ });
554
566
  const url = hyperlinkValue.value.value;
555
567
  const text = markedText.value;
556
568
  if (!url.trim()) {
@@ -565,7 +577,13 @@ export const useRichTextEditor = (model, props, emit, fontSettings, fontStyleDro
565
577
  isHyperlinkPopupOpen.value = false;
566
578
  break;
567
579
  case 'remove':
568
- eventTracker.sendMakerHyperlinkRemoveEvent(linkType, props.contentType);
580
+ eventTracker.sendWebsiteEvent({
581
+ eventName: EVENTS.WEBSITE_MAKER_HYPERLINK_REMOVE,
582
+ eventProps: {
583
+ link_type: linkType,
584
+ content_type: props.contentType,
585
+ },
586
+ });
569
587
  removeHyperlinkFromComposable();
570
588
  isHyperlinkPopupOpen.value = false;
571
589
  break;
@@ -129,6 +129,7 @@ declare const useEventTracker: () => {
129
129
  setUpsellBridgeState: (props: BpUpsellEventProps) => void;
130
130
  setDomainUpsellBridgeState: (props: BpUpsellEventProps) => void;
131
131
  subscribe: (callbackFn: (event: BpEventTrackerEvent) => void) => void;
132
+ sendWebsiteEvent: (event: BpEventTrackerEvent) => void;
132
133
  sendWebsiteMakerOpenEvent: (location: string) => void;
133
134
  sendUpsellOpenEvent: (cta_location?: string) => void;
134
135
  sendDomainUpsellOpenEvent: () => void;
@@ -153,19 +154,5 @@ declare const useEventTracker: () => {
153
154
  sendGenerateTextContinuationEvent: (cta_location: string, continuation: string | null) => void;
154
155
  sendAiSendPromptEvent: (ctaLocation: string) => void;
155
156
  sendAiStopGenerationEvent: (ctaLocation: string) => void;
156
- sendMakerHyperlinkClickEvent: (linkType: string, contentType: string) => void;
157
- sendMakerHyperlinkAddEvent: (linkType: string, contentType: string) => void;
158
- sendMakerHyperlinkRemoveEvent: (linkType: string, contentType: string) => void;
159
- sendAiClickSuggestedPromptEvent: (ctaLocation: string, prompt: string) => void;
160
- sendAiCopyResponseEvent: (ctaLocation: string) => void;
161
- sendAiRegenerateTextEvent: (ctaLocation: string) => void;
162
- sendMakerSelectContentEvent: (contentCategory: string, contentType: string, selectLocation: string) => void;
163
- sendMakerAddContentEvent: (contentCategory: string, contentType: string, selectLocation: string) => void;
164
- sendMakerRemoveContentEvent: (contentCategory: string, contentType: string, selectLocation: string) => void;
165
- sendMakerSwitchLogoEvent: (selectLocation: string) => void;
166
- sendMakerSwitchLogoModalEvent: (selectLocation: string, continuation?: string) => void;
167
- sendMakerCalendlyLinkClickedEvent: () => void;
168
- sendDigitalBusinessCardsSaveContactToggleEvent: (ctaLocation: string, toggleValue: 'enabled' | 'disabled') => void;
169
- sendDigitalBusinessCardsHidePopupEvent: (ctaLocation: string, toggleValue: 'enabled' | 'disabled') => void;
170
157
  };
171
158
  export { useEventTracker };
@@ -172,6 +172,10 @@ const useEventTracker = () => {
172
172
  subscribe: (callbackFn) => {
173
173
  LISTENERS.value.push(callbackFn);
174
174
  },
175
+ // Publish event to subscriber
176
+ sendWebsiteEvent: (event) => {
177
+ _publishEvent(event.eventName, event.eventProps);
178
+ },
175
179
  // Open post or pre purchase maker
176
180
  sendWebsiteMakerOpenEvent: (location) => {
177
181
  _publishEvent(EVENTS.WEBSITE_MAKER_OPEN, {
@@ -310,91 +314,6 @@ const useEventTracker = () => {
310
314
  cta_location: ctaLocation,
311
315
  });
312
316
  },
313
- // Hyperlink events
314
- sendMakerHyperlinkClickEvent: (linkType, contentType) => {
315
- _publishEvent(EVENTS.WEBSITE_MAKER_HYPERLINK_CLICK, {
316
- link_type: linkType,
317
- content_type: contentType,
318
- });
319
- },
320
- sendMakerHyperlinkAddEvent: (linkType, contentType) => {
321
- _publishEvent(EVENTS.WEBSITE_MAKER_HYPERLINK_ADD, {
322
- link_type: linkType,
323
- content_type: contentType,
324
- });
325
- },
326
- sendMakerHyperlinkRemoveEvent: (linkType, contentType) => {
327
- _publishEvent(EVENTS.WEBSITE_MAKER_HYPERLINK_REMOVE, {
328
- link_type: linkType,
329
- content_type: contentType,
330
- });
331
- },
332
- // AI suggested prompt
333
- sendAiClickSuggestedPromptEvent: (ctaLocation, prompt) => {
334
- _publishEvent(EVENTS.WEBSITE_MAKER_AI_CLICK_SUGGESTED_PROMPT, {
335
- cta_location: ctaLocation,
336
- prompt,
337
- });
338
- },
339
- // AI modal events
340
- sendAiCopyResponseEvent: (ctaLocation) => {
341
- _publishEvent(EVENTS.WEBSITE_MAKER_AI_COPY_RESPONSE, {
342
- cta_location: ctaLocation,
343
- });
344
- },
345
- sendAiRegenerateTextEvent: (ctaLocation) => {
346
- _publishEvent(EVENTS.WEBSITE_MAKER_AI_REGENERATE_TEXT, {
347
- cta_location: ctaLocation,
348
- });
349
- },
350
- // Content management
351
- sendMakerSelectContentEvent: (contentCategory, contentType, selectLocation) => {
352
- _publishEvent(EVENTS.WEBSITE_MAKER_SELECT_CONTENT, {
353
- content_category: contentCategory,
354
- content_type: contentType,
355
- select_location: selectLocation,
356
- });
357
- },
358
- sendMakerAddContentEvent: (contentCategory, contentType, selectLocation) => {
359
- _publishEvent(EVENTS.WEBSITE_MAKER_ADD_CONTENT, {
360
- content_category: contentCategory,
361
- content_type: contentType,
362
- select_location: selectLocation,
363
- });
364
- },
365
- sendMakerRemoveContentEvent: (contentCategory, contentType, selectLocation) => {
366
- _publishEvent(EVENTS.WEBSITE_MAKER_REMOVE_CONTENT, {
367
- content_category: contentCategory,
368
- content_type: contentType,
369
- select_location: selectLocation,
370
- });
371
- },
372
- // Logo events
373
- sendMakerSwitchLogoEvent: (selectLocation) => {
374
- _publishEvent(EVENTS.WEBSITE_MAKER_SWITCH_LOGO, {
375
- select_location: selectLocation,
376
- });
377
- },
378
- sendMakerSwitchLogoModalEvent: (selectLocation, continuation) => {
379
- _publishEvent(EVENTS.WEBSITE_MAKER_SWITCH_LOGO_MODAL, {
380
- select_location: selectLocation,
381
- ...(continuation !== undefined && { continuation }),
382
- });
383
- },
384
- // Booking URL
385
- sendMakerCalendlyLinkClickedEvent: () => {
386
- _publishEvent(EVENTS.WEBSITE_MAKER_CALENDLY_LINK_CLICKED, {});
387
- },
388
- // Digital Business Cards
389
- sendDigitalBusinessCardsSaveContactToggleEvent: (ctaLocation, toggleValue) => {
390
- _publishEvent(EVENTS.WEBSITE_MAKER_DIGITAL_BUSINESS_CARDS_SAVE_CONTACT_TOGGLE, { cta_location: ctaLocation, toggle_value: toggleValue });
391
- },
392
- sendDigitalBusinessCardsHidePopupEvent: (ctaLocation, toggleValue) => {
393
- _publishEvent(EVENTS.WEBSITE_MAKER_DIGITAL_BUSINESS_CARDS_HIDE_POPUP, {
394
- cta_location: ctaLocation,
395
- toggle_value: toggleValue,
396
- });
397
- },
398
317
  ...gettyVideoEvents,
399
318
  ...publishedWebsiteEvents,
400
319
  sendShippingToggleEvent: (isEnabled) => {
package/lib/src/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as E, a as T, b as s, c as I, d as S, e as N, f as e, B as A, g as O, h as C, i as G, j as D, k as P, l as t, m as R, n as L, o as M, p as o, q as r, r as b, s as n, t as F, u as l, v as i, w as g, x as B, y as c, z as Y, C as U, D as d, E as u, F as H, G as p, H as y, I as K, J as k, K as m, L as V, M as X, N as h, O as v, P as W, Q as x, R as f, S as z, T as Z, U as w, V as j, W as Q, X as q, Y as J, Z as $, $ as aa, a0 as _a, a1 as Ea, a2 as Ta, a3 as sa, a4 as Ia, a5 as Sa, a6 as Na, a7 as ea, a8 as Aa, a9 as Oa, aa as Ca, ab as Ga, ac as Da, ad as Pa, ae as ta, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as ba, al as na, am as Fa, an as la, ao as ia, ap as ga, aq as Ba, ar as ca, as as Ya, at as Ua, au as da, av as ua, aw as Ha, ax as pa, ay as ya, az as Ka, aA as ka, aB as ma, aC as Va, aD as Xa, aE as ha, aF as va, aG as Wa, aH as xa, aI as fa, aJ as za, aK as Za, aL as wa, aM as ja, aN as Qa, aO as qa, aP as Ja, aQ as $a, aR as a_, aS as __, aT as E_, aU as T_, aV as s_, aW as I_, aX as S_, aY as N_, aZ as e_, a_ as A_, a$ as O_, b0 as C_, b1 as G_, b2 as D_, b3 as P_, b4 as t_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as b_, bb as n_, bc as F_, bd as l_, be as i_, bf as g_, bg as B_, bh as c_, bi as Y_, bj as U_, bk as d_, bl as u_, bm as H_, bn as p_, bo as y_, bp as K_, bq as k_, br as m_, bs as V_, bt as X_, bu as h_, bv as v_, bw as W_, bx as x_, by as f_, bz as z_, bA as Z_, bB as w_, bC as j_, bD as Q_, bE as q_, bF as J_, bG as $_, bH as aE, bI as _E, bJ as EE, bK as TE, bL as sE, bM as IE, bN as SE, bO as NE, bP as eE, bQ as AE, bR as OE, bS as CE, bT as GE, bU as DE, bV as PE, bW as tE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as bE, c1 as nE, c2 as FE, c3 as lE, c4 as iE, c5 as gE, c6 as BE, c7 as cE, c8 as YE, c9 as UE, ca as dE, cb as uE, cc as HE, cd as pE, ce as yE, cf as KE, cg as kE, ch as mE, ci as VE, cj as XE, ck as hE, cl as vE, cm as WE } from "./lib-_9WqRMcr.js";
1
+ import { A as E, a as T, b as s, c as I, d as S, e as N, f as e, B as A, g as O, h as C, i as G, j as D, k as P, l as t, m as R, n as L, o as M, p as o, q as r, r as b, s as n, t as F, u as l, v as i, w as g, x as B, y as c, z as Y, C as U, D as d, E as u, F as H, G as p, H as y, I as K, J as k, K as m, L as V, M as X, N as h, O as v, P as W, Q as x, R as f, S as z, T as Z, U as w, V as j, W as Q, X as q, Y as J, Z as $, $ as aa, a0 as _a, a1 as Ea, a2 as Ta, a3 as sa, a4 as Ia, a5 as Sa, a6 as Na, a7 as ea, a8 as Aa, a9 as Oa, aa as Ca, ab as Ga, ac as Da, ad as Pa, ae as ta, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as ba, al as na, am as Fa, an as la, ao as ia, ap as ga, aq as Ba, ar as ca, as as Ya, at as Ua, au as da, av as ua, aw as Ha, ax as pa, ay as ya, az as Ka, aA as ka, aB as ma, aC as Va, aD as Xa, aE as ha, aF as va, aG as Wa, aH as xa, aI as fa, aJ as za, aK as Za, aL as wa, aM as ja, aN as Qa, aO as qa, aP as Ja, aQ as $a, aR as a_, aS as __, aT as E_, aU as T_, aV as s_, aW as I_, aX as S_, aY as N_, aZ as e_, a_ as A_, a$ as O_, b0 as C_, b1 as G_, b2 as D_, b3 as P_, b4 as t_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as b_, bb as n_, bc as F_, bd as l_, be as i_, bf as g_, bg as B_, bh as c_, bi as Y_, bj as U_, bk as d_, bl as u_, bm as H_, bn as p_, bo as y_, bp as K_, bq as k_, br as m_, bs as V_, bt as X_, bu as h_, bv as v_, bw as W_, bx as x_, by as f_, bz as z_, bA as Z_, bB as w_, bC as j_, bD as Q_, bE as q_, bF as J_, bG as $_, bH as aE, bI as _E, bJ as EE, bK as TE, bL as sE, bM as IE, bN as SE, bO as NE, bP as eE, bQ as AE, bR as OE, bS as CE, bT as GE, bU as DE, bV as PE, bW as tE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as bE, c1 as nE, c2 as FE, c3 as lE, c4 as iE, c5 as gE, c6 as BE, c7 as cE, c8 as YE, c9 as UE, ca as dE, cb as uE, cc as HE, cd as pE, ce as yE, cf as KE, cg as kE, ch as mE, ci as VE, cj as XE, ck as hE, cl as vE, cm as WE } from "./lib-DODSa6QK.js";
2
2
  import { createPinia as fE, setActivePinia as zE } from "pinia";
3
3
  export {
4
4
  E as ABOUT_SECTION_SETTINGS_CONFIG,