Skip to content

Commit

Permalink
Merge branch 'main' into fps-throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdinonolte committed May 7, 2022
2 parents 1b54892 + 31de54c commit 9b66e98
Show file tree
Hide file tree
Showing 45 changed files with 1,294 additions and 153 deletions.
67 changes: 63 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,61 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.0-beta] - 2022-04-14
## [2.0.0-beta.5] - 2022-05-04

### Added

- Support to import custom `SideBar` component in `app/` folder that replaces sidebar in Mechanic UI.
- New design function export `ExtraUi`, expected to be a React component that's added to the bottom section of sidebar, on top of default toggles and buttons.
- Support for SVG and PNG exports for SVG based engines like `engine-react` and `engine-svg`.
- New `hideFeedback` design function setting. When true, Mechanic's feedback button is hidden. Defaults to false.
- New `hideNavigation` design function setting. When true, the navigation input that lets users select a design function is hidden. Defaults to false.
- New `hidePresets` design function setting. When true, preset selection input is hidden. Defaults to false.
- New `hideScaleToFit` design function setting. When true, Scale to Fit toggle is hidden. Defaults to false.
- New `initialScaleToFit` design function setting. When false, Scale to Fit will be off initially. Defaults to true.
- New `hideAutoRefresh` design function setting. When true, Auto Refresh toggle is hidden. Defaults to false.
- New `initialAutoRefresh` design function setting. When false, Auto Refresh will be off initially. Defaults to true.
- New `hideGenerate` design function setting. When true, Generate button is hidden. Defaults to false.
- New `showMultipleExports` design function setting. When false, single export button is shown. When true, two separate export buttons are shown: one for PNG export and another for SVG export. Defaults to false.
- New `ignoreStyles` design function setting. When true, CSS in iframe is injected into design function's SVG output. Defaults to false.
- Support to serve `static/` folder for all design functions.
- `_isPreview` value is passed to design function handler in `inputs` argument.

### Changed

- Changed filename from `[name][timestamp].[ext]` to `[filename]-[timestamp].[ext]` for better readability

## [2.0.0-beta.4] - 2022-04-14

### Fixed

- Adds `immer` as dependency.
- Updated width of number value display to `ch` units in slider so it does not overflow

## [2.0.0-beta.3] - 2022-03-24

### Changed

- Preview / Randomize button was renamed to Generate and styled as a single button with undo / redo

### Fixed

- Update script checks that dependency file exist before requiring.

## [2.0.0-beta.2] - 2022-03-18

### Fixed

- Error capturing during df render
- Typos in input validation

## [2.0.0-beta.1] - 2022-03-17

### Fixed

- Captured instance when animation only calls done and never frame.

## [2.0.0-beta.0] - 2022-03-16

### Added

Expand All @@ -26,7 +80,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Generated script from function loader is now written in ESM
- Updated PostCSS dependencies: `postcss-loader`and `postcss-preset-env`
- Generalized and streamlined input validation, and added basic inputs definitions and behaviors
- Renamed original width and height values passed from `_widthOriginal` and `_heightOriginal`to just `_width`and `_height`.
- Renamed original width and height values passed from `_widthOriginal` and `_heightOriginal`to just `_width`and `_height`

### Fixed

Expand Down Expand Up @@ -201,8 +255,13 @@ Beta release

First logged release

[unreleased]: https://github.com/designsystemsinternational/mechanic/compare/v2.0.0...main
[2.0.0-beta]: https://github.com/designsystemsinternational/mechanic/releases/tag/v2.0.0-beta.3
[unreleased]: https://github.com/designsystemsinternational/mechanic/compare/v2.0.0-beta.5...main
[2.0.0-beta.5]: https://github.com/designsystemsinternational/mechanic/releases/tag/v2.0.0-beta.5
[2.0.0-beta.4]: https://github.com/designsystemsinternational/mechanic/releases/tag/v2.0.0-beta.4
[2.0.0-beta.3]: https://github.com/designsystemsinternational/mechanic/releases/tag/v2.0.0-beta.3
[2.0.0-beta.2]: https://github.com/designsystemsinternational/mechanic/releases/tag/v2.0.0-beta.2
[2.0.0-beta.1]: https://github.com/designsystemsinternational/mechanic/releases/tag/v2.0.0-beta.1
[2.0.0-beta.0]: https://github.com/designsystemsinternational/mechanic/releases/tag/v2.0.0-beta.0
[1.2.0]: https://github.com/designsystemsinternational/mechanic/releases/tag/v1.2.0
[1.1.0]: https://github.com/designsystemsinternational/mechanic/releases/tag/v1.1.0
[1.0.0]: https://github.com/designsystemsinternational/mechanic/releases/tag/v1.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[Mechanic](https://mechanic.design/) is a powerful design toolchain that helps forward-looking organizations move away from a manual design workflow by automating their design operations. Built with love by your friends at [Design Systems International](https://designsystems.international/).

**CURRENT STATUS**: `v1.2.0` is out now! Try it and tell us what you think! `v2.0.0-beta.2` is also out and we're testing it! Feel free to test it out too!
**CURRENT STATUS**: `v1.2.0` is out now! Try it and tell us what you think! `v2.0.0-beta.5` is also out and we're testing it! Feel free to test it out too!

## Get Started

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "2.0.0-beta.4"
"version": "2.0.0-beta.5"
}
220 changes: 213 additions & 7 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 packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 2.0.0-beta - 2022-03-24
## 2.0.0-beta.0 - 2022-03-24

### Added

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mechanic-design/cli",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "CLI to interact with Mechanic.",
"license": "MIT",
"homepage": "https://github.com/designsystemsinternational/mechanic#readme",
Expand Down Expand Up @@ -43,7 +43,7 @@
},
"dependencies": {
"@mechanic-design/utils": "^1.1.0",
"create-mechanic": "^2.0.0-beta.4",
"create-mechanic": "^2.0.0-beta.5",
"inquirer": "^8.1.1",
"resolve-cwd": "^3.0.0",
"yargs": "^17.0.1"
Expand Down
Loading

0 comments on commit 9b66e98

Please sign in to comment.