New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-block-slots

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-block-slots - npm Package Compare versions

Comparing version

to
1.1.3

11

addon/components/yield-slot.js

@@ -8,2 +8,3 @@ import Ember from 'ember'

import { PropTypes } from 'ember-prop-types'
import Slots from '../mixins/slots'

@@ -54,6 +55,12 @@ /**

// Use nearestOfType to determine the parent view, just in case there are
// other components sandwiched between the block slot and the Slots mixin
_parentView: computed(function () {
return this.nearestOfType(Slots)
}),
// A yield slot is considered active if a block slot registered a matching
// name against the parent component with the Slots mixin
isActive: computed('parentView._slots.[]', '_name', function () {
return this.get('parentView._slots').contains(this.get('_name'))
isActive: computed('_parentView._slots.[]', '_name', function () {
return this.get('_parentView._slots').contains(this.get('_name'))
})

@@ -60,0 +67,0 @@ })

@@ -0,1 +1,11 @@

# 1.1.3
* Yield slots will now find the nearest component with slots to register against - a direct parent with slots is no longer required
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/ciena-blueplanet/ember-block-slots/38)
<!-- Reviewable:end -->
# 1.1.2

@@ -2,0 +12,0 @@

2

package.json
{
"name": "ember-block-slots",
"version": "1.1.2",
"version": "1.1.3",
"description": "Support for targeted yield slots within a component block",

@@ -5,0 +5,0 @@ "homepage": "http://ciena-blueplanet.github.io/ember-block-slots",

Sorry, the diff of this file is not supported yet