From 8faf1a5e8316b2ef2337638ccbffc5e1237047eb Mon Sep 17 00:00:00 2001 From: Chuka Ofili Date: Sun, 25 Jan 2026 15:02:25 +0000 Subject: [PATCH 1/5] feat: add theme support to CannyChangelog --- src/makes/Canny.ts | 1 + src/views/CannyChangelog/index.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/makes/Canny.ts b/src/makes/Canny.ts index 01fe2af..e41d7bd 100644 --- a/src/makes/Canny.ts +++ b/src/makes/Canny.ts @@ -10,6 +10,7 @@ export type ChangeLogOptions = { appID: string; align: "top" | "bottom" | "left" | "right"; position: "top" | "bottom" | "left" | "right"; + theme?: "auto" | "light" | "dark"; labelIDs?: string[]; }; diff --git a/src/views/CannyChangelog/index.tsx b/src/views/CannyChangelog/index.tsx index 8380046..971fec2 100644 --- a/src/views/CannyChangelog/index.tsx +++ b/src/views/CannyChangelog/index.tsx @@ -19,6 +19,7 @@ export const CannyChangelog: React.FC = (props) => { component: Component = "button", align = "left", position = "bottom", + theme = "auto", labelIDs, children, ...rest @@ -38,11 +39,12 @@ export const CannyChangelog: React.FC = (props) => { appID: appId, align, position, + theme, labelIDs }); return () => canny.closeChangelog(); - }, [appId, align, position, labelIDs]); + }, [appId, align, position, theme, labelIDs]); return ( Date: Sun, 25 Jan 2026 19:39:54 +0200 Subject: [PATCH 2/5] v0.0.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d65c6ad..e5775b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-canny", - "version": "0.0.8", + "version": "0.0.9", "author": "Kris Papercut ", "description": "Canny.io integration for react", "license": "MIT", From cfae1ff784499117911eb140f99a311beba44d92 Mon Sep 17 00:00:00 2001 From: Kris Papercut Date: Sun, 25 Jan 2026 19:48:38 +0200 Subject: [PATCH 3/5] v0.0.9 --- .github/workflows/publish-beta.yml | 6 +++--- .github/workflows/publish-latest.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 96cce03..3dc03f8 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -21,10 +21,10 @@ jobs: id-token: write steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24 registry-url: 'https://registry.npmjs.org' @@ -35,7 +35,7 @@ jobs: tag: beta - name: Cache dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.npm key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }} diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 616eeb6..2fa85e2 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -15,16 +15,16 @@ jobs: id-token: write steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24 registry-url: 'https://registry.npmjs.org' - name: Cache dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.npm key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }} @@ -49,10 +49,10 @@ jobs: needs: publish steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24 registry-url: 'https://registry.npmjs.org' From be01209d2d28b82a52dfed870bd02b59fe0e3d72 Mon Sep 17 00:00:00 2001 From: Kris Papercut Date: Sun, 25 Jan 2026 19:55:13 +0200 Subject: [PATCH 4/5] v0.0.9 --- .github/workflows/publish-beta.yml | 3 +-- .github/workflows/publish-latest.yml | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 3dc03f8..652a9a3 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -27,6 +27,7 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 + token: ${{ secrets.NODE_AUTH_TOKEN }} registry-url: 'https://registry.npmjs.org' - name: Setup beta version @@ -49,6 +50,4 @@ jobs: - name: Publish beta to NPM if: ${{ github.repository_owner == 'kearisp' }} shell: bash - env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} run: npm publish --provenance --tag beta diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 2fa85e2..28d7bab 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -21,6 +21,7 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 + token: ${{ secrets.NODE_AUTH_TOKEN }} registry-url: 'https://registry.npmjs.org' - name: Cache dependencies @@ -37,8 +38,6 @@ jobs: - name: Publish to NPM shell: bash - env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} run: npm publish --provenance unpublish-beta: @@ -55,12 +54,11 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 + token: ${{ secrets.NODE_AUTH_TOKEN }} registry-url: 'https://registry.npmjs.org' - name: Unpublish previous beta versions shell: bash - env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} run: | PACKAGE_NAME=$(npm pkg get name | sed -e 's/^"//' -e 's/"$//') PACKAGE_VERSION=$(npm pkg get version | sed -e 's/^"//' -e 's/"$//') From 65cc3d7bd749751059557f973e45835f13b72b20 Mon Sep 17 00:00:00 2001 From: Kris Papercut Date: Sun, 25 Jan 2026 20:01:32 +0200 Subject: [PATCH 5/5] v0.0.9 --- .github/workflows/publish-beta.yml | 3 ++- .github/workflows/publish-latest.yml | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 652a9a3..3dc03f8 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -27,7 +27,6 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 - token: ${{ secrets.NODE_AUTH_TOKEN }} registry-url: 'https://registry.npmjs.org' - name: Setup beta version @@ -50,4 +49,6 @@ jobs: - name: Publish beta to NPM if: ${{ github.repository_owner == 'kearisp' }} shell: bash + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} run: npm publish --provenance --tag beta diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 28d7bab..2fa85e2 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -21,7 +21,6 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 - token: ${{ secrets.NODE_AUTH_TOKEN }} registry-url: 'https://registry.npmjs.org' - name: Cache dependencies @@ -38,6 +37,8 @@ jobs: - name: Publish to NPM shell: bash + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} run: npm publish --provenance unpublish-beta: @@ -54,11 +55,12 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 - token: ${{ secrets.NODE_AUTH_TOKEN }} registry-url: 'https://registry.npmjs.org' - name: Unpublish previous beta versions shell: bash + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} run: | PACKAGE_NAME=$(npm pkg get name | sed -e 's/^"//' -e 's/"$//') PACKAGE_VERSION=$(npm pkg get version | sed -e 's/^"//' -e 's/"$//')