@apptegy/nuxt-navigation 0.1.111 → 0.1.112

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.
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "nuxt": ">=3.0.0"
5
5
  },
6
6
  "configKey": "@apptegy/nuxt-navigation",
7
- "version": "0.1.111",
7
+ "version": "0.1.112",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.1",
10
10
  "unbuild": "unknown"
@@ -29,27 +29,7 @@ type __VLS_Slots = {} & {
29
29
  } & {
30
30
  notifications?: (props: typeof __VLS_15) => any;
31
31
  };
32
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
- "selected-option": (...args: any[]) => void;
34
- "user-logout": (...args: any[]) => void;
35
- "update:notificationPanelOpen": (...args: any[]) => void;
36
- "update:activeTabId": (...args: any[]) => void;
37
- "update:activeFilterId": (...args: any[]) => void;
38
- "notifications-clear-all": (...args: any[]) => void;
39
- "notifications-dismiss": (...args: any[]) => void;
40
- "notifications-select": (...args: any[]) => void;
41
- "notification-click": (...args: any[]) => void;
42
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
43
- "onSelected-option"?: ((...args: any[]) => any) | undefined;
44
- "onUser-logout"?: ((...args: any[]) => any) | undefined;
45
- "onUpdate:notificationPanelOpen"?: ((...args: any[]) => any) | undefined;
46
- "onUpdate:activeTabId"?: ((...args: any[]) => any) | undefined;
47
- "onUpdate:activeFilterId"?: ((...args: any[]) => any) | undefined;
48
- "onNotifications-clear-all"?: ((...args: any[]) => any) | undefined;
49
- "onNotifications-dismiss"?: ((...args: any[]) => any) | undefined;
50
- "onNotifications-select"?: ((...args: any[]) => any) | undefined;
51
- "onNotification-click"?: ((...args: any[]) => any) | undefined;
52
- }>, {
32
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
53
33
  showNotifications: boolean;
54
34
  notificationsResponse: INotificationsApiResponse | null;
55
35
  notificationsLoading: boolean;
@@ -3,10 +3,10 @@ type __VLS_Props = {
3
3
  item: INotificationItem;
4
4
  };
5
5
  declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- select: (item: INotificationItem) => any;
7
6
  dismiss: (id: string) => any;
7
+ select: (item: INotificationItem) => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onSelect?: ((item: INotificationItem) => any) | undefined;
10
9
  onDismiss?: ((id: string) => any) | undefined;
10
+ onSelect?: ((item: INotificationItem) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
@@ -8,11 +8,6 @@ type __VLS_Props = {
8
8
  mobile?: boolean;
9
9
  };
10
10
  declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- select: (payload: {
12
- item: INotificationsPanelData["groups"][number]["notifications"][number];
13
- tabId: string;
14
- filterId: string;
15
- }) => any;
16
11
  "update:activeTabId": (id: string) => any;
17
12
  "update:activeFilterId": (id: string) => any;
18
13
  "clear-all": (payload: {
@@ -25,13 +20,13 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {},
25
20
  tabId: string;
26
21
  filterId: string;
27
22
  }) => any;
28
- close: () => any;
29
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
- onSelect?: ((payload: {
23
+ select: (payload: {
31
24
  item: INotificationsPanelData["groups"][number]["notifications"][number];
32
25
  tabId: string;
33
26
  filterId: string;
34
- }) => any) | undefined;
27
+ }) => any;
28
+ close: () => any;
29
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
30
  "onUpdate:activeTabId"?: ((id: string) => any) | undefined;
36
31
  "onUpdate:activeFilterId"?: ((id: string) => any) | undefined;
37
32
  "onClear-all"?: ((payload: {
@@ -44,6 +39,11 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {},
44
39
  tabId: string;
45
40
  filterId: string;
46
41
  }) => any) | undefined;
42
+ onSelect?: ((payload: {
43
+ item: INotificationsPanelData["groups"][number]["notifications"][number];
44
+ tabId: string;
45
+ filterId: string;
46
+ }) => any) | undefined;
47
47
  onClose?: (() => any) | undefined;
48
48
  }>, {
49
49
  loading: boolean;
@@ -30,33 +30,31 @@
30
30
  </template>
31
31
 
32
32
  <script setup>
33
- import { useSidebar, computed, ref, useNuxtApp } from "#imports";
33
+ import { useSidebar, computed, ref } from "#imports";
34
34
  const ENGAGE_APP_TEXT = "engage";
35
+ const NEWSLETTERS_APP_TEXT = "Newsletters";
35
36
  const props = defineProps({
36
37
  application: { type: Object, required: true },
37
38
  active: { type: Boolean, required: true },
38
39
  collapsed: { type: Boolean, required: true }
39
40
  });
40
- const { $ld } = useNuxtApp();
41
41
  const { state: expanded } = useSidebar();
42
42
  const isOpen = ref(true);
43
- const isEngageRenameEnabled = computed(() => {
44
- return Boolean($ld?.flags?.engageToNewslettersNameChange);
45
- });
46
- const isNewslettersUrlEnabled = computed(() => {
47
- return Boolean($ld?.flags?.engageToNewslettersUrlChange);
43
+ const isEngageApplication = computed(() => {
44
+ const { text } = props.application || {};
45
+ return text.toLowerCase() === ENGAGE_APP_TEXT;
48
46
  });
49
47
  const appText = computed(() => {
50
48
  const { text } = props.application || {};
51
- if (text.toLowerCase() === ENGAGE_APP_TEXT && isEngageRenameEnabled.value) {
52
- return "Newsletters";
49
+ if (isEngageApplication.value) {
50
+ return NEWSLETTERS_APP_TEXT;
53
51
  }
54
52
  return text.replace("_", " ");
55
53
  });
56
54
  const applicationUrl = computed(() => {
57
- const { text, url } = props.application || {};
55
+ const { url } = props.application || {};
58
56
  if (props.active) return "";
59
- if (text.toLowerCase() === ENGAGE_APP_TEXT && isNewslettersUrlEnabled.value) {
57
+ if (isEngageApplication.value) {
60
58
  return url.replace(/\/engage(?=[/?#]|$)/i, "/newsletters");
61
59
  }
62
60
  return url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apptegy/nuxt-navigation",
3
- "version": "0.1.111",
3
+ "version": "0.1.112",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -36,19 +36,20 @@
36
36
  "primevue": "^4.2.5"
37
37
  },
38
38
  "devDependencies": {
39
- "@nuxt/devtools": "catalog:",
40
- "@nuxt/eslint-config": "catalog:",
41
- "@nuxt/module-builder": "catalog:",
42
- "@nuxt/schema": "catalog:",
43
- "@nuxt/test-utils": "catalog:",
44
- "@types/node": "catalog:",
45
- "eslint": "catalog:",
46
- "nuxt": "catalog:",
39
+ "@nuxt/devtools": "^2.6.2",
40
+ "@nuxt/eslint-config": "^1.6.0",
41
+ "@nuxt/module-builder": "^1.0.1",
42
+ "@nuxt/schema": "^3.17.0",
43
+ "@nuxt/test-utils": "^3.17.0",
44
+ "@types/node": "^22.0.0",
45
+ "eslint": "^9.31.0",
46
+ "nuxt": "^3.17.0",
47
47
  "primevue": "^4.5.4",
48
- "sass": "catalog:",
49
- "typescript": "catalog:",
50
- "vitest": "catalog:",
51
- "vue": "catalog:",
52
- "vue-tsc": "catalog:"
53
- }
48
+ "sass": "^1.89.2",
49
+ "typescript": "~5.8.0",
50
+ "vitest": "^3.2.4",
51
+ "vue": "^3.5.13",
52
+ "vue-tsc": "^3.0.3"
53
+ },
54
+ "gitHead": "cbb3596d2eefade7ab3126e47dccbed676cdcc80"
54
55
  }