impact-nova 2.5.6 → 2.5.7

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 (63) hide show
  1. package/dist/components/data-display/calendar/calendar-apply-validation.js +45 -33
  2. package/dist/components/data-display/calendar/calendar-day-picker-components.js +62 -54
  3. package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +1 -1
  4. package/dist/components/data-display/calendar/calendar-day-picker-view.js +88 -85
  5. package/dist/components/data-display/calendar/calendar-week-utils.js +23 -22
  6. package/dist/components/data-display/calendar/use-calendar-state.d.ts +1 -1
  7. package/dist/components/data-display/calendar/use-calendar-state.js +47 -47
  8. package/dist/components/flows/guidance/guidance-error-boundary.js +22 -14
  9. package/dist/components/flows/guidance/guidance-layer.js +34 -32
  10. package/dist/components/flows/guidance/help-center/assets/whats-new-guide-icon.svg.js +4 -0
  11. package/dist/components/flows/guidance/help-center/filter-help-center-guides.js +10 -7
  12. package/dist/components/flows/guidance/help-center/guide-catalog-section.d.ts +7 -0
  13. package/dist/components/flows/guidance/help-center/guide-catalog-section.js +24 -0
  14. package/dist/components/flows/guidance/help-center/guide-catalog-utils.d.ts +3 -0
  15. package/dist/components/flows/guidance/help-center/guide-catalog-utils.js +19 -0
  16. package/dist/components/flows/guidance/help-center/guide-catalog.d.ts +1 -1
  17. package/dist/components/flows/guidance/help-center/guide-catalog.js +89 -79
  18. package/dist/components/flows/guidance/help-center/help-center-guide-labels.d.ts +6 -0
  19. package/dist/components/flows/guidance/help-center/help-center-guide-labels.js +33 -0
  20. package/dist/components/flows/guidance/help-center/help-center-guide-row.d.ts +12 -0
  21. package/dist/components/flows/guidance/help-center/help-center-guide-row.js +57 -0
  22. package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.d.ts +9 -0
  23. package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.js +114 -0
  24. package/dist/components/flows/guidance/help-center/help-center-header.d.ts +1 -1
  25. package/dist/components/flows/guidance/help-center/help-center-header.js +20 -16
  26. package/dist/components/flows/guidance/help-center/help-center.constants.d.ts +1 -1
  27. package/dist/components/flows/guidance/help-center/help-center.constants.js +1 -1
  28. package/dist/components/flows/guidance/help-center/help-center.d.ts +3 -1
  29. package/dist/components/flows/guidance/help-center/help-center.js +74 -51
  30. package/dist/components/flows/guidance/help-center/help-center.types.d.ts +9 -1
  31. package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.d.ts +4 -0
  32. package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.js +18 -0
  33. package/dist/components/flows/guidance/help-center.d.ts +4 -2
  34. package/dist/components/flows/guidance/help-center.js +23 -14
  35. package/dist/components/flows/guidance/hooks/useGuidanceOverlayGeometry.js +19 -17
  36. package/dist/components/flows/guidance/index.d.ts +1 -1
  37. package/dist/components/flows/guidance/renderers/announcement-renderer.d.ts +1 -1
  38. package/dist/components/flows/guidance/renderers/announcement-renderer.js +20 -12
  39. package/dist/components/flows/guidance/renderers/guidance-card-shared.d.ts +9 -11
  40. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +124 -177
  41. package/dist/components/flows/guidance/renderers/guidance-renderer-shared.d.ts +1 -1
  42. package/dist/components/flows/guidance/renderers/guidance-renderer-shared.js +57 -72
  43. package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +23 -23
  44. package/dist/components/flows/wizard/wizard.js +41 -38
  45. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +35 -53
  46. package/dist/form-react/registry/defaultFieldRegistrations.js +36 -28
  47. package/dist/form-react/types/fields.types.d.ts +3 -3
  48. package/dist/form-react/utils/date.utils.d.ts +3 -1
  49. package/dist/form-react/utils/date.utils.js +84 -55
  50. package/dist/i18n/defaultMessages.d.ts +10 -0
  51. package/dist/i18n/defaultMessages.js +17 -7
  52. package/dist/i18n/locales/de.js +13 -3
  53. package/dist/i18n/locales/es.js +13 -3
  54. package/dist/i18n/locales/hi.js +13 -3
  55. package/dist/i18n/locales/kn.js +13 -3
  56. package/dist/impact-nova.css +1 -1
  57. package/dist/lib/guidance/engine/guidance-engine.d.ts +7 -5
  58. package/dist/lib/guidance/engine/guidance-engine.js +115 -47
  59. package/dist/lib/guidance/triggers/trigger-registry.js +6 -6
  60. package/dist/lib/guidance/types/guidance.types.d.ts +11 -1
  61. package/dist/llms/rules/installation.js +1 -1
  62. package/dist/llms/rules/requirements.js +1 -1
  63. package/package.json +1 -1
