cortex-react-components 1.58.22 → 1.59.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 (214) hide show
  1. package/dist/{chunk-H5ZJ5FZ6.mjs → chunk-26FHIJPI.mjs} +1 -1
  2. package/dist/{chunk-I2PJ5ANT.mjs → chunk-3TNHR4R3.mjs} +1 -1
  3. package/dist/{chunk-QID6JIRX.mjs → chunk-63JLGEG4.mjs} +1 -1
  4. package/dist/{chunk-46OVI6RB.mjs → chunk-6ARDJ33C.mjs} +1 -1
  5. package/dist/{chunk-6DHYRATS.mjs → chunk-6LPSD3MQ.mjs} +1 -1
  6. package/dist/{chunk-XP6N7473.mjs → chunk-6SQK6BMG.mjs} +1 -1
  7. package/dist/{chunk-QBLN27FA.mjs → chunk-75OAUMGO.mjs} +1 -1
  8. package/dist/{chunk-2DGZ2JZ5.mjs → chunk-BTY3MRVI.mjs} +1 -1
  9. package/dist/{chunk-AX52NWUN.mjs → chunk-C2GNS62O.mjs} +1 -1
  10. package/dist/{chunk-MGBLZM7Q.mjs → chunk-C3TKY5VE.mjs} +1 -1
  11. package/dist/{chunk-QSBB2P4N.mjs → chunk-CHA4NVM5.mjs} +1 -1
  12. package/dist/{chunk-OJPHYSRN.mjs → chunk-DP5TBNAW.mjs} +1 -1
  13. package/dist/chunk-FPQBVIUS.mjs +4 -0
  14. package/dist/{chunk-ZQGSLXFF.mjs → chunk-GM53J62R.mjs} +1 -1
  15. package/dist/{chunk-D44ZXHH4.mjs → chunk-GUKEDBIY.mjs} +1 -1
  16. package/dist/{chunk-FGNLLSPZ.mjs → chunk-HJXEIYVK.mjs} +1 -1
  17. package/dist/{chunk-FPJFWQB5.mjs → chunk-HPMQRCDC.mjs} +1 -1
  18. package/dist/{chunk-IGYTQN3S.mjs → chunk-IABQ3JMG.mjs} +1 -1
  19. package/dist/{chunk-G2BJSFF4.mjs → chunk-IAP7Y2DK.mjs} +1 -1
  20. package/dist/{chunk-XXTN5HMN.mjs → chunk-J2IXHXCA.mjs} +1 -1
  21. package/dist/{chunk-UIBWSN7F.mjs → chunk-JVM2ZAN6.mjs} +1 -1
  22. package/dist/{chunk-F4JKB4UG.mjs → chunk-JZE6HGP6.mjs} +1 -1
  23. package/dist/{chunk-477T4CBB.mjs → chunk-K7XFS6IQ.mjs} +1 -1
  24. package/dist/{chunk-HER7J6HM.mjs → chunk-KEPEJWQO.mjs} +1 -1
  25. package/dist/{chunk-QNE2DK3R.mjs → chunk-MFTCHZFC.mjs} +1 -1
  26. package/dist/{chunk-QTO5C7WM.mjs → chunk-MTTKHEZZ.mjs} +1 -1
  27. package/dist/{chunk-6YWAX7NS.mjs → chunk-NHTPGUMT.mjs} +1 -1
  28. package/dist/chunk-ONTIR6Z3.mjs +1 -0
  29. package/dist/{chunk-BBCS6735.mjs → chunk-Q32SRZ5X.mjs} +1 -1
  30. package/dist/{chunk-MTIC2X6C.mjs → chunk-RYY3W5VY.mjs} +1 -1
  31. package/dist/{chunk-JPFBD2KD.mjs → chunk-SQWRG4U3.mjs} +1 -1
  32. package/dist/{chunk-7WDAODFS.mjs → chunk-SUIR2RAA.mjs} +1 -1
  33. package/dist/{chunk-S3KRL344.mjs → chunk-UFDQJZAB.mjs} +1 -1
  34. package/dist/{chunk-RJGKFNZL.mjs → chunk-UKJ3TIPX.mjs} +1 -1
  35. package/dist/{chunk-G3J6AOMR.mjs → chunk-VZ5LM33N.mjs} +1 -1
  36. package/dist/{chunk-X5XG7LVM.mjs → chunk-WDVSSHIB.mjs} +1 -1
  37. package/dist/{chunk-7XB4Y3U2.mjs → chunk-XGNF75KY.mjs} +1 -1
  38. package/dist/{chunk-SPAW5K3E.mjs → chunk-Y74ENEUN.mjs} +1 -1
  39. package/dist/{chunk-PJSCXNH4.mjs → chunk-ZSUPFOXY.mjs} +1 -1
  40. package/dist/components/Blocks/Banner.js +1 -1
  41. package/dist/components/Blocks/Banner.mjs +1 -1
  42. package/dist/components/Blocks/CallToAction.js +1 -1
  43. package/dist/components/Blocks/CallToAction.mjs +1 -1
  44. package/dist/components/Blocks/CallToAction.stories.js +1 -1
  45. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  46. package/dist/components/Blocks/CollapsibleArea.js +1 -1
  47. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  48. package/dist/components/Blocks/CollapsibleArea.stories.js +1 -1
  49. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  50. package/dist/components/Blocks/Content.js +1 -1
  51. package/dist/components/Blocks/Content.mjs +1 -1
  52. package/dist/components/Blocks/Content.stories.js +1 -1
  53. package/dist/components/Blocks/Content.stories.mjs +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  55. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  56. package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
  57. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  58. package/dist/components/Blocks/ImageBlock.js +1 -1
  59. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  60. package/dist/components/Blocks/MediaBlock.js +1 -1
  61. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  62. package/dist/components/Blocks/RelatedPosts.js +1 -1
  63. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  64. package/dist/components/Blocks/RenderBlocks.js +1 -1
  65. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  66. package/dist/components/Blocks/ReusableContentBlock.js +1 -1
  67. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  68. package/dist/components/Blocks/index.js +1 -1
  69. package/dist/components/Blocks/index.mjs +1 -1
  70. package/dist/components/CRM/DealDetails.mjs +1 -1
  71. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  72. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  73. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  74. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  75. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  76. package/dist/components/CRM/index.mjs +1 -1
  77. package/dist/components/Cards/ContentCard.js +1 -1
  78. package/dist/components/Cards/ContentCard.mjs +1 -1
  79. package/dist/components/Cards/ContentCard.stories.js +1 -1
  80. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  81. package/dist/components/Cards/FeatureCard.js +1 -1
  82. package/dist/components/Cards/FeatureCard.mjs +1 -1
  83. package/dist/components/Cards/FeatureCard.stories.js +1 -1
  84. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  85. package/dist/components/Cards/index.js +4 -4
  86. package/dist/components/Cards/index.mjs +1 -1
  87. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  88. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  89. package/dist/components/Heros/HighImpact/index.js +1 -1
  90. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  91. package/dist/components/Heros/LowImpact/index.js +1 -1
  92. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  93. package/dist/components/Heros/MediumImpact/index.js +1 -1
  94. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  95. package/dist/components/Heros/PostHero/index.mjs +1 -1
  96. package/dist/components/Heros/RenderHero.js +1 -1
  97. package/dist/components/Heros/RenderHero.mjs +1 -1
  98. package/dist/components/Heros/index.js +1 -1
  99. package/dist/components/Heros/index.mjs +1 -1
  100. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  101. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  102. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  103. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  104. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  105. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  106. package/dist/components/Holidays/index.mjs +1 -1
  107. package/dist/components/Layouts/FeatureGrid.stories.js +1 -1
  108. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  109. package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
  110. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  111. package/dist/components/Layouts/Print.js +2 -2
  112. package/dist/components/Layouts/Print.mjs +1 -1
  113. package/dist/components/Layouts/Print.stories.js +1 -1
  114. package/dist/components/Layouts/Print.stories.mjs +1 -1
  115. package/dist/components/Layouts/SlideShow.js +3 -3
  116. package/dist/components/Layouts/SlideShow.mjs +1 -1
  117. package/dist/components/Layouts/SlideShow.stories.js +3 -3
  118. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  119. package/dist/components/Layouts/index.js +4 -4
  120. package/dist/components/Layouts/index.mjs +1 -1
  121. package/dist/components/Menus/index.mjs +1 -1
  122. package/dist/components/Payload/Card/index.js +1 -1
  123. package/dist/components/Payload/Card/index.mjs +1 -1
  124. package/dist/components/Payload/CollectionArchive/index.js +1 -1
  125. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  126. package/dist/components/Payload/Media/VideoMedia/index.js +1 -1
  127. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  128. package/dist/components/Payload/Media/index.js +1 -1
  129. package/dist/components/Payload/Media/index.mjs +1 -1
  130. package/dist/components/Payload/RichText/index.js +1 -1
  131. package/dist/components/Payload/RichText/index.mjs +1 -1
  132. package/dist/components/Payload/RichText/serialize.js +1 -1
  133. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  134. package/dist/components/Payload/RichText.stories.js +1 -1
  135. package/dist/components/Payload/RichText.stories.mjs +1 -1
  136. package/dist/components/Payload/index.js +1 -1
  137. package/dist/components/Payload/index.mjs +1 -1
  138. package/dist/components/index.js +7 -7
  139. package/dist/components/index.mjs +1 -1
  140. package/dist/components/ui/index.mjs +1 -1
  141. package/dist/index.js +9 -9
  142. package/dist/index.mjs +1 -1
  143. package/dist/metafile-cjs.json +1 -1
  144. package/dist/metafile-esm.json +1 -1
  145. package/dist/pages/Blog.js +1 -1
  146. package/dist/pages/Blog.mjs +1 -1
  147. package/dist/pages/Blog.stories.js +1 -1
  148. package/dist/pages/Blog.stories.mjs +1 -1
  149. package/dist/pages/IndexPage.mjs +1 -1
  150. package/dist/pages/IndexPage.stories.mjs +1 -1
  151. package/dist/pages/LandingPage.js +3 -3
  152. package/dist/pages/LandingPage.mjs +1 -1
  153. package/dist/pages/LandingPage.stories.js +2 -2
  154. package/dist/pages/LandingPage.stories.mjs +1 -1
  155. package/dist/pages/Page.js +1 -1
  156. package/dist/pages/Page.mjs +1 -1
  157. package/dist/pages/Page.stories.js +177 -177
  158. package/dist/pages/Page.stories.mjs +1 -1
  159. package/dist/pages/Printable.stories.js +4 -4
  160. package/dist/pages/Printable.stories.mjs +1 -1
  161. package/dist/pages/Publish.js +4 -4
  162. package/dist/pages/Publish.mjs +1 -1
  163. package/dist/pages/Publish.stories.js +4 -4
  164. package/dist/pages/Publish.stories.mjs +1 -1
  165. package/dist/pages/Website.js +1 -1
  166. package/dist/pages/Website.mjs +1 -1
  167. package/dist/pages/Website.stories.js +1 -1
  168. package/dist/pages/Website.stories.mjs +1 -1
  169. package/dist/sections/AboutSection.js +1 -1
  170. package/dist/sections/AboutSection.mjs +1 -1
  171. package/dist/sections/AboutSection.stories.js +1 -1
  172. package/dist/sections/AboutSection.stories.mjs +1 -1
  173. package/dist/sections/BlogDetail.js +1 -1
  174. package/dist/sections/BlogDetail.mjs +1 -1
  175. package/dist/sections/BlogDetail.stories.js +1 -1
  176. package/dist/sections/BlogDetail.stories.mjs +1 -1
  177. package/dist/sections/BlogList.js +3 -3
  178. package/dist/sections/BlogList.mjs +1 -1
  179. package/dist/sections/BlogList.stories.js +3 -3
  180. package/dist/sections/BlogList.stories.mjs +1 -1
  181. package/dist/sections/BlogListSection.mjs +1 -1
  182. package/dist/sections/BlogListSection.stories.mjs +1 -1
  183. package/dist/sections/ContactSection.js +1 -1
  184. package/dist/sections/ContactSection.mjs +1 -1
  185. package/dist/sections/ContactSection.stories.js +1 -1
  186. package/dist/sections/ContactSection.stories.mjs +1 -1
  187. package/dist/sections/ImageSection.stories.js +1 -1
  188. package/dist/sections/ImageSection.stories.mjs +1 -1
  189. package/dist/sections/MainPageSection.mjs +1 -1
  190. package/dist/sections/PageSections.js +2 -2
  191. package/dist/sections/PageSections.mjs +1 -1
  192. package/dist/sections/PageSections.stories.js +2 -2
  193. package/dist/sections/PageSections.stories.mjs +1 -1
  194. package/dist/sections/PricingSection.js +1 -1
  195. package/dist/sections/PricingSection.mjs +1 -1
  196. package/dist/sections/PricingSection.stories.js +1 -1
  197. package/dist/sections/PricingSection.stories.mjs +1 -1
  198. package/dist/sections/ServiceDetail.js +1 -1
  199. package/dist/sections/ServiceDetail.mjs +1 -1
  200. package/dist/sections/ServiceDetailSection.js +1 -1
  201. package/dist/sections/ServiceDetailSection.mjs +1 -1
  202. package/dist/sections/ServiceDetailSection.stories.js +1 -1
  203. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  204. package/dist/sections/ServiceSection.js +1 -1
  205. package/dist/sections/ServiceSection.mjs +1 -1
  206. package/dist/sections/ServiceSection.stories.js +1 -1
  207. package/dist/sections/ServiceSection.stories.mjs +1 -1
  208. package/dist/sections/index.js +3 -3
  209. package/dist/sections/index.mjs +1 -1
  210. package/dist/utils/getURL.mjs +1 -1
  211. package/package.json +1 -1
  212. package/dist/chunk-44TDI42O.mjs +0 -1
  213. package/dist/chunk-IREQMG2S.mjs +0 -1
  214. package/dist/chunk-TFWGOEV7.mjs +0 -4
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.58.22",
5
+ "version": "1.59.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",
@@ -1 +0,0 @@
1
- import{a as e}from"./chunk-BOPZHZ27.mjs";var R=()=>{let o=process.env.NEXT_PUBLIC_SERVER_URL;return!o&&process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:(o||(o="http://localhost:3000"),o)},s=()=>{if(e){let o=window.location.protocol,r=window.location.hostname,t=window.location.port;return`${o}//${r}${t?`:${t}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};export{R as a,s as b};
@@ -1 +0,0 @@
1
- import{a as x}from"./chunk-KML6U7IE.mjs";import{a as N}from"./chunk-TXXFXCXB.mjs";import{f as h}from"./chunk-FPJFWQB5.mjs";import{b as v}from"./chunk-BDX257W2.mjs";import{a as c,b as C,c as b,e as p}from"./chunk-D76EO57Z.mjs";import{a as k}from"./chunk-UESKYRNK.mjs";import{a as P}from"./chunk-WISCWNL2.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:s}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),s&&s.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:s.map((e,n)=>t("li",{children:t(P,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},n))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:s="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:n,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=n==null?void 0:n[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(k,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(h,{content:U,enableGutter:!1,className:"prose-invert"})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(C,{children:t(b,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${s}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(N,{links:r.links,title:r.title})})]})]})})}export{j as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{b as i}from"./chunk-44TDI42O.mjs";import{a as s}from"./chunk-NIQ4466A.mjs";import{useEffect as a,useRef as d}from"react";import{jsx as r}from"react/jsx-runtime";var v=n=>{let{onClick:c,resource:o,videoClassName:l}=n,t=d(null);if(a(()=>{let{current:e}=t;e&&e.addEventListener("suspend",()=>{})},[]),o&&typeof o=="object"){let{filename:e}=o;return r("video",{autoPlay:!0,className:s(l),controls:!1,loop:!0,muted:!0,onClick:c,playsInline:!0,ref:t,children:r("source",{src:`${i()}/media/${e}`})})}return null};export{v as a};