Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.12.0 #962

Merged
merged 16 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

### Bug Fixes

- Add pointer cursor to color picker button ([#936](https://github.com/umbraco/Umbraco.UI/issues/936)) ([86c4fce](https://github.com/umbraco/Umbraco.UI/commit/86c4fce113530f7bf95b4a738ae4f60a099de224))

### Features

- make actions container visible on focus-within ([#949](https://github.com/umbraco/Umbraco.UI/issues/949)) ([29cfe66](https://github.com/umbraco/Umbraco.UI/commit/29cfe66a2f6fd0d27f342ebd91b14f537be3c286))

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

### Bug Fixes
Expand Down
6 changes: 2 additions & 4 deletions docs/RELEASE_INSTRUCTION.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# UI Library Release workflow

1. Create a new branch for the release. We need a good naming convention: `Release/<patch/minor/major>-<YYMMDD>` (example: `Release/Patch-220128`).
1. **Important:** At this step it is essential to generate the release notes for the new release, because they are made by comparing the current changes with the previous release. Run the command `npm run lerna:changelog` to generate the release notes into the console and make a copy of them to use later for Github Releases. It is not possible to run later due to new tags.
1. You probably need to generate a Github token with the "repo" access for this. [Generate one on Github](https://github.com/settings/tokens/new) to do so.
1. Review new release PR (either [on GitHub](https://github.com/umbraco/Umbraco.UI/compare/) or through `npm run lerna:diff`).
1. Create a new branch for the release. We need a good naming convention: `release/<Version>` (example: `release/1.12.0`).
1. Review new release PR (either [on GitHub](https://github.com/umbraco/Umbraco.UI/compare/)).
1. Make a PR from the new branch to the `main` branch.
1. Run `npm run lerna:version` and Lerna will suggest a version bump for each package.
1. Review the new version numbers and accept with `y` and Lerna will now bump each package and update the local CHANGELOG.md file using descriptions from the conventional commits, Lerna will also reinstall NPM and generate a new lockfile.
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
"packages": ["packages/*"],
"version": "1.11.0",
"version": "1.12.0",
"preid": "rc",
"exact": true,
"noPush": true,
Expand Down
995 changes: 408 additions & 587 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"react-syntax-highlighter": "15.5.0",
"remark-gfm": "3.0.1",
"rimraf": "5.0.5",
"rollup": "4.9.6",
"rollup": "4.27.2",
"rollup-plugin-esbuild": "6.1.1",
"rollup-plugin-import-css": "3.5.5",
"rollup-plugin-minify-html-literals": "1.2.6",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-action-bar/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-action-bar

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-action-bar
Expand Down
6 changes: 3 additions & 3 deletions packages/uui-action-bar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-action-bar",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"keywords": [
"Umbraco",
Expand Down Expand Up @@ -30,8 +30,8 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-base": "1.11.0",
"@umbraco-ui/uui-button-group": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0",
"@umbraco-ui/uui-button-group": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-avatar-group/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-avatar-group

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-avatar-group
Expand Down
6 changes: 3 additions & 3 deletions packages/uui-avatar-group/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-avatar-group",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"keywords": [
"Umbraco",
Expand Down Expand Up @@ -30,8 +30,8 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-avatar": "1.11.0",
"@umbraco-ui/uui-base": "1.11.0"
"@umbraco-ui/uui-avatar": "1.12.0",
"@umbraco-ui/uui-base": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-avatar/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-avatar

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-avatar
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-avatar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-avatar",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"description": "An avatar web component for displaying user avatars.",
"keywords": [
Expand Down Expand Up @@ -30,7 +30,7 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-base": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-badge/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-badge

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-badge
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-badge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-badge",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"description": "A badge to notify that there is something that requires attention of the user.",
"keywords": [
Expand Down Expand Up @@ -30,7 +30,7 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-base": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-base/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-base

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

### Bug Fixes
Expand Down
20 changes: 13 additions & 7 deletions packages/uui-base/lib/mixins/SelectableMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export const SelectableMixin = <T extends Constructor<LitElement>>(
const oldVal = this._selectable;
this._selectable = newVal;
// Potentially problematic as a component might need focus for another feature when not selectable:
if (!this.selectableTarget) {
// If not selectable target, then make it self selectable. (A selectable target should be made focusable by the component itself)
if (this.selectableTarget === this) {
// If the selectable target, then make it self selectable. (A different selectable target should be made focusable by the component itself)
this.setAttribute('tabindex', `${newVal ? '0' : '-1'}`);
}
this.requestUpdate('selectable', oldVal);
Expand All @@ -80,10 +80,16 @@ export const SelectableMixin = <T extends Constructor<LitElement>>(
}

private handleSelectKeydown = (e: KeyboardEvent) => {
//if (e.composedPath().indexOf(this.selectableTarget) !== -1) {
if (this.selectableTarget === this) {
if (e.key !== ' ' && e.key !== 'Enter') return;
this._toggleSelect();
const composePath = e.composedPath();
if (
(this._selectable || (this.deselectable && this.selected)) &&
composePath.indexOf(this.selectableTarget) === 0
) {
if (this.selectableTarget === this) {
if (e.code !== 'Space' && e.code !== 'Enter') return;
this._toggleSelect();
e.preventDefault();
}
}
};

Expand Down Expand Up @@ -112,7 +118,7 @@ export const SelectableMixin = <T extends Constructor<LitElement>>(
}

private _toggleSelect() {
// Only allow for select-interaction if selectable is true. Deselectable is ignorered in this case, we do not want a DX where only deselection is a possibility..
// Only allow for select-interaction if selectable is true. Deselectable is ignored in this case, we do not want a DX where only deselection is a possibility..
if (!this.selectable) return;
if (this.deselectable === false) {
this._select();
Expand Down
2 changes: 1 addition & 1 deletion packages/uui-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-base",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"keywords": [
"Umbraco",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-boolean-input/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-boolean-input

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-boolean-input
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-boolean-input/lib/uui-boolean-input.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin(
this._value = 'on';
}
this.inputRole = inputRole;
this.addEventListener('keypress', this._onKeypress);
this.addEventListener('keydown', this.#onKeyDown);
}

protected getFormElement(): HTMLInputElement {
return this._input;
}

private _onKeypress(e: KeyboardEvent): void {
#onKeyDown(e: KeyboardEvent): void {
if (e.key == 'Enter') {
this.submit();
}
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-boolean-input/lib/uui-boolean-input.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ describe('BooleanInputBaseElement in a Form', () => {

describe('submit', () => {
it('should submit when pressing enter', async () => {
const listener = oneEvent(formElement, 'submit', false);
element.dispatchEvent(new KeyboardEvent('keypress', { key: 'Enter' }));
const listener = oneEvent(formElement, 'submit');
element.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter' }));

const event = await listener;
expect(event).to.exist;
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-boolean-input/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-boolean-input",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"keywords": [
"Umbraco",
Expand Down Expand Up @@ -30,7 +30,7 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-base": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-box/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-box

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-box
Expand Down
6 changes: 3 additions & 3 deletions packages/uui-box/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-box",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"description": "A box web component for grouping elements",
"keywords": [
Expand Down Expand Up @@ -29,8 +29,8 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-base": "1.11.0",
"@umbraco-ui/uui-css": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0",
"@umbraco-ui/uui-css": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-breadcrumbs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-breadcrumbs

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-breadcrumbs
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-breadcrumbs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-breadcrumbs",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"keywords": [
"Umbraco",
Expand Down Expand Up @@ -32,7 +32,7 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-base": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-button-group/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-button-group

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-button-group
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-button-group/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-button-group",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"description": "An element to group buttons.",
"keywords": [
Expand Down Expand Up @@ -31,7 +31,7 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-base": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/uui-button-inline-create/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.12.0](https://github.com/umbraco/Umbraco.UI/compare/v1.11.0...v1.12.0) (2024-11-20)

**Note:** Version bump only for package @umbraco-ui/uui-button-inline-create

# [1.11.0](https://github.com/umbraco/Umbraco.UI/compare/v1.10.1...v1.11.0) (2024-10-14)

**Note:** Version bump only for package @umbraco-ui/uui-button-inline-create
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-button-inline-create/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco-ui/uui-button-inline-create",
"version": "1.11.0",
"version": "1.12.0",
"license": "MIT",
"keywords": [
"Umbraco",
Expand Down Expand Up @@ -30,7 +30,7 @@
"custom-elements.json"
],
"dependencies": {
"@umbraco-ui/uui-base": "1.11.0"
"@umbraco-ui/uui-base": "1.12.0"
},
"scripts": {
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
Expand Down
Loading
Loading