cortex-react-components 1.48.8 → 1.49.0

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 (269) hide show
  1. package/dist/{chunk-SPOYKTBR.mjs → chunk-22FHCZJD.mjs} +1 -1
  2. package/dist/{chunk-423OEU3K.mjs → chunk-23EQTK7B.mjs} +1 -1
  3. package/dist/chunk-47K2T72E.mjs +1 -0
  4. package/dist/{chunk-WSTFVGI3.mjs → chunk-4J2HMR3M.mjs} +1 -1
  5. package/dist/{chunk-IXI56LEB.mjs → chunk-4Z5RNIJS.mjs} +1 -1
  6. package/dist/{chunk-7HDQBQPR.mjs → chunk-5KVZ63KQ.mjs} +1 -1
  7. package/dist/{chunk-2IKC7MAP.mjs → chunk-5YTDIEDJ.mjs} +1 -1
  8. package/dist/{chunk-KLY2KDTY.mjs → chunk-6LTYVYSU.mjs} +1 -1
  9. package/dist/{chunk-4RWD4HBJ.mjs → chunk-7QQXXEMN.mjs} +1 -1
  10. package/dist/{chunk-IO222G5L.mjs → chunk-AAI2VZST.mjs} +1 -1
  11. package/dist/{chunk-DIPGFDJV.mjs → chunk-ATONX5RA.mjs} +1 -1
  12. package/dist/{chunk-PNKQJQMU.mjs → chunk-B4N2AO3O.mjs} +1 -1
  13. package/dist/{chunk-FBNFFUFR.mjs → chunk-D4NKFRUO.mjs} +1 -1
  14. package/dist/{chunk-GHBJK554.mjs → chunk-DESYC5BB.mjs} +1 -1
  15. package/dist/{chunk-GZQDMALT.mjs → chunk-EFL3B4LN.mjs} +1 -1
  16. package/dist/{chunk-NRBMAOTO.mjs → chunk-EQDX6HFN.mjs} +1 -1
  17. package/dist/chunk-GDC4MRMU.mjs +8 -0
  18. package/dist/{chunk-RZTXT4UD.mjs → chunk-GOMLTG5W.mjs} +1 -1
  19. package/dist/{chunk-UMILL4LR.mjs → chunk-H4T3LIAM.mjs} +1 -1
  20. package/dist/{chunk-W322CRC5.mjs → chunk-HZRY77JK.mjs} +1 -1
  21. package/dist/{chunk-I5EBXVLE.mjs → chunk-IJICNQTM.mjs} +1 -1
  22. package/dist/{chunk-ZHHBVNQN.mjs → chunk-K56DRD3X.mjs} +1 -1
  23. package/dist/{chunk-QMFZRG7O.mjs → chunk-KEUZSK3N.mjs} +1 -1
  24. package/dist/{chunk-7FMMXR7S.mjs → chunk-KJBMLPHS.mjs} +1 -1
  25. package/dist/{chunk-ICTOXY7D.mjs → chunk-NGK3IDFP.mjs} +1 -1
  26. package/dist/{chunk-U6S6B6W5.mjs → chunk-OWEP2U4M.mjs} +1 -1
  27. package/dist/{chunk-IBV34MLI.mjs → chunk-RHPFEIP4.mjs} +1 -1
  28. package/dist/chunk-RWIIPRAE.mjs +1 -0
  29. package/dist/chunk-SK4U3YXJ.mjs +1 -0
  30. package/dist/{chunk-3FZCKXNE.mjs → chunk-T3M2VHKT.mjs} +1 -1
  31. package/dist/{chunk-IK7RMA52.mjs → chunk-TM37LU2K.mjs} +1 -1
  32. package/dist/{chunk-QZA2ZGA2.mjs → chunk-U76FODRW.mjs} +1 -1
  33. package/dist/{chunk-MANZDSTF.mjs → chunk-UD7JYMRU.mjs} +1 -1
  34. package/dist/chunk-X6QN5C6U.mjs +1 -0
  35. package/dist/{chunk-PHIOOJWP.mjs → chunk-XB5YGSYM.mjs} +1 -1
  36. package/dist/{chunk-LNHR67FN.mjs → chunk-XBQBJTNI.mjs} +1 -1
  37. package/dist/chunk-XN3SGES2.mjs +1 -0
  38. package/dist/chunk-Y2ZFOTBY.mjs +1 -0
  39. package/dist/{chunk-K45M5INN.mjs → chunk-YSGJMEMD.mjs} +1 -1
  40. package/dist/{chunk-ZRZ4WCRW.mjs → chunk-YSREIOAY.mjs} +1 -1
  41. package/dist/components/Blocks/Banner.mjs +1 -1
  42. package/dist/components/Blocks/CallToAction.mjs +1 -1
  43. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  44. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  45. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  46. package/dist/components/Blocks/Code.client.mjs +1 -1
  47. package/dist/components/Blocks/Code.mjs +1 -1
  48. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  49. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  50. package/dist/components/Blocks/Content.mjs +1 -1
  51. package/dist/components/Blocks/CopyButton.mjs +1 -1
  52. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  53. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  54. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  55. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  56. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  57. package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
  58. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  59. package/dist/components/Blocks/RenderBlocks.d.ts +1 -0
  60. package/dist/components/Blocks/RenderBlocks.js +1 -1
  61. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  62. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  63. package/dist/components/Blocks/index.js +1 -1
  64. package/dist/components/Blocks/index.mjs +1 -1
  65. package/dist/components/CRM/DealCard.mjs +1 -1
  66. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  67. package/dist/components/CRM/DealDetails.mjs +1 -1
  68. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  69. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  70. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  71. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  72. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  73. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  74. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  75. package/dist/components/CRM/NewDealForm.mjs +1 -1
  76. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  77. package/dist/components/CRM/index.mjs +1 -1
  78. package/dist/components/Cards/ContentCard.mjs +1 -1
  79. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  80. package/dist/components/Cards/CustomerCard.mjs +1 -1
  81. package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
  82. package/dist/components/Cards/EventCard.mjs +1 -1
  83. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  84. package/dist/components/Cards/HeroCard.mjs +1 -1
  85. package/dist/components/Cards/HeroCard.stories.mjs +1 -1
  86. package/dist/components/Cards/Image.mjs +1 -1
  87. package/dist/components/Cards/Image.stories.mjs +1 -1
  88. package/dist/components/Cards/PricingCard.mjs +1 -1
  89. package/dist/components/Cards/PricingCard.stories.mjs +1 -1
  90. package/dist/components/Cards/ServiceCard.mjs +1 -1
  91. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  92. package/dist/components/Cards/index.mjs +1 -1
  93. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  94. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  95. package/dist/components/HeaderFooter/Header.mjs +1 -1
  96. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  97. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  98. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  100. package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
  101. package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
  102. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  103. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  104. package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
  105. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  106. package/dist/components/HeaderFooter/index.mjs +1 -1
  107. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  108. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  109. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  110. package/dist/components/Heros/PostHero/index.mjs +1 -1
  111. package/dist/components/Heros/RenderHero.mjs +1 -1
  112. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  113. package/dist/components/Heros/index.mjs +1 -1
  114. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  115. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  116. package/dist/components/Holidays/CalendarView.mjs +1 -1
  117. package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
  118. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  119. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  120. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  121. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  122. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  123. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
  124. package/dist/components/Holidays/index.mjs +1 -1
  125. package/dist/components/Layouts/BlogList.mjs +1 -1
  126. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  127. package/dist/components/Layouts/SlideShow.d.ts +14 -0
  128. package/dist/components/Layouts/SlideShow.js +9 -1
  129. package/dist/components/Layouts/SlideShow.mjs +1 -1
  130. package/dist/components/Layouts/SlideShow.stories.js +9 -1
  131. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  132. package/dist/components/Layouts/index.js +11 -3
  133. package/dist/components/Layouts/index.mjs +1 -1
  134. package/dist/components/Menus/Categories.mjs +1 -1
  135. package/dist/components/Menus/Categories.stories.mjs +1 -1
  136. package/dist/components/Menus/Filter.mjs +1 -1
  137. package/dist/components/Menus/Filter.stories.mjs +1 -1
  138. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  139. package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
  140. package/dist/components/Menus/RelatedContent.mjs +1 -1
  141. package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
  142. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  143. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  144. package/dist/components/Menus/SidebarRight.mjs +1 -1
  145. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  146. package/dist/components/Menus/index.mjs +1 -1
  147. package/dist/components/Other/Container.mjs +1 -1
  148. package/dist/components/Other/index.mjs +1 -1
  149. package/dist/components/Payload/Card/index.mjs +1 -1
  150. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  151. package/dist/components/Payload/Link/index.mjs +1 -1
  152. package/dist/components/Payload/Media/index.mjs +1 -1
  153. package/dist/components/Payload/Pagination/index.mjs +1 -1
  154. package/dist/components/Payload/RichText/index.mjs +1 -1
  155. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  156. package/dist/components/Payload/RichText.stories.mjs +1 -1
  157. package/dist/components/Payload/index.mjs +1 -1
  158. package/dist/components/index.js +14 -6
  159. package/dist/components/index.mjs +1 -1
  160. package/dist/components/ui/alert.mjs +1 -1
  161. package/dist/components/ui/alert.stories.mjs +1 -1
  162. package/dist/components/ui/avatar.mjs +1 -1
  163. package/dist/components/ui/avatar.stories.mjs +1 -1
  164. package/dist/components/ui/badge.mjs +1 -1
  165. package/dist/components/ui/badge.stories.mjs +1 -1
  166. package/dist/components/ui/breadcrumb.mjs +1 -1
  167. package/dist/components/ui/breadcrumb.stories.mjs +1 -1
  168. package/dist/components/ui/button.mjs +1 -1
  169. package/dist/components/ui/button.stories.mjs +1 -1
  170. package/dist/components/ui/calendar.mjs +1 -1
  171. package/dist/components/ui/card.mjs +1 -1
  172. package/dist/components/ui/card.stories.mjs +1 -1
  173. package/dist/components/ui/checkbox.mjs +1 -1
  174. package/dist/components/ui/command.mjs +1 -1
  175. package/dist/components/ui/command.stories.mjs +1 -1
  176. package/dist/components/ui/dialog.mjs +1 -1
  177. package/dist/components/ui/dialog.stories.mjs +1 -1
  178. package/dist/components/ui/dropdown-menu.mjs +1 -1
  179. package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
  180. package/dist/components/ui/hover-card.mjs +1 -1
  181. package/dist/components/ui/hover-card.stories.mjs +1 -1
  182. package/dist/components/ui/index.mjs +1 -1
  183. package/dist/components/ui/input.mjs +1 -1
  184. package/dist/components/ui/input.stories.mjs +1 -1
  185. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  186. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  187. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  188. package/dist/components/ui/label.mjs +1 -1
  189. package/dist/components/ui/label.stories.mjs +1 -1
  190. package/dist/components/ui/pagination.mjs +1 -1
  191. package/dist/components/ui/popover.mjs +1 -1
  192. package/dist/components/ui/popover.stories.mjs +1 -1
  193. package/dist/components/ui/scroll-area.mjs +1 -1
  194. package/dist/components/ui/scroll-area.stories.mjs +1 -1
  195. package/dist/components/ui/select.mjs +1 -1
  196. package/dist/components/ui/separator.mjs +1 -1
  197. package/dist/components/ui/separator.stories.mjs +1 -1
  198. package/dist/components/ui/sheet.mjs +1 -1
  199. package/dist/components/ui/sheet.stories.mjs +1 -1
  200. package/dist/components/ui/sidebar.mjs +1 -1
  201. package/dist/components/ui/skeleton.mjs +1 -1
  202. package/dist/components/ui/skeleton.stories.mjs +1 -1
  203. package/dist/components/ui/textarea.mjs +1 -1
  204. package/dist/components/ui/toast.mjs +1 -1
  205. package/dist/components/ui/toast.stories.mjs +1 -1
  206. package/dist/components/ui/toaster.mjs +1 -1
  207. package/dist/components/ui/toggle-group.mjs +1 -1
  208. package/dist/components/ui/toggle.mjs +1 -1
  209. package/dist/components/ui/toggle.stories.mjs +1 -1
  210. package/dist/components/ui/tooltip.mjs +1 -1
  211. package/dist/components/ui/tooltip.stories.mjs +1 -1
  212. package/dist/globals.css +1 -1
  213. package/dist/images/hero/hero-3.mjs +1 -1
  214. package/dist/index.js +11 -7
  215. package/dist/index.mjs +1 -1
  216. package/dist/metafile-cjs.json +1 -1
  217. package/dist/metafile-esm.json +1 -1
  218. package/dist/pages/Blog.mjs +1 -1
  219. package/dist/pages/Blog.stories.mjs +1 -1
  220. package/dist/pages/Documentation.mjs +1 -1
  221. package/dist/pages/Documentation.stories.mjs +1 -1
  222. package/dist/pages/IndexPage.mjs +1 -1
  223. package/dist/pages/IndexPage.stories.mjs +1 -1
  224. package/dist/pages/Intranet.mjs +1 -1
  225. package/dist/pages/Intranet.stories.mjs +1 -1
  226. package/dist/pages/LandingPage.mjs +1 -1
  227. package/dist/pages/LandingPage.stories.mjs +1 -1
  228. package/dist/pages/Page.mjs +1 -1
  229. package/dist/pages/Page.stories.mjs +1 -1
  230. package/dist/pages/Printable.stories.js +9 -1
  231. package/dist/pages/Printable.stories.mjs +1 -1
  232. package/dist/pages/Publish.js +9 -1
  233. package/dist/pages/Publish.mjs +1 -1
  234. package/dist/pages/Publish.stories.js +9 -1
  235. package/dist/pages/Publish.stories.mjs +1 -1
  236. package/dist/pages/Website.js +1 -1
  237. package/dist/pages/Website.mjs +1 -1
  238. package/dist/pages/Website.stories.js +1 -1
  239. package/dist/pages/Website.stories.mjs +1 -1
  240. package/dist/sections/AboutSection.mjs +1 -1
  241. package/dist/sections/AboutSection.stories.mjs +1 -1
  242. package/dist/sections/BlogDetail.mjs +1 -1
  243. package/dist/sections/BlogDetail.stories.mjs +1 -1
  244. package/dist/sections/BlogListSection.mjs +1 -1
  245. package/dist/sections/BlogListSection.stories.mjs +1 -1
  246. package/dist/sections/ContactSection.mjs +1 -1
  247. package/dist/sections/ContactSection.stories.mjs +1 -1
  248. package/dist/sections/ImageSection.mjs +1 -1
  249. package/dist/sections/ImageSection.stories.mjs +1 -1
  250. package/dist/sections/MainPageSection.mjs +1 -1
  251. package/dist/sections/PricingSection.mjs +1 -1
  252. package/dist/sections/PricingSection.stories.mjs +1 -1
  253. package/dist/sections/ServiceSection.mjs +1 -1
  254. package/dist/sections/ServiceSection.stories.mjs +1 -1
  255. package/dist/sections/form/index.mjs +1 -1
  256. package/dist/sections/index.mjs +1 -1
  257. package/dist/styles/Colors.mjs +1 -1
  258. package/dist/styles/Colors.stories.mjs +1 -1
  259. package/dist/tests/payload.d.ts +300 -0
  260. package/dist/tests/payload.js +1 -0
  261. package/dist/tests/payload.mjs +1 -0
  262. package/dist/utils/AOSInit.mjs +1 -1
  263. package/dist/utils/index.mjs +1 -1
  264. package/package.json +2 -1
  265. package/dist/chunk-5RYSPKQA.mjs +0 -1
  266. package/dist/chunk-DZOQSEQ4.mjs +0 -1
  267. package/dist/chunk-NOXR37EQ.mjs +0 -1
  268. package/dist/chunk-TR26J3ET.mjs +0 -1
  269. package/dist/chunk-U3KISAHW.mjs +0 -4
