amp-react-components
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -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 @@ |
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 }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
529904
16140