@@ -1,86 +1,115 @@
1
- import { format as M } from "date-fns";
2
- import { toLocalDate as o } from "./calendar-boundary.js";
3
- const e = "yyyy-MM-dd", c = /* @__PURE__ */ new Map();
4
- function y(t) {
1
+ import { format as h } from "date-fns";
2
+ import { resolveWeekSelection as l } from "../../lib/fiscal-calendar.js";
3
+ import { toLocalDate as f } from "./calendar-boundary.js";
4
+ const m = "yyyy-MM-dd", M = /* @__PURE__ */ new Map();
5
+ function S(t) {
5
6
  const s = t?.trim();
6
- if (!s) return e;
7
- const n = s.replace(/D/g, "d").replace(/Y/g, "y");
8
- let a = c.get(n);
9
- if (a === void 0) {
7
+ if (!s) return m;
8
+ const a = s.replace(/D/g, "d").replace(/Y/g, "y");
9
+ let n = M.get(a);
10
+ if (n === void 0) {
10
11
  try {
11
- M(/* @__PURE__ */ new Date(), n), a = !0;
12
+ h(/* @__PURE__ */ new Date(), a), n = !0;
12
13
  } catch {
13
- a = !1;
14
+ n = !1;
14
15
  }
15
- c.set(n, a);
16
+ M.set(a, n);
16
17
  }
17
- return a ? n : e;
18
+ return n ? a : m;
18
19
  }
19
- function r(t) {
20
+ function o(t) {
20
21
  const s = new Date(t);
21
22
  return s.setHours(0, 0, 0, 0), s;
22
23
  }
23
- function D(t, s) {
24
- const n = new Date(t);
25
- return n.setDate(n.getDate() + s), n;
24
+ function c(t, s) {
25
+ const a = new Date(t);
26
+ return a.setDate(a.getDate() + s), a;
27
+ }
28
+ function y(t) {
29
+ return {
30
+ calendarType: t.calendarType ?? "calendar",
31
+ fiscalMode: t.fiscalMode ?? "basic",
32
+ selectionMode: t.selectionMode ?? "week",
33
+ fiscalMonthPattern: t.fiscalMonthPattern,
34
+ fiscalYearStartMonth: t.fiscalYearStartMonth ?? 1,
35
+ weekStartsOn: t.weekStartsOn ?? 1
36
+ };
37
+ }
38
+ function e(t, s) {
39
+ const a = l(
40
+ s,
41
+ y(t)
42
+ );
43
+ return o(a.startDate);
44
+ }
45
+ function u(t, s) {
46
+ const a = l(
47
+ s,
48
+ y(t)
49
+ );
50
+ return o(a.endDate);
26
51
  }
27
- const O = (t) => {
28
- let s, n;
52
+ const W = (t) => {
53
+ let s, a;
29
54
  if (t.minStartOffsetDays != null && t.minStartOffsetDays >= 0)
30
- s = r(
31
- D(/* @__PURE__ */ new Date(), t.minStartOffsetDays)
55
+ s = o(
56
+ c(/* @__PURE__ */ new Date(), t.minStartOffsetDays)
32
57
  );
33
58
  else if (t.minDate) {
34
- const a = o(t.minDate);
35
- a && (s = r(a));
59
+ const n = f(t.minDate);
60
+ n && (s = o(n));
36
61
  }
37
62
  if (t.maxDate) {
38
- const a = o(t.maxDate);
39
- a && (n = r(a));
63
+ const n = f(t.maxDate);
64
+ n && (a = o(n));
40
65
  }
41
- return { minDate: s, maxDate: n };
42
- }, p = (t) => {
43
- let s, n;
44
- const a = /* @__PURE__ */ new Date();
45
- if (t.minWeeksOffset != null)
46
- s = r(
47
- D(a, -t.minWeeksOffset * 7)
66
+ return { minDate: s, maxDate: a };
67
+ }, v = (t) => {
68
+ let s, a;
69
+ const n = /* @__PURE__ */ new Date();
70
+ if (t.minWeeksOffset != null) {
71
+ const r = c(
72
+ n,
73
+ -t.minWeeksOffset * 7
48
74
  );
49
- else if (t.minStartOffsetDays != null && t.minStartOffsetDays >= 0)
50
- s = r(
51
- D(a, t.minStartOffsetDays)
75
+ s = e(t, r);
76
+ } else if (t.minStartOffsetDays != null && t.minStartOffsetDays >= 0)
77
+ s = o(
78
+ c(n, t.minStartOffsetDays)
52
79
  );
53
80
  else if (t.disablePastWeeks)
54
- s = r(a);
81
+ s = e(t, n);
55
82
  else if (t.minDate) {
56
- const f = o(t.minDate);
57
- f && (s = r(f));
83
+ const r = f(t.minDate);
84
+ r && (s = e(t, r));
58
85
  }
59
- if (t.maxWeeksOffset != null)
60
- n = r(
61
- D(a, t.maxWeeksOffset * 7)
86
+ if (t.maxWeeksOffset != null) {
87
+ const r = c(
88
+ n,
89
+ t.maxWeeksOffset * 7
62
90
  );
63
- else if (t.maxDate) {
64
- const f = o(t.maxDate);
65
- f && (n = r(f));
91
+ a = u(t, r);
92
+ } else if (t.maxDate) {
93
+ const r = f(t.maxDate);
94
+ r && (a = u(t, r));
66
95
  }
67
- let m;
96
+ let D;
68
97
  if (t.startMonth) {
69
- const f = o(t.startMonth);
70
- f && (m = r(f));
98
+ const r = f(t.startMonth);
99
+ r && (D = o(r));
71
100
  }
72
101
  let i;
73
102
  if (t.endMonth) {
74
- const f = o(t.endMonth);
75
- f && (i = r(f));
103
+ const r = f(t.endMonth);
104
+ r && (i = o(r));
76
105
  }
77
- return { minDate: s, maxDate: n, startMonth: m, endMonth: i };
106
+ return { minDate: s, maxDate: a, startMonth: D, endMonth: i };
78
107
  };
79
108
  export {
80
- e as DEFAULT_PICKER_DATE_FORMAT,
81
- D as addDaysDate,
82
- y as handleDateFnsFormat,
83
- O as handleMinMaxProp,
84
- p as resolveWeekRangeMinMax,
85
- r as startOfDayDate
109
+ m as DEFAULT_PICKER_DATE_FORMAT,
110
+ c as addDaysDate,
111
+ S as handleDateFnsFormat,
112
+ W as handleMinMaxProp,
113
+ v as resolveWeekRangeMinMax,
114
+ o as startOfDayDate
86
115
  };
@@ -230,13 +230,23 @@ export interface NotificationPanelMessages {
230
230
  }
231
231
  export interface HelpCenterMessages {
232
232
  title: string;
233
+ subtitle: string;
233
234
  description: string;
234
235
  searchPlaceholder: string;
235
236
  searchAriaLabel: string;
236
237
  allCategory: string;
237
238
  replay: string;
239
+ launchTour: string;
240
+ launchWhatsNew: string;
241
+ launchHowTo: string;
242
+ launchTip: string;
243
+ guideTypeTour: string;
244
+ guideTypeWhatsNew: string;
245
+ guideTypeHowTo: string;
246
+ guideTypeTip: string;
238
247
  emptyState: string;
239
248
  stepCount: string;
249
+ highlightCount: string;
240
250
  supportFooterMessage: string;
241
251
  supportTicketLabel: string;
242
252
  }
@@ -196,18 +196,28 @@ const e = {
196
196
  emptyBookmarkedSub: "Bookmark notifications to find them here.",
197
197
  emptyArchivedTitle: "No archived notifications",
198
198
  emptyArchivedSub: "Archived notifications will appear here."
199
- }, m = {
200
- title: "Help Center",
201
- description: "Browse and replay in-app guides",
199
+ }, h = {
200
+ title: "Guides & Help",
201
+ subtitle: "Discover guides, product updates, and tips.",
202
+ description: "Browse guides, product updates, and in-app help",
202
203
  searchPlaceholder: "Search",
203
- searchAriaLabel: "Search guides",
204
+ searchAriaLabel: "Search guides and help",
204
205
  allCategory: "All",
205
206
  replay: "Replay",
207
+ launchTour: "Start tour",
208
+ launchWhatsNew: "View update",
209
+ launchHowTo: "Start guide",
210
+ launchTip: "Learn",
211
+ guideTypeTour: "Guided tour",
212
+ guideTypeWhatsNew: "What's new",
213
+ guideTypeHowTo: "How-to",
214
+ guideTypeTip: "Quick tip",
206
215
  emptyState: "No guides match your search.",
207
216
  stepCount: "{{count}} steps",
217
+ highlightCount: "{{count}} highlights",
208
218
  supportFooterMessage: "Need more help?",
209
219
  supportTicketLabel: "Submit a support ticket"
210
- }, h = {
220
+ }, m = {
211
221
  scrollLeft: "Scroll left",
212
222
  scrollRight: "Scroll right"
213
223
  }, f = {
@@ -280,8 +290,8 @@ const e = {
280
290
  advancedFilter: v,
281
291
  gridHeader: g,
282
292
  notificationPanel: p,
283
- helpCenter: m,
284
- horizontalScroller: h,
293
+ helpCenter: h,
294
+ horizontalScroller: m,
285
295
  sidebar: f,
286
296
  stepper: S
287
297
  };
@@ -261,14 +261,24 @@ const e = {
261
261
  emptyArchivedSub: "Archivierte Benachrichtigungen erscheinen hier."
262
262
  },
263
263
  helpCenter: {
264
- title: "Help Center",
265
- description: "In-App-Anleitungen durchsuchen und erneut abspielen",
264
+ title: "Guides & Help",
265
+ subtitle: "Learn the product, discover what's new, and replay guided tours.",
266
+ description: "Browse guides, product updates, and in-app help",
266
267
  searchPlaceholder: "Suchen",
267
- searchAriaLabel: "Anleitungen suchen",
268
+ searchAriaLabel: "Anleitungen und Hilfe suchen",
268
269
  allCategory: "Alle",
269
270
  replay: "Erneut abspielen",
271
+ launchTour: "Tour starten",
272
+ launchWhatsNew: "Update ansehen",
273
+ launchHowTo: "Anleitung starten",
274
+ launchTip: "Tipp ansehen",
275
+ guideTypeTour: "Geführte Tour",
276
+ guideTypeWhatsNew: "Neuigkeiten",
277
+ guideTypeHowTo: "Anleitung",
278
+ guideTypeTip: "Kurztip",
270
279
  emptyState: "Keine Anleitungen entsprechen Ihrer Suche.",
271
280
  stepCount: "{{count}} Schritte",
281
+ highlightCount: "{{count}} Highlights",
272
282
  supportFooterMessage: "Brauchen Sie mehr Hilfe?",
273
283
  supportTicketLabel: "Support-Ticket einreichen"
274
284
  },
@@ -261,14 +261,24 @@ const e = {
261
261
  emptyArchivedSub: "Las notificaciones archivadas aparecerán aquí."
262
262
  },
263
263
  helpCenter: {
264
- title: "Help Center",
265
- description: "Explora y reproduce guías de la aplicación",
264
+ title: "Guides & Help",
265
+ subtitle: "Learn the product, discover what's new, and replay guided tours.",
266
+ description: "Browse guides, product updates, and in-app help",
266
267
  searchPlaceholder: "Buscar",
267
- searchAriaLabel: "Buscar guías",
268
+ searchAriaLabel: "Buscar guías y ayuda",
268
269
  allCategory: "Todas",
269
270
  replay: "Reproducir",
271
+ launchTour: "Iniciar tour",
272
+ launchWhatsNew: "Ver actualización",
273
+ launchHowTo: "Iniciar guía",
274
+ launchTip: "Ver consejo",
275
+ guideTypeTour: "Tour guiado",
276
+ guideTypeWhatsNew: "Novedades",
277
+ guideTypeHowTo: "Guía práctica",
278
+ guideTypeTip: "Consejo rápido",
270
279
  emptyState: "Ninguna guía coincide con tu búsqueda.",
271
280
  stepCount: "{{count}} pasos",
281
+ highlightCount: "{{count}} destacados",
272
282
  supportFooterMessage: "¿Necesitas más ayuda?",
273
283
  supportTicketLabel: "Enviar ticket de soporte"
274
284
  },
@@ -261,14 +261,24 @@ const e = {
261
261
  emptyArchivedSub: "संग्रहीत सूचनाएँ यहाँ दिखाई देंगी।"
262
262
  },
263
263
  helpCenter: {
264
- title: "Help Center",
265
- description: "इन-ऐप गाइड ब्राउज़ करें और दोबारा चलाएं",
264
+ title: "Guides & Help",
265
+ subtitle: "Learn the product, discover what's new, and replay guided tours.",
266
+ description: "Browse guides, product updates, and in-app help",
266
267
  searchPlaceholder: "खोजें",
267
- searchAriaLabel: "गाइड खोजें",
268
+ searchAriaLabel: "गाइड और सहायता खोजें",
268
269
  allCategory: "सभी",
269
270
  replay: "फिर से चलाएं",
271
+ launchTour: "टूर शुरू करें",
272
+ launchWhatsNew: "अपडेट देखें",
273
+ launchHowTo: "गाइड शुरू करें",
274
+ launchTip: "टिप देखें",
275
+ guideTypeTour: "गाइडेड टूर",
276
+ guideTypeWhatsNew: "नया क्या है",
277
+ guideTypeHowTo: "कैसे करें",
278
+ guideTypeTip: "त्वरित टिप",
270
279
  emptyState: "आपकी खोज से कोई गाइड मेल नहीं खाती।",
271
280
  stepCount: "{{count}} चरण",
281
+ highlightCount: "{{count}} हाइलाइट",
272
282
  supportFooterMessage: "और मदद चाहिए?",
273
283
  supportTicketLabel: "सहायता टिकट जमा करें"
274
284
  },
@@ -261,14 +261,24 @@ const e = {
261
261
  emptyArchivedSub: "ಆರ್ಕೈವ್ ಮಾಡಿದ ಅಧಿಸೂಚನೆಗಳು ಇಲ್ಲಿ ಕಾಣಿಸುತ್ತವೆ."
262
262
  },
263
263
  helpCenter: {
264
- title: "Help Center",
265
- description: "ಇನ್-ಆ್ಯಪ್ ಮಾರ್ಗದರ್ಶಿಗಳನ್ನು ಬ್ರೌಸ್ ಮಾಡಿ ಮತ್ತು ಮರುಪ್ಲೇ ಮಾಡಿ",
264
+ title: "Guides & Help",
265
+ subtitle: "Learn the product, discover what's new, and replay guided tours.",
266
+ description: "Browse guides, product updates, and in-app help",
266
267
  searchPlaceholder: "ಹುಡುಕಿ",
267
- searchAriaLabel: "ಮಾರ್ಗದರ್ಶಿಗಳನ್ನು ಹುಡುಕಿ",
268
+ searchAriaLabel: "ಮಾರ್ಗದರ್ಶಿಗಳು ಮತ್ತು ಸಹಾಯ ಹುಡುಕಿ",
268
269
  allCategory: "ಎಲ್ಲಾ",
269
270
  replay: "ಮರುಪ್ಲೇ",
271
+ launchTour: "ಪ್ರವಾಸ ಪ್ರಾರಂಭಿಸಿ",
272
+ launchWhatsNew: "ನವೀಕರಣ ವೀಕ್ಷಿಸಿ",
273
+ launchHowTo: "ಮಾರ್ಗದರ್ಶಿ ಪ್ರಾರಂಭಿಸಿ",
274
+ launchTip: "ಸಲಹೆ ವೀಕ್ಷಿಸಿ",
275
+ guideTypeTour: "ಮಾರ್ಗದರ್ಶಿತ ಪ್ರವಾಸ",
276
+ guideTypeWhatsNew: "ಹೊಸತೇನಿದೆ",
277
+ guideTypeHowTo: "ಹೇಗೆ ಮಾಡುವುದು",
278
+ guideTypeTip: "ತ್ವರಿತ ಸಲಹೆ",
270
279
  emptyState: "ನಿಮ್ಮ ಹುಡುಕಾಟಕ್ಕೆ ಯಾವುದೇ ಮಾರ್ಗದರ್ಶಿಗಳು ಹೊಂದಿಕೆಯಾಗುವುದಿಲ್ಲ.",
271
280
  stepCount: "{{count}} ಹಂತಗಳು",
281
+ highlightCount: "{{count}} ಮುಖ್ಯಾಂಶಗಳು",
272
282
  supportFooterMessage: "ಇನ್ನಷ್ಟು ಸಹಾಯ ಬೇಕೇ?",
273
283
  supportTicketLabel: "ಬೆಂಬಲ ಟಿಕೆಟ್ ಸಲ್ಲಿಸಿ"
274
284
  },