@@ -0,0 +1,300 @@
1
+ export declare const RichTextTest: {
2
+ simple: {
3
+ root: {
4
+ type: string;
5
+ format: string;
6
+ indent: number;
7
+ version: number;
8
+ children: {
9
+ type: string;
10
+ format: string;
11
+ indent: number;
12
+ version: number;
13
+ children: {
14
+ mode: string;
15
+ text: string;
16
+ type: string;
17
+ style: string;
18
+ detail: number;
19
+ format: number;
20
+ version: number;
21
+ }[];
22
+ direction: string;
23
+ textStyle: string;
24
+ textFormat: number;
25
+ }[];
26
+ direction: string;
27
+ };
28
+ };
29
+ medium: {
30
+ root: {
31
+ type: string;
32
+ format: string;
33
+ indent: number;
34
+ version: number;
35
+ children: ({
36
+ tag: string;
37
+ type: string;
38
+ format: string;
39
+ indent: number;
40
+ version: number;
41
+ children: {
42
+ mode: string;
43
+ text: string;
44
+ type: string;
45
+ style: string;
46
+ detail: number;
47
+ format: number;
48
+ version: number;
49
+ }[];
50
+ direction: string;
51
+ textStyle?: undefined;
52
+ textFormat?: undefined;
53
+ } | {
54
+ type: string;
55
+ format: string;
56
+ indent: number;
57
+ version: number;
58
+ children: {
59
+ mode: string;
60
+ text: string;
61
+ type: string;
62
+ style: string;
63
+ detail: number;
64
+ format: number;
65
+ version: number;
66
+ }[];
67
+ direction: string;
68
+ textStyle: string;
69
+ textFormat: number;
70
+ tag?: undefined;
71
+ } | {
72
+ type: string;
73
+ format: string;
74
+ indent: number;
75
+ version: number;
76
+ children: never[];
77
+ direction: null;
78
+ textStyle: string;
79
+ textFormat: number;
80
+ tag?: undefined;
81
+ })[];
82
+ direction: string;
83
+ };
84
+ };
85
+ };
86
+ export declare const ImageTest: {
87
+ hero: {
88
+ id: number;
89
+ alt: string;
90
+ prefix: string;
91
+ updatedAt: string;
92
+ createdAt: string;
93
+ url: string;
94
+ thumbnailURL: string;
95
+ filename: string;
96
+ mimeType: string;
97
+ filesize: number;
98
+ width: number;
99
+ height: number;
100
+ focalX: number;
101
+ focalY: number;
102
+ sizes: {
103
+ thumbnail: {
104
+ url: string;
105
+ width: number;
106
+ height: number;
107
+ mimeType: string;
108
+ filesize: number;
109
+ filename: string;
110
+ };
111
+ square: {
112
+ url: string;
113
+ width: number;
114
+ height: number;
115
+ mimeType: string;
116
+ filesize: number;
117
+ filename: string;
118
+ };
119
+ small: {
120
+ url: string;
121
+ width: number;
122
+ height: number;
123
+ mimeType: string;
124
+ filesize: number;
125
+ filename: string;
126
+ };
127
+ medium: {
128
+ url: string;
129
+ width: number;
130
+ height: number;
131
+ mimeType: string;
132
+ filesize: number;
133
+ filename: string;
134
+ };
135
+ large: {
136
+ url: string;
137
+ width: number;
138
+ height: number;
139
+ mimeType: string;
140
+ filesize: number;
141
+ filename: string;
142
+ };
143
+ xlarge: {
144
+ url: string;
145
+ width: number;
146
+ height: number;
147
+ mimeType: string;
148
+ filesize: number;
149
+ filename: string;
150
+ };
151
+ };
152
+ };
153
+ };
154
+ export declare const BlocksTest: {
155
+ content: {
156
+ oneThirdWithImageThemeLong: {
157
+ id: string;
158
+ blockName: null;
159
+ columns: {
160
+ id: string;
161
+ size: string;
162
+ richText: {
163
+ root: {
164
+ type: string;
165
+ format: string;
166
+ indent: number;
167
+ version: number;
168
+ children: ({
169
+ type: string;
170
+ format: string;
171
+ indent: number;
172
+ version: number;
173
+ children: {
174
+ mode: string;
175
+ text: string;
176
+ type: string;
177
+ style: string;
178
+ detail: number;
179
+ format: number;
180
+ version: number;
181
+ }[];
182
+ direction: string;
183
+ textStyle: string;
184
+ textFormat: number;
185
+ } | {
186
+ type: string;
187
+ format: string;
188
+ indent: number;
189
+ version: number;
190
+ children: never[];
191
+ direction: null;
192
+ textStyle: string;
193
+ textFormat: number;
194
+ })[];
195
+ direction: string;
196
+ };
197
+ };
198
+ enableLink: null;
199
+ link: {
200
+ type: string;
201
+ newTab: null;
202
+ url: null;
203
+ label: null;
204
+ appearance: string;
205
+ };
206
+ }[];
207
+ blockType: string;
208
+ theme: {
209
+ settings: {
210
+ theme: string;
211
+ background: string;
212
+ overlay: boolean;
213
+ image: {
214
+ id: number;
215
+ alt: null;
216
+ prefix: string;
217
+ updatedAt: string;
218
+ createdAt: string;
219
+ url: string;
220
+ thumbnailURL: string;
221
+ filename: string;
222
+ mimeType: string;
223
+ filesize: number;
224
+ width: number;
225
+ height: number;
226
+ focalX: number;
227
+ focalY: number;
228
+ };
229
+ };
230
+ };
231
+ };
232
+ oneThirdWithImageThemeShort: {
233
+ id: string;
234
+ blockName: null;
235
+ columns: {
236
+ id: string;
237
+ size: string;
238
+ richText: {
239
+ root: {
240
+ type: string;
241
+ format: string;
242
+ indent: number;
243
+ version: number;
244
+ children: {
245
+ type: string;
246
+ format: string;
247
+ indent: number;
248
+ version: number;
249
+ children: {
250
+ mode: string;
251
+ text: string;
252
+ type: string;
253
+ style: string;
254
+ detail: number;
255
+ format: number;
256
+ version: number;
257
+ }[];
258
+ direction: string;
259
+ textStyle: string;
260
+ textFormat: number;
261
+ }[];
262
+ direction: string;
263
+ };
264
+ };
265
+ enableLink: null;
266
+ link: {
267
+ type: string;
268
+ newTab: null;
269
+ url: null;
270
+ label: null;
271
+ appearance: string;
272
+ };
273
+ }[];
274
+ blockType: string;
275
+ theme: {
276
+ settings: {
277
+ theme: string;
278
+ background: string;
279
+ overlay: boolean;
280
+ image: {
281
+ id: number;
282
+ alt: null;
283
+ prefix: string;
284
+ updatedAt: string;
285
+ createdAt: string;
286
+ url: string;
287
+ thumbnailURL: string;
288
+ filename: string;
289
+ mimeType: string;
290
+ filesize: number;
291
+ width: number;
292
+ height: number;
293
+ focalX: number;
294
+ focalY: number;
295
+ };
296
+ };
297
+ };
298
+ };
299
+ };
300
+ };
@@ -0,0 +1 @@
1
+ "use strict";var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var a in e)r(t,a,{get:e[a],enumerable:!0})},u=(t,e,a,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of s(e))!o.call(t,i)&&i!==a&&r(t,i,{get:()=>e[i],enumerable:!(l=n(e,i))||l.enumerable});return t};var d=t=>u(r({},"__esModule",{value:!0}),t);var h={};m(h,{BlocksTest:()=>g,ImageTest:()=>p,RichTextTest:()=>c});module.exports=d(h);var c={simple:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Sed at eros vel lacus varius varius nec id metus.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},medium:{root:{type:"root",format:"",indent:0,version:1,children:[{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. ",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus. Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{tag:"h3",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Sed at eros vel lacus varius varius nec id metus. ",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Duis sed nisl euismod, ullamcorper augue at.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}},p={hero:{id:81,alt:"Digital colleague hands",prefix:"media",updatedAt:"2025-01-23T13:20:04.875Z",createdAt:"2025-01-23T13:20:04.875Z",url:"/dummy/Gu4XOqlGSrt19M-djNAsz.jpg",thumbnailURL:"/dummy/Gu4XOqlGSrt19M-djNAsz-300x200.jpg",filename:"Gu4XOqlGSrt19M-djNAsz.jpg",mimeType:"image/jpeg",filesize:236762,width:2121,height:1414,focalX:50,focalY:50,sizes:{thumbnail:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-300x200.jpg",width:300,height:200,mimeType:"image/jpeg",filesize:7200,filename:"Gu4XOqlGSrt19M-djNAsz-300x200.jpg"},square:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-500x500.jpg",width:500,height:500,mimeType:"image/jpeg",filesize:29871,filename:"Gu4XOqlGSrt19M-djNAsz-500x500.jpg"},small:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-600x400.jpg",width:600,height:400,mimeType:"image/jpeg",filesize:24198,filename:"Gu4XOqlGSrt19M-djNAsz-600x400.jpg"},medium:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-900x600.jpg",width:900,height:600,mimeType:"image/jpeg",filesize:48260,filename:"Gu4XOqlGSrt19M-djNAsz-900x600.jpg"},large:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-1400x933.jpg",width:1400,height:933,mimeType:"image/jpeg",filesize:104334,filename:"Gu4XOqlGSrt19M-djNAsz-1400x933.jpg"},xlarge:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-1920x1280.jpg",width:1920,height:1280,mimeType:"image/jpeg",filesize:192649,filename:"Gu4XOqlGSrt19M-djNAsz-1920x1280.jpg"}}}},g={content:{oneThirdWithImageThemeLong:{id:"67a74c276365f244c8b6d149",blockName:null,columns:[{id:"67a74ea16365f244c8b6d14b",size:"oneThird",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras vehicula, libero a pharetra dictum, urna lectus porttitor lacus, at dapibus justo quam vel metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non velit nec arcu volutpat dignissim in a lorem.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Proin sagittis sem et elit fringilla, nec fringilla eros maximus. Nulla facilisi. Ut sit amet facilisis lectus. Fusce ornare metus at ante tristique, nec elementum eros fermentum. Integer volutpat magna sed justo tincidunt, sit amet aliquam arcu pellentesque. Phasellus imperdiet mi vitae ligula pharetra, a dignissim velit vehicula.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},enableLink:null,link:{type:"reference",newTab:null,url:null,label:null,appearance:"default"}}],blockType:"content",theme:{settings:{theme:"dark",background:"image",overlay:!0,image:{id:1,alt:null,prefix:"media",updatedAt:"2025-02-08T12:27:55.461Z",createdAt:"2025-02-08T12:27:55.461Z",url:"/stock1.jpg",thumbnailURL:"/stock1.jpg",filename:"stock1.jpg",mimeType:"image/jpeg",filesize:346701,width:2190,height:1369,focalX:50,focalY:50}}}},oneThirdWithImageThemeShort:{id:"67a74c276365f244c8b6d149",blockName:null,columns:[{id:"67a74ea16365f244c8b6d14b",size:"oneThird",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras vehicula, libero a pharetra dictum, urna lectus porttitor lacus, at dapibus justo quam vel metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non velit nec arcu volutpat dignissim in a lorem.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},enableLink:null,link:{type:"reference",newTab:null,url:null,label:null,appearance:"default"}}],blockType:"content",theme:{settings:{theme:"dark",background:"image",overlay:!0,image:{id:1,alt:null,prefix:"media",updatedAt:"2025-02-08T12:27:55.461Z",createdAt:"2025-02-08T12:27:55.461Z",url:"/stock1.jpg",thumbnailURL:"/stock1.jpg",filename:"stock1.jpg",mimeType:"image/jpeg",filesize:346701,width:2190,height:1369,focalX:50,focalY:50}}}}}};0&&(module.exports={BlocksTest,ImageTest,RichTextTest});
@@ -0,0 +1 @@
1
+ import{a,b,c}from"../chunk-SK4U3YXJ.mjs";import"../chunk-S7OK7D5I.mjs";export{c as BlocksTest,b as ImageTest,a as RichTextTest};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../chunk-SPOYKTBR.mjs";import"../chunk-S7OK7D5I.mjs";export{a as AOSInit};
2
+ "use strict";import{b as a}from"../chunk-22FHCZJD.mjs";import"../chunk-S7OK7D5I.mjs";export{a as AOSInit};
@@ -1 +1 @@
1
- import{a as b}from"../chunk-C5XNOZXC.mjs";import{a as c}from"../chunk-SPOYKTBR.mjs";import{a}from"../chunk-NIQ4466A.mjs";import"../chunk-S7OK7D5I.mjs";export{c as AOSInit,a as cn,b as getTableOfContents};
1
+ import{a as b}from"../chunk-C5XNOZXC.mjs";import{b as c}from"../chunk-22FHCZJD.mjs";import{a}from"../chunk-NIQ4466A.mjs";import"../chunk-S7OK7D5I.mjs";export{c as AOSInit,a as cn,b as getTableOfContents};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "cortex-react-components",
3
3
  "author": "Cortex Reply",
