Skip to content

Commit

Permalink
Merge tag '1.0.0-alpha.8' into develop
Browse files Browse the repository at this point in the history
v1.0.0-alpha.8
  • Loading branch information
titouanmathis committed Sep 25, 2024
2 parents 3b05192 + 33662fd commit 73592a0
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 14 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [v1.0.0-alpha.8](https://github.com/studiometa/ui/compare/1.0.0-alpha.7..1.0.0-alpha.8) (2024-09-25)

### Added

- **Action:** add support for handling multiple events ([#298](https://github.com/studiometa/ui/issues/298), [#299](https://github.com/studiometa/ui/pull/299), [b739f2b](https://github.com/studiometa/ui/commit/b739f2b))
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "studiometa/ui",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"description": "A set of opiniated, unstyled and accessible components.",
"license": "MIT",
"require": {
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/ui-workspace",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"private": true,
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/ui-docs",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/ui-playground",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"private": true,
"type": "module",
"scripts": {
Expand Down
18 changes: 18 additions & 0 deletions packages/tests/atoms/Action.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,22 @@ describe('The Action component', () => {
action.$el.dispatchEvent(new Event('click'));
expect(action.$el.id).toBe('foo');
});

it('should work with multiline effects', async () => {
const div = h('div', {
id: 'bar',
'data-option-on:click': `
Action(#bar)
->
target.$el.id = true
? "foo"
: "bar"
`,
});
const action = new Action(div);
await mount(action)
expect(action.$el.id).toBe('bar');
action.$el.dispatchEvent(new Event('click'));
expect(action.$el.id).toBe('foo');
});
});
2 changes: 1 addition & 1 deletion packages/tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/ui-tests",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"private": true,
"type": "module",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/atoms/Action/ActionEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export class ActionEvent<T extends Base> {
[targetDefinition, effect] = effect.split(ActionEvent.effectSeparator);
}

this.targetDefinition = targetDefinition;
this.effectDefinition = effect;
this.targetDefinition = targetDefinition.trim();
this.effectDefinition = effect.trim();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/ui",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"description": "A set of opiniated, unstyled and accessible components",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 73592a0

Please sign in to comment.