Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electric-marble-components

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electric-marble-components - npm Package Compare versions

Comparing version 2.0.0-alpha.3 to 2.0.0-alpha.4

25

lib/ElectricNavigation.soy.js

@@ -73,11 +73,12 @@ 'use strict';

ie_open('ul', null, null, 'class', ($$temp = opt_data.elementClasses) == null ? '' : $$temp);
var pageList42 = opt_data.section.children;
var pageListLen42 = pageList42.length;
for (var pageIndex42 = 0; pageIndex42 < pageListLen42; pageIndex42++) {
var pageData42 = pageList42[pageIndex42];
if (!pageData42.hidden) {
ie_open('li', null, null, 'class', (($$temp = opt_data.listItemClasses) == null ? '' : $$temp) + (pageData42.active ? ' ' + localListItemActiveClasses__soy14 : ''));
soy.$$getDelegateFn(soy.$$getDelTemplateId('ElectricNavigation.anchor.idom'), localAnchorVariant__soy12, false)(soy.$$assignDefaults({ index: pageIndex42, page: pageData42 }, opt_data), null, opt_ijData);
var childIdList43 = opt_data.section.childIds;
var childIdListLen43 = childIdList43.length;
for (var childIdIndex43 = 0; childIdIndex43 < childIdListLen43; childIdIndex43++) {
var childIdData43 = childIdList43[childIdIndex43];
var page__soy20 = opt_data.section.children[childIdData43];
if (!page__soy20.hidden) {
ie_open('li', null, null, 'class', (($$temp = opt_data.listItemClasses) == null ? '' : $$temp) + (page__soy20.active ? ' ' + localListItemActiveClasses__soy14 : ''));
soy.$$getDelegateFn(soy.$$getDelTemplateId('ElectricNavigation.anchor.idom'), localAnchorVariant__soy12, false)(soy.$$assignDefaults({ index: childIdIndex43, page: page__soy20 }, opt_data), null, opt_ijData);
if (!opt_data.depth || localCurrentDepth__soy13 + 1 < opt_data.depth) {
$render({ anchorVariant: localAnchorVariant__soy12, currentDepth: localCurrentDepth__soy13 + 1, currentURL: opt_data.currentURL, depth: opt_data.depth, elementClasses: opt_data.elementClasses, linkClasses: opt_data.linkClasses, listItemActiveClasses: opt_data.listItemActiveClasses, listItemClasses: opt_data.listItemClasses, section: pageData42 }, null, opt_ijData);
$render({ anchorVariant: localAnchorVariant__soy12, currentDepth: localCurrentDepth__soy13 + 1, currentURL: opt_data.currentURL, depth: opt_data.depth, elementClasses: opt_data.elementClasses, linkClasses: opt_data.linkClasses, listItemActiveClasses: opt_data.listItemActiveClasses, listItemClasses: opt_data.listItemClasses, section: page__soy20 }, null, opt_ijData);
}

@@ -102,3 +103,3 @@ ie_close('li');

*/
function __deltemplate_s45_b83841ac(opt_data, opt_ignored, opt_ijData) {
function __deltemplate_s46_b83841ac(opt_data, opt_ignored, opt_ijData) {
var $$temp;

@@ -119,7 +120,7 @@ if (opt_data.page.url || opt_data.page.redirect) {

}
exports.__deltemplate_s45_b83841ac = __deltemplate_s45_b83841ac;
exports.__deltemplate_s46_b83841ac = __deltemplate_s46_b83841ac;
if (goog.DEBUG) {
__deltemplate_s45_b83841ac.soyTemplateName = 'ElectricNavigation.__deltemplate_s45_b83841ac';
__deltemplate_s46_b83841ac.soyTemplateName = 'ElectricNavigation.__deltemplate_s46_b83841ac';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ElectricNavigation.anchor.idom'), 'basic', 0, __deltemplate_s45_b83841ac);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ElectricNavigation.anchor.idom'), 'basic', 0, __deltemplate_s46_b83841ac);

@@ -126,0 +127,0 @@ exports.render.params = ["section", "anchorVariant", "currentDepth", "currentURL", "depth", "elementClasses", "linkClasses", "listItemActiveClasses", "listItemClasses"];

@@ -134,18 +134,18 @@ 'use strict';

if (opt_data.results) {
var resultList104 = opt_data.results;
var resultListLen104 = resultList104.length;
for (var resultIndex104 = 0; resultIndex104 < resultListLen104; resultIndex104++) {
var resultData104 = resultList104[resultIndex104];
var resultList105 = opt_data.results;
var resultListLen105 = resultList105.length;
for (var resultIndex105 = 0; resultIndex105 < resultListLen105; resultIndex105++) {
var resultData105 = resultList105[resultIndex105];
ie_open('div', null, null, 'class', 'search-result');
if (resultData104.icon) {
if (resultData105.icon) {
ie_open('div', null, null, 'class', 'search-result-icon');
ie_void('span', null, null, 'class', 'icon-16-' + resultData104.icon);
ie_void('span', null, null, 'class', 'icon-16-' + resultData105.icon);
ie_close('div');
}
ie_open('a', null, null, 'class', 'search-result-link', 'href', resultData104.url);
var dyn5 = resultData104.title;
ie_open('a', null, null, 'class', 'search-result-link', 'href', resultData105.url);
var dyn5 = resultData105.title;
if (typeof dyn5 == 'function') dyn5();else if (dyn5 != null) itext(dyn5);
ie_close('a');
ie_open('p', null, null, 'class', 'search-result-text');
var dyn6 = resultData104.description;
var dyn6 = resultData105.description;
if (typeof dyn6 == 'function') dyn6();else if (dyn6 != null) itext(dyn6);

@@ -152,0 +152,0 @@ ie_close('p');

@@ -89,11 +89,11 @@ 'use strict';

if (opt_data.updates) {
var updateList129 = opt_data.updates;
var updateListLen129 = updateList129.length;
for (var updateIndex129 = 0; updateIndex129 < updateListLen129; updateIndex129++) {
var updateData129 = updateList129[updateIndex129];
var updateList130 = opt_data.updates;
var updateListLen130 = updateList130.length;
for (var updateIndex130 = 0; updateIndex130 < updateListLen130; updateIndex130++) {
var updateData130 = updateList130[updateIndex130];
ie_open('section', null, null, 'class', 'update');
ie_open('div', null, null, 'class', 'row update-row');
ie_open('div', null, null, 'class', 'col-sm-3 ' + (updateData129.major ? 'major' : 'minor') + '-update update-timeline');
ie_open('div', null, null, 'class', 'col-sm-3 ' + (updateData130.major ? 'major' : 'minor') + '-update update-timeline');
ie_open('div', null, null, 'class', 'update-point');
var dyn7 = updateData129.version;
var dyn7 = updateData130.version;
if (typeof dyn7 == 'function') dyn7();else if (dyn7 != null) itext(dyn7);

@@ -103,3 +103,3 @@ ie_close('div');

ie_open('div', null, null, 'class', 'col-sm-13 update-features');
$features(soy.$$assignDefaults({ features: updateData129.features }, opt_data), null, opt_ijData);
$features(soy.$$assignDefaults({ features: updateData130.features }, opt_data), null, opt_ijData);
ie_close('div');

@@ -127,9 +127,9 @@ ie_close('div');

var $$temp;
var localFeatureVariant__soy133 = ($$temp = opt_data.featureVariant) == null ? 'basic' : $$temp;
var localFeatureVariant__soy134 = ($$temp = opt_data.featureVariant) == null ? 'basic' : $$temp;
ie_open('div', null, null, 'class', 'row');
var featureList137 = opt_data.features;
var featureListLen137 = featureList137.length;
for (var featureIndex137 = 0; featureIndex137 < featureListLen137; featureIndex137++) {
var featureData137 = featureList137[featureIndex137];
soy.$$getDelegateFn(soy.$$getDelTemplateId('ElectricUpdates.feature.idom'), localFeatureVariant__soy133, false)(soy.$$assignDefaults({ feature: featureData137 }, opt_data), null, opt_ijData);
var featureList138 = opt_data.features;
var featureListLen138 = featureList138.length;
for (var featureIndex138 = 0; featureIndex138 < featureListLen138; featureIndex138++) {
var featureData138 = featureList138[featureIndex138];
soy.$$getDelegateFn(soy.$$getDelTemplateId('ElectricUpdates.feature.idom'), localFeatureVariant__soy134, false)(soy.$$assignDefaults({ feature: featureData138 }, opt_data), null, opt_ijData);
}

@@ -150,3 +150,3 @@ ie_close('div');

*/
function __deltemplate_s140_5080d024(opt_data, opt_ignored, opt_ijData) {
function __deltemplate_s141_5080d024(opt_data, opt_ignored, opt_ijData) {
ie_open('div', null, null, 'class', 'col-xs-16 col-sm-8 update-feature');

@@ -173,7 +173,7 @@ ie_open('div', null, null, 'class', 'feature-topper');

}
exports.__deltemplate_s140_5080d024 = __deltemplate_s140_5080d024;
exports.__deltemplate_s141_5080d024 = __deltemplate_s141_5080d024;
if (goog.DEBUG) {
__deltemplate_s140_5080d024.soyTemplateName = 'ElectricUpdates.__deltemplate_s140_5080d024';
__deltemplate_s141_5080d024.soyTemplateName = 'ElectricUpdates.__deltemplate_s141_5080d024';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ElectricUpdates.feature.idom'), 'basic', 0, __deltemplate_s140_5080d024);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ElectricUpdates.feature.idom'), 'basic', 0, __deltemplate_s141_5080d024);

@@ -180,0 +180,0 @@ exports.render.params = ["featureVariant", "updates"];

{
"name": "electric-marble-components",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.4",
"description": "Components that are compatible with Marble for use with electric.js sites.",

@@ -5,0 +5,0 @@ "jsnext:main": "src/all/components.js",

@@ -54,12 +54,13 @@ /* jshint ignore:start */

'class', ($$temp = opt_data.elementClasses) == null ? '' : $$temp);
var pageList42 = opt_data.section.children;
var pageListLen42 = pageList42.length;
for (var pageIndex42 = 0; pageIndex42 < pageListLen42; pageIndex42++) {
var pageData42 = pageList42[pageIndex42];
if (! pageData42.hidden) {
var childIdList43 = opt_data.section.childIds;
var childIdListLen43 = childIdList43.length;
for (var childIdIndex43 = 0; childIdIndex43 < childIdListLen43; childIdIndex43++) {
var childIdData43 = childIdList43[childIdIndex43];
var page__soy20 = opt_data.section.children[childIdData43];
if (! page__soy20.hidden) {
ie_open('li', null, null,
'class', (($$temp = opt_data.listItemClasses) == null ? '' : $$temp) + (pageData42.active ? ' ' + localListItemActiveClasses__soy14 : ''));
soy.$$getDelegateFn(soy.$$getDelTemplateId('ElectricNavigation.anchor.idom'), localAnchorVariant__soy12, false)(soy.$$assignDefaults({index: pageIndex42, page: pageData42}, opt_data), null, opt_ijData);
'class', (($$temp = opt_data.listItemClasses) == null ? '' : $$temp) + (page__soy20.active ? ' ' + localListItemActiveClasses__soy14 : ''));
soy.$$getDelegateFn(soy.$$getDelTemplateId('ElectricNavigation.anchor.idom'), localAnchorVariant__soy12, false)(soy.$$assignDefaults({index: childIdIndex43, page: page__soy20}, opt_data), null, opt_ijData);
if (! opt_data.depth || localCurrentDepth__soy13 + 1 < opt_data.depth) {
$render({anchorVariant: localAnchorVariant__soy12, currentDepth: localCurrentDepth__soy13 + 1, currentURL: opt_data.currentURL, depth: opt_data.depth, elementClasses: opt_data.elementClasses, linkClasses: opt_data.linkClasses, listItemActiveClasses: opt_data.listItemActiveClasses, listItemClasses: opt_data.listItemClasses, section: pageData42}, null, opt_ijData);
$render({anchorVariant: localAnchorVariant__soy12, currentDepth: localCurrentDepth__soy13 + 1, currentURL: opt_data.currentURL, depth: opt_data.depth, elementClasses: opt_data.elementClasses, linkClasses: opt_data.linkClasses, listItemActiveClasses: opt_data.listItemActiveClasses, listItemClasses: opt_data.listItemClasses, section: page__soy20}, null, opt_ijData);
}

@@ -85,3 +86,3 @@ ie_close('li');

*/
function __deltemplate_s45_b83841ac(opt_data, opt_ignored, opt_ijData) {
function __deltemplate_s46_b83841ac(opt_data, opt_ignored, opt_ijData) {
var $$temp;

@@ -105,7 +106,7 @@ if (opt_data.page.url || opt_data.page.redirect) {

}
exports.__deltemplate_s45_b83841ac = __deltemplate_s45_b83841ac;
exports.__deltemplate_s46_b83841ac = __deltemplate_s46_b83841ac;
if (goog.DEBUG) {
__deltemplate_s45_b83841ac.soyTemplateName = 'ElectricNavigation.__deltemplate_s45_b83841ac';
__deltemplate_s46_b83841ac.soyTemplateName = 'ElectricNavigation.__deltemplate_s46_b83841ac';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ElectricNavigation.anchor.idom'), 'basic', 0, __deltemplate_s45_b83841ac);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ElectricNavigation.anchor.idom'), 'basic', 0, __deltemplate_s46_b83841ac);

@@ -112,0 +113,0 @@ exports.render.params = ["section","anchorVariant","currentDepth","currentURL","depth","elementClasses","linkClasses","listItemActiveClasses","listItemClasses"];

@@ -138,13 +138,13 @@ /* jshint ignore:start */

if (opt_data.results) {
var resultList104 = opt_data.results;
var resultListLen104 = resultList104.length;
for (var resultIndex104 = 0; resultIndex104 < resultListLen104; resultIndex104++) {
var resultData104 = resultList104[resultIndex104];
var resultList105 = opt_data.results;
var resultListLen105 = resultList105.length;
for (var resultIndex105 = 0; resultIndex105 < resultListLen105; resultIndex105++) {
var resultData105 = resultList105[resultIndex105];
ie_open('div', null, null,
'class', 'search-result');
if (resultData104.icon) {
if (resultData105.icon) {
ie_open('div', null, null,
'class', 'search-result-icon');
ie_void('span', null, null,
'class', 'icon-16-' + resultData104.icon);
'class', 'icon-16-' + resultData105.icon);
ie_close('div');

@@ -154,4 +154,4 @@ }

'class', 'search-result-link',
'href', resultData104.url);
var dyn5 = resultData104.title;
'href', resultData105.url);
var dyn5 = resultData105.title;
if (typeof dyn5 == 'function') dyn5(); else if (dyn5 != null) itext(dyn5);

@@ -161,3 +161,3 @@ ie_close('a');

'class', 'search-result-text');
var dyn6 = resultData104.description;
var dyn6 = resultData105.description;
if (typeof dyn6 == 'function') dyn6(); else if (dyn6 != null) itext(dyn6);

@@ -164,0 +164,0 @@ ie_close('p');

@@ -74,6 +74,6 @@ /* jshint ignore:start */

if (opt_data.updates) {
var updateList129 = opt_data.updates;
var updateListLen129 = updateList129.length;
for (var updateIndex129 = 0; updateIndex129 < updateListLen129; updateIndex129++) {
var updateData129 = updateList129[updateIndex129];
var updateList130 = opt_data.updates;
var updateListLen130 = updateList130.length;
for (var updateIndex130 = 0; updateIndex130 < updateListLen130; updateIndex130++) {
var updateData130 = updateList130[updateIndex130];
ie_open('section', null, null,

@@ -84,6 +84,6 @@ 'class', 'update');

ie_open('div', null, null,
'class', 'col-sm-3 ' + (updateData129.major ? 'major' : 'minor') + '-update update-timeline');
'class', 'col-sm-3 ' + (updateData130.major ? 'major' : 'minor') + '-update update-timeline');
ie_open('div', null, null,
'class', 'update-point');
var dyn7 = updateData129.version;
var dyn7 = updateData130.version;
if (typeof dyn7 == 'function') dyn7(); else if (dyn7 != null) itext(dyn7);

@@ -94,3 +94,3 @@ ie_close('div');

'class', 'col-sm-13 update-features');
$features(soy.$$assignDefaults({features: updateData129.features}, opt_data), null, opt_ijData);
$features(soy.$$assignDefaults({features: updateData130.features}, opt_data), null, opt_ijData);
ie_close('div');

@@ -119,10 +119,10 @@ ie_close('div');

var $$temp;
var localFeatureVariant__soy133 = ($$temp = opt_data.featureVariant) == null ? 'basic' : $$temp;
var localFeatureVariant__soy134 = ($$temp = opt_data.featureVariant) == null ? 'basic' : $$temp;
ie_open('div', null, null,
'class', 'row');
var featureList137 = opt_data.features;
var featureListLen137 = featureList137.length;
for (var featureIndex137 = 0; featureIndex137 < featureListLen137; featureIndex137++) {
var featureData137 = featureList137[featureIndex137];
soy.$$getDelegateFn(soy.$$getDelTemplateId('ElectricUpdates.feature.idom'), localFeatureVariant__soy133, false)(soy.$$assignDefaults({feature: featureData137}, opt_data), null, opt_ijData);
var featureList138 = opt_data.features;
var featureListLen138 = featureList138.length;
for (var featureIndex138 = 0; featureIndex138 < featureListLen138; featureIndex138++) {
var featureData138 = featureList138[featureIndex138];
soy.$$getDelegateFn(soy.$$getDelTemplateId('ElectricUpdates.feature.idom'), localFeatureVariant__soy134, false)(soy.$$assignDefaults({feature: featureData138}, opt_data), null, opt_ijData);
}

@@ -144,3 +144,3 @@ ie_close('div');

*/
function __deltemplate_s140_5080d024(opt_data, opt_ignored, opt_ijData) {
function __deltemplate_s141_5080d024(opt_data, opt_ignored, opt_ijData) {
ie_open('div', null, null,

@@ -175,7 +175,7 @@ 'class', 'col-xs-16 col-sm-8 update-feature');

}
exports.__deltemplate_s140_5080d024 = __deltemplate_s140_5080d024;
exports.__deltemplate_s141_5080d024 = __deltemplate_s141_5080d024;
if (goog.DEBUG) {
__deltemplate_s140_5080d024.soyTemplateName = 'ElectricUpdates.__deltemplate_s140_5080d024';
__deltemplate_s141_5080d024.soyTemplateName = 'ElectricUpdates.__deltemplate_s141_5080d024';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ElectricUpdates.feature.idom'), 'basic', 0, __deltemplate_s140_5080d024);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ElectricUpdates.feature.idom'), 'basic', 0, __deltemplate_s141_5080d024);

@@ -182,0 +182,0 @@ exports.render.params = ["featureVariant","updates"];

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc