profinansy-ui-lib 4.1.6 → 4.1.8

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 (25) hide show
  1. package/dist/common.types.d.ts +4 -0
  2. package/dist/components/blocks/headerV2/components/Burger/components/SubSubPages/SubSubPages.styled.d.ts +1 -0
  3. package/dist/components/blocks/headerV2/components/Burger/components/SupPages/SubPages.styled.d.ts +1 -0
  4. package/dist/components/blocks/headerV2/components/header-link-item/components/MoreItemsV2/MoreItemsV2.styled.d.ts +4 -1
  5. package/dist/components/blocks/headerV2/components/header-link-item/header-link-item.styled.d.ts +1 -0
  6. package/dist/components/blocks/headerV2/constants/linksV2.d.ts +2 -0
  7. package/dist/components/blocks/sideMenuV2/SideMenuV2.typed.d.ts +1 -1
  8. package/dist/components/blocks/sideMenuV2/components/Item/Item.styled.d.ts +2 -0
  9. package/dist/components/blocks/sideMenuV2/components/SubPages/SubPages.styled.d.ts +1 -0
  10. package/dist/components/blocks/sideMenuV2/components/SubPagesSide/SubPagesSide.styled.d.ts +1 -0
  11. package/dist/config.d.ts +1 -0
  12. package/dist/hooks/useMenuItemLogic.d.ts +1 -0
  13. package/dist/localization/translations/common.d.ts +2 -0
  14. package/dist/localization/translations/urls.d.ts +30 -0
  15. package/dist/profinansy-ui-lib.cjs +1025 -1006
  16. package/dist/profinansy-ui-lib.cjs.map +1 -1
  17. package/dist/profinansy-ui-lib.es.js +7904 -7608
  18. package/dist/profinansy-ui-lib.es.js.map +1 -1
  19. package/dist/urls/productsV2/courses/courses.d.ts +3 -232
  20. package/dist/urls/productsV2/courses/courses.header.d.ts +431 -0
  21. package/dist/urls/productsV2/courses/courses.shared.d.ts +111 -0
  22. package/dist/urls/productsV2/courses/courses.sidebar.d.ts +91 -0
  23. package/dist/urls/productsV2/courses/coursesNew.sidebar.d.ts +170 -0
  24. package/dist/urls/productsV2/index.d.ts +1 -1
  25. package/package.json +1 -1
