Update dependency ember-infinity to v2.1.1 (#1484)

no issue

- fixed template reference
- updated template to match upstream's use of render-modifiers
- removed silencing of `isVisible` deprecation

Co-authored-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
renovate[bot] 2020-05-12 09:05:17 +01:00 committed by GitHub
parent 59a15a0895
commit 29a388ad27
6 changed files with 27 additions and 26 deletions

View File

@ -1,5 +1,5 @@
import InfinityLoader from 'ember-infinity/components/infinity-loader'; import InfinityLoader from 'ember-infinity/components/infinity-loader';
import layout from '../templates/components/infinity-loader'; import layout from '../templates/components/gh-infinity-loader';
export default InfinityLoader.extend({ export default InfinityLoader.extend({
layout layout

View File

@ -1,6 +0,0 @@
import InfinityLoader from 'ember-infinity/components/infinity-loader';
import layout from '../templates/components/gh-infinity-loader';
export default InfinityLoader.extend({
layout
});

View File

@ -1,8 +1,17 @@
{{#if hasBlock}} {{#if this.isVisible}}
{{yield this.infinityModelContent}} <div
{{else}} {{did-insert this.didInsertLoader this}}
{{#if this.isDoneLoading}} {{will-destroy this.willDestroyLoader this}}
{{else}} class="{{this.loaderClassNames}}{{if this.viewportEntered " in-viewport"}}{{if this.isDoneLoading " reached-infinity"}}"
<div class="gh-loading-spinner"></div> data-test-infinity-loader>
{{/if}}
{{#if hasBlock}}
{{yield this.infinityModelContent}}
{{else}}
{{#if this.isDoneLoading}}
{{else}}
<div class="gh-loading-spinner"></div>
{{/if}}
{{/if}}
</div>
{{/if}} {{/if}}

View File

@ -6,10 +6,6 @@ self.deprecationWorkflow.config = {
{handler: 'silence', matchId: 'ember-component.send-action'}, {handler: 'silence', matchId: 'ember-component.send-action'},
// remove once liquid-fire and liquid-wormhole remove uses of `this.$()` // remove once liquid-fire and liquid-wormhole remove uses of `this.$()`
{handler: 'silence', matchId: 'ember-views.curly-components.jquery-element'}, {handler: 'silence', matchId: 'ember-views.curly-components.jquery-element'}
// remove once ember-infinity removes usage of `isVisible`
// https://github.com/ember-infinity/ember-infinity/pull/399
{handler: 'silence', matchId: 'ember-component.is-visible'}
] ]
}; };

View File

@ -80,7 +80,7 @@
"ember-export-application-global": "2.0.1", "ember-export-application-global": "2.0.1",
"ember-fetch": "8.0.1", "ember-fetch": "8.0.1",
"ember-in-viewport": "3.5.8", "ember-in-viewport": "3.5.8",
"ember-infinity": "2.0.3", "ember-infinity": "2.1.1",
"ember-load": "0.0.17", "ember-load": "0.0.17",
"ember-load-initializers": "2.1.1", "ember-load-initializers": "2.1.1",
"ember-mocha": "0.16.2", "ember-mocha": "0.16.2",

View File

@ -5993,7 +5993,7 @@ ember-get-config@, ember-get-config@^0.2.2:
ember-cli-version-checker "^2.1.0" ember-cli-version-checker "^2.1.0"
ember-factory-for-polyfill "^1.3.1" ember-factory-for-polyfill "^1.3.1"
ember-in-viewport@3.5.8, ember-in-viewport@~3.0.0, ember-in-viewport@~3.7.1: ember-in-viewport@3.5.8, ember-in-viewport@~3.0.0, ember-in-viewport@~3.7.2:
version "3.5.8" version "3.5.8"
resolved "https://registry.yarnpkg.com/ember-in-viewport/-/ember-in-viewport-3.5.8.tgz#da03f5e69c5e5e6cbd048f0db8de0b05c2e3e68f" resolved "https://registry.yarnpkg.com/ember-in-viewport/-/ember-in-viewport-3.5.8.tgz#da03f5e69c5e5e6cbd048f0db8de0b05c2e3e68f"
integrity sha512-2GBK5KbNYiGADy433tN3yHnxZ77wSnVyMezx23cr3qs2gwac+5ta2FkOTiKibNkGmWE/Mk/c7zcF7sDk1jy5DA== integrity sha512-2GBK5KbNYiGADy433tN3yHnxZ77wSnVyMezx23cr3qs2gwac+5ta2FkOTiKibNkGmWE/Mk/c7zcF7sDk1jy5DA==
@ -6003,13 +6003,15 @@ ember-in-viewport@3.5.8, ember-in-viewport@~3.0.0, ember-in-viewport@~3.7.1:
intersection-observer-admin "~0.2.5" intersection-observer-admin "~0.2.5"
raf-pool "0.1.0" raf-pool "0.1.0"
ember-infinity@2.0.3: ember-infinity@2.1.1:
version "2.0.3" version "2.1.1"
resolved "https://registry.yarnpkg.com/ember-infinity/-/ember-infinity-2.0.3.tgz#bbe4bbc7fc441a681b270652b5f82d1a31ff3216" resolved "https://registry.yarnpkg.com/ember-infinity/-/ember-infinity-2.1.1.tgz#ef1e5f25099696ac254c179a79c815afb7d36b48"
integrity sha512-AzpZg3p1G1FtT2u5W7NTOXZRli8pKiqYl6VUqdB6hsWNoA16nEOPVQr4BW149bGZT7M/5XlTQofWsz0KkxSy7w== integrity sha512-tJrSYqcZCT0quLeu+IoXy46TAMaFtTRPF0jgHgKfa9xP4NvHDqENwdLpMewlkS4vbs3SCkxo4yBtQw5JG9GuEw==
dependencies: dependencies:
"@ember/render-modifiers" "^1.0.2"
ember-cli-babel "~7.11.0" ember-cli-babel "~7.11.0"
ember-in-viewport "~3.7.1" ember-cli-htmlbars "^3.0.1"
ember-in-viewport "~3.7.2"
"ember-inflector@^2.0.0 || ^3.0.0", ember-inflector@^3.0.1: "ember-inflector@^2.0.0 || ^3.0.0", ember-inflector@^3.0.1:
version "3.0.1" version "3.0.1"