From d8cdee6e3340b17288023b22ec34e277ee5f9546 Mon Sep 17 00:00:00 2001
From: Rahul Vyas
Date: Sun, 15 Mar 2026 16:15:27 +0530
Subject: [PATCH 1/2] fix: update projectInformation field to be optional in
organizationInformation type and adjust related component rendering
---
README.md | 2 +-
src/components/SupportUsButton.tsx | 35 +++++++++++++++++-------------
src/types/index.ts | 2 +-
3 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index 149a0f4..10e6896 100644
--- a/README.md
+++ b/README.md
@@ -425,7 +425,7 @@ Information about the organization and project.
| `name` | string | Yes | Organization name |
| `description` | string | Yes | Organization description |
| `logo` | `Image` / string | No | Organization logo |
-| `projectInformation` | `projectInformation` | Yes | Project details |
+| `projectInformation` | `projectInformation` | No | Project details |
diff --git a/src/components/SupportUsButton.tsx b/src/components/SupportUsButton.tsx
index 2baa3c2..1438a25 100644
--- a/src/components/SupportUsButton.tsx
+++ b/src/components/SupportUsButton.tsx
@@ -193,40 +193,45 @@ function SupportUsButton({
{/* Line */}
-
+ >
+ )}
{/* Project information */}
-
-
+
- ABOUT PROJECT: {organizationInformation.projectInformation.name}
-
-
+ ABOUT PROJECT:{" "}
+ {organizationInformation.projectInformation.name}
+
+
- "{organizationInformation.projectInformation.description}"
-
-
+ >
+ "{organizationInformation.projectInformation.description}"
+
+
+ )}
diff --git a/src/types/index.ts b/src/types/index.ts
index a715ef7..eb5e896 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -56,7 +56,7 @@ export type organizationInformation = {
/** Organization logo */
logo?: Image | string;
- projectInformation: projectInformation;
+ projectInformation?: projectInformation;
};
/* =========================
From 3ca4a6da26e2364a0c202f78eeca9ad9520460d2 Mon Sep 17 00:00:00 2001
From: Rahul Vyas
Date: Sun, 15 Mar 2026 16:15:31 +0530
Subject: [PATCH 2/2] 1.1.0
---
package-lock.json | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 0abf113..4606c27 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "support-us-button",
- "version": "1.0.0",
+ "version": "1.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "support-us-button",
- "version": "1.0.0",
+ "version": "1.1.0",
"license": "GNU General Public License v3.0",
"dependencies": {
"tslib": "^2.8.1"
diff --git a/package.json b/package.json
index df1e19a..564d669 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "support-us-button",
- "version": "1.0.0",
+ "version": "1.1.0",
"description": "A customizable and flexible Support Us button component for integrating sponsorship and donation options into web applications.",
"keywords": [
"aossie",