Tags: ClickHouse/click-ui
Tags
feat(codeblock): add plaintext support & upgrade react-highlighter (#751 ) - Upgraded react-syntax-highlighter to latest version for improved performance and features. - Added support for plaintext code blocks in CodeBlock component which does not apply any syntax highlighting.
Fix: Button text clipping in flex containers (#749) * Adding a new story to demonstrate text clipping issue in flex containers. * fix(Button): prevent text clipping in flex containers Add flex-shrink: 0 to prevent button from shrinking below its content width when placed inside a flex container with overflow constraints. * refactor(Button.stories): remove FlexContainerTextClipping story and unused imports
Fix theme breaking changes issue (#747) * Update types.ts * Refine theme types and update useCUITheme return type Wrapped CUIThemeType with Prettify for improved type readability and updated useCUITheme to explicitly return PublicTheme. Also refined the type of the 'name' property in the returned object. * Remove 'as const' from theme variable exports Eliminated the 'as const' assertion from theme exports in variables.dark.ts and variables.light.ts, and updated the style-dictionary config to match. Also removed the GetTypes utility type and its usage, simplifying theme type definitions. * Add GetTypes utility and update theme type definitions Introduces the GetTypes utility type to widen literal types in theme objects. Updates CUIThemeType to use GetTypes and allow an optional 'name' property, improving type safety and flexibility for theme management. * Refactor theme types and exports for clarity Introduces a distinct Theme type for internal and DefaultTheme use, while maintaining CUIThemeType as the public subset for backward compatibility. Updates exports and type aliases for improved consistency and clarity.
Adding new region flag (#742) * Adding new region flag * add indonesia * camel case attrib * Removing unncessary typecast --------- Co-authored-by: Dani Sandoval <[email protected]> Co-authored-by: Matt Woenker <[email protected]>
Enhance publish workflow with branch input and npm tag logic (#730) * Enhance publish workflow with branch input and npm tag logic Adds a 'branch' input for manual workflow dispatches, improves repository checkout logic for both manual and release triggers, configures npm authentication, and sets the npm publish tag based on the release type (beta, alpha, rc, or latest). These changes provide more flexibility and automation for publishing releases. * Update npm authentication in publish workflow Replaces 'yarn config set npmAuthToken' with direct .npmrc token echo for npm authentication in the publish GitHub Actions workflow. * Debugging yarn publish with yarn v4 try upgrading to yarn v4 to see the issue still persists * Remove npm authentication step from publish workflow The step configuring npm authentication was removed from the GitHub Actions publish workflow. This may indicate a change in how authentication is handled or that it is no longer required for this workflow. * Update the publishing link * Add Yarn npm auth configuration for CI publishing Configured Yarn to set npmAuthToken and always authenticate with the npm registry during CI publishing. Updated the workflow to set and verify the auth token, and adjusted .yarnrc.yml to enable npmAlwaysAuth for the npm registry. * Update Yarn npm auth config in publish workflow Changed Yarn npm authentication to use the scoped registry config key and updated the verification step to match. This improves compatibility with Yarn v2+ and ensures the correct token is set for publishing. * bump version to 0.0.241-beta.6 * Refactor publish workflow for flexible npm tagging Update the GitHub Actions publish workflow to support both semantic version and custom tag inputs, improving prerelease and branch-based publishing. Switch to OIDC authentication for npm publishing and simplify .yarnrc.yml by removing always-auth configuration. * Switch npm publish to use npm CLI and update Yarn config Replaces 'yarn npm publish' with 'npm publish' in the GitHub Actions workflow for publishing to npm. Also removes the npmPublishRegistry setting from .yarnrc.yml, streamlining the configuration. * Clean npm config before publish to use OIDC Added a step to remove existing npm authentication config and ensure OIDC is used for publishing. This helps prevent conflicts with legacy auth tokens and verifies OIDC token availability. * Add debug output to publish workflow Enhanced the npm publish GitHub Actions workflow with additional debug output, including npm version, OIDC environment checks, and publishing details. This should help diagnose issues during the publish process. * Add step to display npm error log on publish failure Introduced a workflow step to output the npm error log if the publish step fails. This aids in debugging npm publish issues by providing immediate access to error details in the workflow logs. * Update Node setup and OIDC token handling in publish workflow Upgrades actions/setup-node from v3 to v4, streamlines OIDC token retrieval for npm authentication, and sets NODE_AUTH_TOKEN using the generated token. This improves security and compatibility with the latest GitHub Actions best practices. * Update Node to v22 and improve npm OIDC publishing Bump Node version to 22.x in the publish workflow to ensure npm >= 11.5.1 with native OIDC support. Remove manual OIDC token retrieval and use npm's tokenless publishing, adding a version check and upgrade step for npm if needed. * Code optimization Remove unwanted code related to debuggin --------- Co-authored-by: GitHub Actions <[email protected]>
PreviousNext