portosaurus 1.18.0 → 1.18.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portosaurus",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "author": "soymadip",
5
5
  "license": "GPL-3.0-only",
6
6
  "description": "Complete portfolio cum personal website solution for your digital personality.",
@@ -50,7 +50,7 @@
50
50
  "favicons": "^7.2.0",
51
51
  "fs-extra": "^11.3.3",
52
52
  "plugin-image-zoom": "github:flexanalytics/plugin-image-zoom",
53
- "portosaurus": "^1.17.1",
53
+ "portosaurus": "^1.18.0",
54
54
  "prism-react-renderer": "^2.4.1",
55
55
  "prompts": "^2.4.2",
56
56
  "react": "^18.3.1",
@@ -25,7 +25,6 @@ const sortEmail = (links) => {
25
25
  export default function ContactSection({ id, className, title, subtitle }) {
26
26
  const { siteConfig } = useDocusaurusContext();
27
27
  const { customFields } = siteConfig;
28
- const userIconMap = customFields.iconMap || {};
29
28
 
30
29
  let socialLinks = customFields.socialLinks.links || [];
31
30
 
@@ -55,19 +54,11 @@ export default function ContactSection({ id, className, title, subtitle }) {
55
54
  aria-label="Social media and contact links"
56
55
  >
57
56
  {socialLinks.map((social, index) => {
58
- const defaultIconData = defaultIconMap[social.icon] || {};
59
- const userIconData = userIconMap[social.icon] || {};
60
-
61
- // User can override color, but component must come from default (due to serialization)
62
- const iconData = {
63
- ...defaultIconData,
64
- ...userIconData,
65
- icon: defaultIconData.icon, // Enforce default component
66
- };
57
+ const iconData = defaultIconMap[social.icon] || {};
67
58
 
68
59
  const name = social.name || "?";
69
60
  const Icon = iconData.icon || FaQuestionCircle;
70
- const iconColor = iconData.color || "#3578e5";
61
+ const iconColor = social.color || iconData.color || "#3578e5";
71
62
  const description =
72
63
  name === "?" ? "" : social.desc || `Connect with me on ${name}`;
73
64
  const url = social.url;