4
4
  "private": false,
5
- "version": "1.48.8",
5
+ "version": "1.49.0",
6
6
  "description": "A library of React components with styles. Designed to seamlessly integrate with React and Next.js.",
7
7
  "license": "MPL-2.0",
8
8
  "main": "./dist/index.js",
@@ -117,6 +117,7 @@
117
117
  "date-fns": "^4.1.0",
118
118
  "formik": "^2.4.6",
119
119
  "next-themes": "^0.4.4",
120
+ "pagedjs": "^0.4.3",
120
121
  "prism-react-renderer": "^2.4.1",
121
122
  "r18gs": "^3.0.1",
122
123
  "react-day-picker": "^8.10.1",
@@ -1 +0,0 @@
1
- import{a as f}from"./chunk-KLY2KDTY.mjs";import{a as b}from"./chunk-WSTFVGI3.mjs";import{b as k,c as u}from"./chunk-FBNFFUFR.mjs";import{a as l}from"./chunk-4RWD4HBJ.mjs";import{a}from"./chunk-NIQ4466A.mjs";import v from"next/image";import{jsx as n,jsxs as p}from"react/jsx-runtime";var y={content:b,cta:k,mediaBlock:l,imageBlock:l,features:u,reusableContentBlock:f},A=o=>{let{blocks:e}=o;return e&&Array.isArray(e)&&e.length>0?n("section",{id:"render-blocks",children:e.map((t,g)=>{var c,m;let{blockType:i}=t,r=t==null?void 0:t.theme;if(i&&i in y){let d=y[i];if(d)return p("div",{className:"py-6 relative",children:[n(h,{block:t,index:g}),n("div",{className:a("container",((c=r==null?void 0:r.settings)==null?void 0:c.theme)==="dark"?"dark":((m=r==null?void 0:r.settings)==null?void 0:m.theme)==="green"?"green":""),children:n(d,{...t})})]},g)}return null})}):null},h=o=>{var s;if(!("theme"in o.block))return null;let e=(s=o.block)==null?void 0:s.theme;if(e.settings.background==="image"){let t={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return p("div",{className:a("absolute inset-0 w-full h-full -z-10",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":""),children:[n(v,{src:e.settings.image.url||"/placeholder.svg",alt:e.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&n("div",{className:"absolute inset-0",style:{background:t.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return n("div",{className:a("absolute inset-0 -z-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":"")})};export{A as a,h as b};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-U3KISAHW.mjs";import{a as e}from"./chunk-C5XNOZXC.mjs";import{jsx as t}from"react/jsx-runtime";function a({...r}){let n=r.page,{contentWithIds:i,tableOfContents:s}=e(n);return t("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:t(o,{blocks:i})})}export{a};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-WU3JMLSC.mjs";import{a as m}from"./chunk-BZAYEKYC.mjs";import{a as i}from"./chunk-GZQDMALT.mjs";import{a as o}from"./chunk-KSCHUMVE.mjs";import{a as t}from"./chunk-GHBJK554.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:m,logoDark:a}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-WKD2UQGO.mjs";import{b as r}from"./chunk-K45M5INN.mjs";import{a as n}from"./chunk-5RYSPKQA.mjs";import{a as i}from"./chunk-GHBJK554.mjs";import{a as o}from"./chunk-C5XNOZXC.mjs";import{jsx as t,jsxs as m}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:c,tableOfContents:p}=o(f);return m("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(i,{isMenuOpen:!0,logoLight:l,logoDark:s}),t(r,{...e.hero}),t(a,{edit:e.edit,pageId:e.page.id,tableOfContents:p,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as m}from"./chunk-5RYSPKQA.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as w,useCallback as g}from"react";import{AnimatePresence as x,motion as y}from"framer-motion";import{jsx as t,jsxs as N}from"react/jsx-runtime";var W=p=>{let[l,a]=h(0),{blocks:n}=p,f=n&&Array.isArray(n)&&n.length>0,b=e=>{a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=g(((e,o)=>{let d;return(...v)=>{clearTimeout(d),d=setTimeout(()=>e(...v),o)}})(e=>{e.deltaY>0?i():s()},300),[]),u=e=>{e.key==="ArrowDown"?i():e.key==="ArrowUp"&&s()};return w(()=>(window.addEventListener("wheel",c),window.addEventListener("keydown",u),()=>{window.removeEventListener("wheel",c),window.removeEventListener("keydown",u)}),[]),N("div",{className:"flex h-screen relative",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:f&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${l===o?"bg-accent":"bg-gray-300"}`,onClick:()=>b(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),n.map((e,o)=>t("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${o===l?"opacity-100":"opacity-0"}`,children:t(m,{blocks:[e]})},o)),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:i,children:t(k,{})})]})},k=()=>t(x,{children:t(y.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:r("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:t(y.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:r("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});export{W as a};