trell-story-json-to-amp
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -18,6 +18,9 @@ 'use strict'; | ||
var type = _ref.type, | ||
opts = _objectWithoutProperties(_ref, ['type']); | ||
config = _ref.config, | ||
dataCredentials = _ref.dataCredentials, | ||
opts = _objectWithoutProperties(_ref, ['type', 'config', 'dataCredentials']); | ||
return (0, _htmlTag2.default)('amp-analytics', { type: type }, (0, _htmlTag2.default)('script', { type: 'application/json' }, JSON.stringify(opts))); | ||
console.log('config', config); | ||
return (0, _htmlTag2.default)('amp-analytics', { type: type, config: config, 'data-credentials': dataCredentials }, (0, _htmlTag2.default)('script', { type: 'application/json' }, JSON.stringify(opts))); | ||
}).join(''); | ||
}; |
@@ -274,6 +274,8 @@ /* @flow */ | ||
type?: string, | ||
requests?: { [key: string]: any, }, | ||
vars?: { [key: string]: any, }, | ||
extraUrlParams?: { [key: string]: any, }, | ||
triggers?: { [key: string]: any, }, | ||
config?: string, | ||
dataCredentials?: string, | ||
requests?: { [key: string]: any }, | ||
vars?: { [key: string]: any }, | ||
extraUrlParams?: { [key: string]: any }, | ||
triggers?: { [key: string]: any }, | ||
transport?: { | ||
@@ -280,0 +282,0 @@ beacon?: boolean, |
{ | ||
"name": "trell-story-json-to-amp", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Convert story JSON to STAMP HTML.", | ||
@@ -21,3 +21,3 @@ "main": "dist/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/micnews/story-json-to-stamp.git" | ||
"url": "https://gitlab.com/trell/trell-story-json-to-amp" | ||
}, | ||
@@ -32,5 +32,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/micnews/story-json-to-stamp/issues" | ||
"url": "https://gitlab.com/trell/trell-story-json-to-amp/issues" | ||
}, | ||
"homepage": "https://github.com/micnews/story-json-to-stamp#readme", | ||
"homepage": "https://gitlab.com/trell/trell-story-json-to-amp", | ||
"nyc": { | ||
@@ -37,0 +37,0 @@ "extension": [ |
@@ -0,1 +1,3 @@ | ||
## Cloned repo from https://github.com/micnews/story-json-to-stamp | ||
# story-json-to-amp | ||
@@ -20,12 +22,12 @@ | ||
| Name | Description | | ||
| ------ | ------------- | | ||
| `preview.publisher` | REQUIRED. The name of the story's publisher. | | ||
| `preview.publisherLogoSrc` | REQUIRED. The publisher's logo in square format (1x1 aspect ratio). | | ||
| `preview.posterPortraitSrc` | REQUIRED. The story poster in portrait format (3x4 aspect ratio). | | ||
| `preview.posterSquareSrc` | The story poster in square format (1x1 aspect ratio). | | ||
| `preview.posterLandscapeSrc` | The story poster in landscape format (4x3 aspect ratio). | | ||
| `customCss` | Extra CSS to append to AMP story document. This is useful for adding fonts or making AMP-specific customizations. | | ||
| `analytics` | Array of [AMP analytics objects](https://www.ampproject.org/docs/reference/components/amp-analytics) | | ||
| `bookendConfigSrc` | [Bookend endpoint URL](https://www.ampproject.org/docs/tutorials/visual_story/create_bookend) | | ||
| Name | Description | | ||
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------- | | ||
| `preview.publisher` | REQUIRED. The name of the story's publisher. | | ||
| `preview.publisherLogoSrc` | REQUIRED. The publisher's logo in square format (1x1 aspect ratio). | | ||
| `preview.posterPortraitSrc` | REQUIRED. The story poster in portrait format (3x4 aspect ratio). | | ||
| `preview.posterSquareSrc` | The story poster in square format (1x1 aspect ratio). | | ||
| `preview.posterLandscapeSrc` | The story poster in landscape format (4x3 aspect ratio). | | ||
| `customCss` | Extra CSS to append to AMP story document. This is useful for adding fonts or making AMP-specific customizations. | | ||
| `analytics` | Array of [AMP analytics objects](https://www.ampproject.org/docs/reference/components/amp-analytics) | | ||
| `bookendConfigSrc` | [Bookend endpoint URL](https://www.ampproject.org/docs/tutorials/visual_story/create_bookend) | | ||
@@ -32,0 +34,0 @@ ## Example |
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
43951
900
42