From a47b3f1f82709213848486112e9ddc086fb503b1 Mon Sep 17 00:00:00 2001 From: parthkirsan Date: Fri, 7 Nov 2025 14:44:09 +0530 Subject: [PATCH 1/3] add default value of background theme --- commands/storybook.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commands/storybook.js b/commands/storybook.js index 7ee2711..92fc848 100644 --- a/commands/storybook.js +++ b/commands/storybook.js @@ -78,6 +78,13 @@ async function storybook(serve, options) { backgroundTheme = storybookConfig.backgroundTheme.toLowerCase(); } + if (storybookConfig.useGlobals === true || storybookConfig.backgroundTheme == undefined) { + useGlobals = true; + backgroundTheme = 'light'; + } + + console.log(`useGlobals: ${useGlobals}, backgroundTheme: ${backgroundTheme}`); + // Upload Storybook static await static.getSignedUrl(options) .then(async function (response) { From ed2003d971cf0c438ece3c165ee34b9d9957af43 Mon Sep 17 00:00:00 2001 From: parthkirsan Date: Fri, 7 Nov 2025 14:47:28 +0530 Subject: [PATCH 2/3] remove unnecessary logging --- commands/storybook.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/commands/storybook.js b/commands/storybook.js index 92fc848..19d0bc5 100644 --- a/commands/storybook.js +++ b/commands/storybook.js @@ -83,8 +83,6 @@ async function storybook(serve, options) { backgroundTheme = 'light'; } - console.log(`useGlobals: ${useGlobals}, backgroundTheme: ${backgroundTheme}`); - // Upload Storybook static await static.getSignedUrl(options) .then(async function (response) { From 75656e195312347aafd3e48da8223350194a9bce Mon Sep 17 00:00:00 2001 From: parthkirsan Date: Fri, 7 Nov 2025 18:23:27 +0530 Subject: [PATCH 3/3] 1.1.29 --- 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 1eaf7d3..e9790ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lambdatest/smartui-storybook", - "version": "1.1.28", + "version": "1.1.29", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@lambdatest/smartui-storybook", - "version": "1.1.28", + "version": "1.1.29", "license": "MIT", "dependencies": { "archiver": "^5.3.1", diff --git a/package.json b/package.json index 4e29baa..b87b095 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lambdatest/smartui-storybook", - "version": "1.1.28", + "version": "1.1.29", "description": "LambdaTest's command-line interface (CLI) aimed to help you run your SmartUI tests on LambdaTest platform", "main": "index.js", "repository": {