Skip to content

Commit

Permalink
chore(deps): upgrade to fix CI babel issues
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabauke committed Dec 23, 2021
1 parent 7cf0f40 commit f118367
Show file tree
Hide file tree
Showing 4 changed files with 19,250 additions and 573 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@adfinis-sygroup/eslint-config": "1.4.2",
"@adfinis-sygroup/semantic-release-config": "3.2.0",
"@babel/core": "7.15.8",
"@babel/helper-environment-visitor": "^7.16.5",
"@ember/optional-features": "2.0.0",
"@ember/test-helpers": "2.5.0",
"@embroider/test-setup": "0.45.0",
Expand Down
22 changes: 13 additions & 9 deletions tests/dummy/app/templates/docs/components/validated-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ Specifies if the button is loading. Default: Automatic integration of `ember-con
<!-- prettier-ignore-start -->
{{#docs-demo as |demo|}}
{{#demo.example name='button-template.hbs'}}
{{#validated-form on-submit=(action (mut saved) true) as |f|}}
{{f.submit label='Save'}}
{{#f.submit}}Still save but in block style...{{/f.submit}}
{{if saved 'Saved!'}}
{{/validated-form}}
<ValidatedForm @on-submit={{fn (mut saved) true}} as |f|>
{{#let f.submit as |Submit|}}
<Submit @label={{"Save"}} />
<Submit>Save button in block style...</Submit>
{{/let}}
{{if saved 'Saved!'}}
</ValidatedForm>
{{/demo.example}}

{{demo.snippet 'button-template.hbs'}}
Expand All @@ -50,11 +52,13 @@ Passes a function which is triggered after clicking on the button and when the v
<!-- prettier-ignore-start -->
{{#docs-demo as |demo|}}
{{#demo.example name='button-advanced-template.hbs'}}
{{#validated-form as |f|}}
{{f.button label='Custom action' on-click=(action (mut triggered) true)}}
{{#f.button on-click=(action (mut triggered) true)}}Custom action button in block style...{{/f.button}}
<ValidatedForm as |f|>
{{#let f.button as |CustomButton|}}
<CustomButton @label="Real Custom" @on-click={{fn (mut triggered) true}}/>
<CustomButton @on-click={{fn (mut triggered) true}}>Custom action button in block style...</CustomButton>
{{/let}}
{{if triggered 'Action triggered!'}}
{{/validated-form}}
</ValidatedForm>
{{/demo.example}}

{{demo.snippet 'button-advanced-template.hbs'}}
Expand Down
Loading

0 comments on commit f118367

Please sign in to comment.