@@ -0,0 +1,111 @@
1
+ export declare const COURSES_PATHS: {
2
+ readonly COURSES: "/courses";
3
+ readonly COURSE: "/courses/:uuidCourse";
4
+ readonly LESSON: "/courses/:uuidCourse/lesson/:uuidLesson";
5
+ readonly MY_COURSES: "/courses/my-courses";
6
+ readonly MINI_COURSES: "/courses/mini-courses";
7
+ readonly REVIEWS: "/courses/reviews";
8
+ readonly MY_REVIEWS: "/courses/reviews/my";
9
+ readonly STUDENTS: "/courses/students";
10
+ readonly MATERIALS: "/courses/materials";
11
+ readonly EVENTS: "/courses/events";
12
+ readonly FREE: "/courses/free";
13
+ readonly METHOD: "/method";
14
+ readonly IDV: "/idv";
15
+ };
16
+ export declare const CHILDREN_AND_PARENTS_PATHS: {
17
+ readonly HOME: "/children-and-parents";
18
+ readonly AUDIO_TALES: "/children-and-parents/audio-tales";
19
+ readonly COMICS: "/children-and-parents/comics";
20
+ readonly EDUCATION: "/children-and-parents/children-education";
21
+ readonly ARTICLES: "/children-and-parents/articles";
22
+ };
23
+ export declare const getLmsUrl: (hostname: string, path: string) => string;
24
+ export declare const getLegacyCoursePath: (childCourseId?: string) => string;
25
+ export declare const getNewCoursePath: (childCourseId?: string) => string;
26
+ export declare const getCourseStoreSubPages: (hostname: string, hostnameLMS: string, isGuest: boolean) => ({
27
+ name: string;
28
+ href: string;
29
+ locked?: undefined;
30
+ } | {
31
+ name: string;
32
+ href: string;
33
+ locked: boolean;
34
+ })[];
35
+ export declare const getCoursesHowUseSubPages: (hostname: string) => {
36
+ name: string;
37
+ href: string;
38
+ innerPages: string[];
39
+ }[];
40
+ export declare const getCoursesGraduatesSubPages: (hostname: string, isGuest: boolean, isPermission: boolean, isKfpHiddenFromChildren?: boolean) => ({
41
+ name: string;
42
+ href: string;
43
+ innerPages: string[];
44
+ isNotVisible?: undefined;
45
+ locked?: undefined;
46
+ hiddenFromChildren?: undefined;
47
+ } | {
48
+ name: string;
49
+ href: string;
50
+ isNotVisible: boolean;
51
+ innerPages: string[];
52
+ locked?: undefined;
53
+ hiddenFromChildren?: undefined;
54
+ } | {
55
+ name: string;
56
+ href: string;
57
+ locked: boolean;
58
+ innerPages: string[];
59
+ isNotVisible?: undefined;
60
+ hiddenFromChildren?: undefined;
61
+ } | {
62
+ name: string;
63
+ href: string;
64
+ hiddenFromChildren: true;
65
+ innerPages?: undefined;
66
+ isNotVisible?: undefined;
67
+ locked?: undefined;
68
+ })[];
69
+ export declare const getCoursesChildSubPages: (hostname: string, hostnameLenta: string, isGuest: boolean) => ({
70
+ name: string;
71
+ href: string;
72
+ locked?: undefined;
73
+ } | {
74
+ name: string;
75
+ href: string;
76
+ locked: boolean;
77
+ })[];
78
+ export declare const getAvailableCoursesSubPages: (hostname: string, hostnameLMS: string, isGuest: boolean, isEventsDisabled?: boolean) => ({
79
+ name: string;
80
+ href: string;
81
+ innerPages: string[];
82
+ locked: boolean;
83
+ disabled?: undefined;
84
+ hint?: undefined;
85
+ isFill?: undefined;
86
+ } | {
87
+ name: string;
88
+ href: string;
89
+ locked: boolean;
90
+ innerPages?: undefined;
91
+ disabled?: undefined;
92
+ hint?: undefined;
93
+ isFill?: undefined;
94
+ } | {
95
+ name: string;
96
+ href: string;
97
+ disabled: boolean;
98
+ hint: string;
99
+ isFill: boolean;
100
+ locked: boolean;
101
+ innerPages?: undefined;
102
+ })[];
103
+ export declare const getCoursesStudentsSubPages: (hostnameLMS: string, includeMyReviewsInnerPage?: boolean) => ({
104
+ name: string;
105
+ href: string;
106
+ innerPages: string[];
107
+ } | {
108
+ name: string;
109
+ href: string;
110
+ innerPages?: undefined;
111
+ })[];
@@ -0,0 +1,91 @@
1
+ export declare const getCoursesSidebar: (hostname: string, hostnameLenta: string, hostnameLMS: string, isPermission: boolean, isGuest: boolean, childCourseId?: string) => {
2
+ name: string;
3
+ Icon: ComponentType<void>;
4
+ href: string;
5
+ subPages: ({
6
+ name: string;
7
+ Icon: ComponentType<void>;
8
+ href: string;
9
+ locked: boolean;
10
+ isNew?: undefined;
11
+ innerPages?: undefined;
12
+ hiddenFromChildren?: undefined;
13
+ subPages?: undefined;
14
+ } | {
15
+ name: string;
16
+ Icon: ComponentType<void>;
17
+ isNew: boolean;
18
+ href: string;
19
+ innerPages: string[];
20
+ hiddenFromChildren: boolean;
21
+ subPages: ({
22
+ name: string;
23
+ href: string;
24
+ locked?: undefined;
25
+ } | {
26
+ name: string;
27
+ href: string;
28
+ locked: boolean;
29
+ })[];
30
+ locked?: undefined;
31
+ } | {
32
+ name: string;
33
+ Icon: ComponentType<void>;
34
+ href: string;
35
+ hiddenFromChildren: boolean;
36
+ subPages: {
37
+ name: string;
38
+ href: string;
39
+ innerPages: string[];
40
+ }[];
41
+ locked?: undefined;
42
+ isNew?: undefined;
43
+ innerPages?: undefined;
44
+ } | {
45
+ name: string;
46
+ Icon: ComponentType<void>;
47
+ href: string;
48
+ innerPages: string[];
49
+ hiddenFromChildren: boolean;
50
+ subPages: ({
51
+ name: string;
52
+ href: string;
53
+ innerPages: string[];
54
+ isNotVisible?: undefined;
55
+ locked?: undefined;
56
+ hiddenFromChildren?: undefined;
57
+ } | {
58
+ name: string;
59
+ href: string;
60
+ isNotVisible: boolean;
61
+ innerPages: string[];
62
+ locked?: undefined;
63
+ hiddenFromChildren?: undefined;
64
+ } | {
65
+ name: string;
66
+ href: string;
67
+ locked: boolean;
68
+ innerPages: string[];
69
+ isNotVisible?: undefined;
70
+ hiddenFromChildren?: undefined;
71
+ } | {
72
+ name: string;
73
+ href: string;
74
+ hiddenFromChildren: true;
75
+ innerPages?: undefined;
76
+ isNotVisible?: undefined;
77
+ locked?: undefined;
78
+ })[];
79
+ locked?: undefined;
80
+ isNew?: undefined;
81
+ } | {
82
+ name: string;
83
+ Icon: ComponentType<void>;
84
+ href: string;
85
+ hiddenFromChildren: boolean;
86
+ locked?: undefined;
87
+ isNew?: undefined;
88
+ innerPages?: undefined;
89
+ subPages?: undefined;
90
+ })[];
91
+ };
@@ -0,0 +1,170 @@
1
+ export declare const getCoursesSidebarNew: (hostname: string, hostnameLenta: string, hostnameLMS: string, isPermission: boolean, isGuest: boolean, childCourseId?: string) => {
2
+ name: string;
3
+ Icon: ComponentType<void>;
4
+ href: string;
5
+ subPages: ({
6
+ name: string;
7
+ Icon: ComponentType<void>;
8
+ href: string;
9
+ isFill: boolean;
10
+ locked?: undefined;
11
+ subPages?: undefined;
12
+ hiddenFromChildren?: undefined;
13
+ preserveIconColor?: undefined;
14
+ disabled?: undefined;
15
+ hint?: undefined;
16
+ innerPages?: undefined;
17
+ } | {
18
+ name: string;
19
+ Icon: ComponentType<void>;
20
+ href: string;
21
+ locked: boolean;
22
+ subPages: ({
23
+ name: string;
24
+ href: string;
25
+ innerPages: string[];
26
+ locked: boolean;
27
+ disabled?: undefined;
28
+ hint?: undefined;
29
+ isFill?: undefined;
30
+ } | {
31
+ name: string;
32
+ href: string;
33
+ locked: boolean;
34
+ innerPages?: undefined;
35
+ disabled?: undefined;
36
+ hint?: undefined;
37
+ isFill?: undefined;
38
+ } | {
39
+ name: string;
40
+ href: string;
41
+ disabled: boolean;
42
+ hint: string;
43
+ isFill: boolean;
44
+ locked: boolean;
45
+ innerPages?: undefined;
46
+ })[];
47
+ isFill?: undefined;
48
+ hiddenFromChildren?: undefined;
49
+ preserveIconColor?: undefined;
50
+ disabled?: undefined;
51
+ hint?: undefined;
52
+ innerPages?: undefined;
53
+ } | {
54
+ name: string;
55
+ Icon: ComponentType<void>;
56
+ href: string;
57
+ hiddenFromChildren: boolean;
58
+ preserveIconColor: boolean;
59
+ isFill?: undefined;
60
+ locked?: undefined;
61
+ subPages?: undefined;
62
+ disabled?: undefined;
63
+ hint?: undefined;
64
+ innerPages?: undefined;
65
+ } | {
66
+ name: string;
67
+ Icon: ComponentType<void>;
68
+ href: string;
69
+ hiddenFromChildren: boolean;
70
+ isFill?: undefined;
71
+ locked?: undefined;
72
+ subPages?: undefined;
73
+ preserveIconColor?: undefined;
74
+ disabled?: undefined;
75
+ hint?: undefined;
76
+ innerPages?: undefined;
77
+ } | {
78
+ name: string;
79
+ Icon: ComponentType<void>;
80
+ href: string;
81
+ hiddenFromChildren: boolean;
82
+ isFill: boolean;
83
+ subPages: ({
84
+ name: string;
85
+ href: string;
86
+ locked?: undefined;
87
+ } | {
88
+ name: string;
89
+ href: string;
90
+ locked: boolean;
91
+ })[];
92
+ locked?: undefined;
93
+ preserveIconColor?: undefined;
94
+ disabled?: undefined;
95
+ hint?: undefined;
96
+ innerPages?: undefined;
97
+ } | {
98
+ name: string;
99
+ Icon: ComponentType<void>;
100
+ href: string;
101
+ disabled: boolean;
102
+ hint: string;
103
+ isFill: boolean;
104
+ locked?: undefined;
105
+ subPages?: undefined;
106
+ hiddenFromChildren?: undefined;
107
+ preserveIconColor?: undefined;
108
+ innerPages?: undefined;
109
+ } | {
110
+ name: string;
111
+ Icon: ComponentType<void>;
112
+ href: string;
113
+ innerPages: string[];
114
+ hiddenFromChildren: boolean;
115
+ subPages: ({
116
+ name: string;
117
+ href: string;
118
+ innerPages: string[];
119
+ isNotVisible?: undefined;
120
+ locked?: undefined;
121
+ hiddenFromChildren?: undefined;
122
+ } | {
123
+ name: string;
124
+ href: string;
125
+ isNotVisible: boolean;
126
+ innerPages: string[];
127
+ locked?: undefined;
128
+ hiddenFromChildren?: undefined;
129
+ } | {
130
+ name: string;
131
+ href: string;
132
+ locked: boolean;
133
+ innerPages: string[];
134
+ isNotVisible?: undefined;
135
+ hiddenFromChildren?: undefined;
136
+ } | {
137
+ name: string;
138
+ href: string;
139
+ hiddenFromChildren: true;
140
+ innerPages?: undefined;
141
+ isNotVisible?: undefined;
142
+ locked?: undefined;
143
+ })[];
144
+ isFill?: undefined;
145
+ locked?: undefined;
146
+ preserveIconColor?: undefined;
147
+ disabled?: undefined;
148
+ hint?: undefined;
149
+ } | {
150
+ name: string;
151
+ Icon: ComponentType<void>;
152
+ href: string;
153
+ hiddenFromChildren: boolean;
154
+ isFill: boolean;
155
+ subPages: ({
156
+ name: string;
157
+ href: string;
158
+ innerPages: string[];
159
+ } | {
160
+ name: string;
161
+ href: string;
162
+ innerPages?: undefined;
163
+ })[];
164
+ locked?: undefined;
165
+ preserveIconColor?: undefined;
166
+ disabled?: undefined;
167
+ hint?: undefined;
168
+ innerPages?: undefined;
169
+ })[];
170
+ };
@@ -3,7 +3,7 @@ export { getBudgetHeader, getBudgetSidebar, getBudgetSidebar2 } from './budget/b
3
3
  export { getPortfoliosHeader, getPortfoliosSidebar } from './portfolios/portfolios';
4
4
  export { getInvestmentsHeader, getInvestmentsSidebar } from './investments/investments';
5
5
  export { getClubHeader, getClubFooter } from './club/club';
6
- export { getCoursesHeader, getCoursesSidebar } from './courses/courses';
6
+ export { getCoursesHeader, getCoursesSidebar, getCoursesSidebarNew, getCoursesHeaderNew } from './courses/courses';
7
7
  export { getIdvHeader, getIdvSidebar } from './idv/idv';
8
8
  export { getMethodHeader, getMethodSidebar } from './method/method';
9
9
  export { getFeedHeader, getFeedFooter } from './feed/feed';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "profinansy-ui-lib",
3
- "version": "4.1.6",
3
+ "version": "4.1.8",
4
4
  "main": "./dist/profinansy-ui-lib.cjs",
5
5
  "module": "./dist/profinansy-ui-lib.es.js",
6
6
  "types": "./dist/index.d.ts",