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

amp-react-components

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amp-react-components - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

type/components/util/AmpMustache.d.ts

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## 1.4.0 (2019-10-15)
* fix: update import path of AmpMustache ([4991c29](https://github.com/danhuang1202/amp-react-components/commit/4991c29))
* feat: update amp-mustache ([ce6bdd2](https://github.com/danhuang1202/amp-react-components/commit/ce6bdd2))
## 1.3.0 (2019-10-15)

@@ -2,0 +7,0 @@

65

es/components/AmpMustache.js
import React from 'react';
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
function AmpMustache(_ref) {
var id = _ref.id,
children = _ref.children;
var props = {
type: 'amp-mustache'
};
return _extends.apply(this, arguments);
}
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
if (id) {
props[id] = id;
}
return target;
return React.createElement('template', props, children);
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
function AmpMustache(_ref) {
var className = _ref.className,
props = _objectWithoutProperties(_ref, ["className"]);
return React.createElement("amp-mustache", _extends({
"class": className
}, props));
}
export default AmpMustache;

@@ -696,11 +696,2 @@ import React from 'react';

function AmpMustache(_ref) {
var className = _ref.className,
props = _objectWithoutProperties(_ref, ["className"]);
return React.createElement("amp-mustache", _extends({
"class": className
}, props));
}
function AmpNextPage(_ref) {

@@ -1191,2 +1182,16 @@ var className = _ref.className,

function AmpMustache(_ref) {
var id = _ref.id,
children = _ref.children;
var props = {
type: 'amp-mustache'
};
if (id) {
props[id] = id;
}
return React.createElement('template', props, children);
}
function AmpState(_ref) {

@@ -1193,0 +1198,0 @@ var id = _ref.id,

@@ -7,65 +7,16 @@ 'use strict';

function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
function AmpMustache(_ref) {
var id = _ref.id,
children = _ref.children;
var props = {
type: 'amp-mustache'
};
return _extends.apply(this, arguments);
}
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
if (id) {
props[id] = id;
}
return target;
return React.createElement('template', props, children);
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
function AmpMustache(_ref) {
var className = _ref.className,
props = _objectWithoutProperties(_ref, ["className"]);
return React.createElement("amp-mustache", _extends({
"class": className
}, props));
}
module.exports = AmpMustache;

@@ -702,11 +702,2 @@ 'use strict';

function AmpMustache(_ref) {
var className = _ref.className,
props = _objectWithoutProperties(_ref, ["className"]);
return React.createElement("amp-mustache", _extends({
"class": className
}, props));
}
function AmpNextPage(_ref) {

@@ -1197,2 +1188,16 @@ var className = _ref.className,

function AmpMustache(_ref) {
var id = _ref.id,
children = _ref.children;
var props = {
type: 'amp-mustache'
};
if (id) {
props[id] = id;
}
return React.createElement('template', props, children);
}
function AmpState(_ref) {

@@ -1199,0 +1204,0 @@ var id = _ref.id,

{
"name": "amp-react-components",
"version": "1.3.0",
"version": "1.4.0",
"description": "Render AMP components with React",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

const fs = require('fs-extra')
const path = require('path')
const puppeteer = require('puppeteer')
const EXCLUDE_AMP_COMPONENTS = ['amp-bind', 'amp-animation']
const EXCLUDE_AMP_COMPONENTS = ['amp-bind', 'amp-animation', 'amp-mustache']

@@ -6,0 +6,0 @@ async function getAmpComponents() {

@@ -72,3 +72,2 @@ import Amp3dGltf from './components/view/Amp3dGltf';

import AmpMowplayer from './components/view/AmpMowplayer';
import AmpMustache from './components/view/AmpMustache';
import AmpNextPage from './components/view/AmpNextPage';

@@ -126,4 +125,5 @@ import AmpNexxtvPlayer from './components/view/AmpNexxtvPlayer';

import AmpAnimation from './components/util/AmpAnimation';
import AmpMustache from './components/util/AmpMustache';
import AmpState from './components/util/AmpState';
import ComponentScript from './components/util/ComponentScript';
export { Amp3dGltf, Amp3qPlayer, AmpAccess, AmpAccessLaterpay, AmpAccessPoool, AmpAccordion, AmpActionMacro, AmpAd, AmpAdExit, AmpAddthis, AmpAnalytics, AmpAnim, AmpApesterMedia, AmpAppBanner, AmpAudio, AmpAutoAds, AmpAutocomplete, AmpBaseCarousel, AmpBeopinion, AmpBodymovinAnimation, AmpBridPlayer, AmpBrightcove, AmpBysideContent, AmpCallTracking, AmpCarousel, AmpConnatixPlayer, AmpConsent, AmpDailymotion, AmpDateCountdown, AmpDateDisplay, AmpDatePicker, AmpDelightPlayer, AmpDynamicCssClasses, AmpEmbedlyCard, AmpExperiment, AmpFacebook, AmpFacebookComments, AmpFacebookLike, AmpFacebookPage, AmpFitText, AmpFont, AmpForm, AmpFxCollection, AmpFxFlyingCarpet, AmpGeo, AmpGfycat, AmpGist, AmpGoogleDocumentEmbed, AmpGoogleVrviewImage, AmpHulu, AmpIframe, AmpImaVideo, AmpImageLightbox, AmpImageSlider, AmpImg, AmpImgur, AmpInputmask, AmpInstagram, AmpInstallServiceworker, AmpIzlesene, AmpJwplayer, AmpKalturaPlayer, AmpLightbox, AmpLightboxGallery, AmpLinkRewriter, AmpList, AmpLiveList, AmpMathml, AmpMegaphone, AmpMinuteMediaPlayer, AmpMowplayer, AmpMustache, AmpNextPage, AmpNexxtvPlayer, AmpO2Player, AmpOoyalaPlayer, AmpOrientationObserver, AmpPanZoom, AmpPinterest, AmpPixel, AmpPlaybuzz, AmpPositionObserver, AmpPowrPlayer, AmpReachPlayer, AmpRecaptchaInput, AmpReddit, AmpRiddleQuiz, AmpScript, AmpSelector, AmpShareTracking, AmpSidebar, AmpSkimlinks, AmpSmartlinks, AmpSocialShare, AmpSoundcloud, AmpSpringboardPlayer, AmpStickyAd, AmpStory, AmpStoryAutoAds, AmpStoryBookend, AmpStoryCtaLayer, AmpStoryGridLayer, AmpStoryPage, AmpStoryPageAttachment, AmpSubscriptions, AmpSubscriptionsGoogle, AmpTimeago, AmpTruncateText, AmpTwitter, AmpUserLocation, AmpUserNotification, AmpVideo, AmpVideoDocking, AmpVideoIframe, AmpVimeo, AmpVine, AmpViqeoPlayer, AmpVizVega, AmpVk, AmpWebPush, AmpWistiaPlayer, AmpYotpo, AmpYoutube, AmpAnimation, AmpState, ComponentScript };
export { Amp3dGltf, Amp3qPlayer, AmpAccess, AmpAccessLaterpay, AmpAccessPoool, AmpAccordion, AmpActionMacro, AmpAd, AmpAdExit, AmpAddthis, AmpAnalytics, AmpAnim, AmpApesterMedia, AmpAppBanner, AmpAudio, AmpAutoAds, AmpAutocomplete, AmpBaseCarousel, AmpBeopinion, AmpBodymovinAnimation, AmpBridPlayer, AmpBrightcove, AmpBysideContent, AmpCallTracking, AmpCarousel, AmpConnatixPlayer, AmpConsent, AmpDailymotion, AmpDateCountdown, AmpDateDisplay, AmpDatePicker, AmpDelightPlayer, AmpDynamicCssClasses, AmpEmbedlyCard, AmpExperiment, AmpFacebook, AmpFacebookComments, AmpFacebookLike, AmpFacebookPage, AmpFitText, AmpFont, AmpForm, AmpFxCollection, AmpFxFlyingCarpet, AmpGeo, AmpGfycat, AmpGist, AmpGoogleDocumentEmbed, AmpGoogleVrviewImage, AmpHulu, AmpIframe, AmpImaVideo, AmpImageLightbox, AmpImageSlider, AmpImg, AmpImgur, AmpInputmask, AmpInstagram, AmpInstallServiceworker, AmpIzlesene, AmpJwplayer, AmpKalturaPlayer, AmpLightbox, AmpLightboxGallery, AmpLinkRewriter, AmpList, AmpLiveList, AmpMathml, AmpMegaphone, AmpMinuteMediaPlayer, AmpMowplayer, AmpNextPage, AmpNexxtvPlayer, AmpO2Player, AmpOoyalaPlayer, AmpOrientationObserver, AmpPanZoom, AmpPinterest, AmpPixel, AmpPlaybuzz, AmpPositionObserver, AmpPowrPlayer, AmpReachPlayer, AmpRecaptchaInput, AmpReddit, AmpRiddleQuiz, AmpScript, AmpSelector, AmpShareTracking, AmpSidebar, AmpSkimlinks, AmpSmartlinks, AmpSocialShare, AmpSoundcloud, AmpSpringboardPlayer, AmpStickyAd, AmpStory, AmpStoryAutoAds, AmpStoryBookend, AmpStoryCtaLayer, AmpStoryGridLayer, AmpStoryPage, AmpStoryPageAttachment, AmpSubscriptions, AmpSubscriptionsGoogle, AmpTimeago, AmpTruncateText, AmpTwitter, AmpUserLocation, AmpUserNotification, AmpVideo, AmpVideoDocking, AmpVideoIframe, AmpVimeo, AmpVine, AmpViqeoPlayer, AmpVizVega, AmpVk, AmpWebPush, AmpWistiaPlayer, AmpYotpo, AmpYoutube, AmpAnimation, AmpMustache, AmpState, ComponentScript };
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