
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ember-exclaim-editor
Advanced tools
[Short description of the addon.]
ember install ember-exclaim-editor
[Longer description of how to use the addon in apps.]
{{#exclaim-editor
env=canvasEnv
implementationMap=implementationMap
mode=mode
ui=exclaimJson
onChange=(action update)
onComponentClick=(action clickComponent)
resolveFieldMeta=(action onMetaForField)
as |editor|
}}
...
{{/exclaim-editor}}
implementationMap
Similiar to the implementationMap
argument to Ember Exclaim's {{exclaim-ui}}
component.
In addition, the implementationMap
for the Exclaim Editor allows declarations of the configuration properties that the user may adjust.
Optionally these properties may be divided into sections. The propertySections
field is an ordered list of named sections with paths to the Ember component that should wrap each section. The section component template must {{yield}}
so that the editor may render the property editor components.
['my_exclaim_component']: {
componentMeta: {
name: 'My Exclaim Component',
propertySections: [
{
sectionName: 'knobs',
sectionComponent: {
name: 'knobs-wrapper',
options: {
max: 11,
}
}
},
{
sectionName: 'dials',
sectionComponent: {
name: 'dials-wrapper',
options: {
favorite: "Z100",
}
}
},
],
properties: {
['volume_property']: new PropertyDefinition({
name: 'Select a setting for volume',
section: 'knobs',
dataRole: 'volume-property',
}, false, 'volume-config-component'),
['tuner_property']: new PropertyDefinition({
name: 'Tune to desired station',
section: 'dials',
dataRole: 'station-property',
}, false, 'tuner-config-component'),
}
When given a dataRole
, an individual property will have data-role=<given value>
. Its primary intent is to provide a selection hook for testing.
For each section component listed in propertySections
, if it has properties
referencing its sectionName
by their section
field, then Exclaim Editor will render it as a wrapper around those properties.
The section component will receive the options
attribute specified within its propertySections
sectionComponent
object.
Section components can therefore use options
to vary their appearance depending of the values declared in the implementationMap
:
<div class="knobs-section">
Max Volume: {{options.max}}
</div>
git clone <repository-url>
cd ember-exclaim-editor
yarn install
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember serve
This project is licensed under the MIT License.
FAQs
The default blueprint for ember-cli addons.
We found that ember-exclaim-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.